-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(new sink): Add sentry sink #23750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Opened DOCS-12047 to assign a Docs writer and follow up with editorial review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a few style & consistency edits to consider, thanks!
required: false | ||
type: object: options: enabled: { | ||
description: """ | ||
Whether or not end-to-end acknowledgements are enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whether or not end-to-end acknowledgements are enabled. | |
Controls whether or not end-to-end acknowledgements are enabled. |
} | ||
device_version: { | ||
description: """ | ||
Identifies the version of the problem. The combination of the device product, vendor and this value make up the unique id of the device that sends messages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identifies the version of the problem. The combination of the device product, vendor and this value make up the unique id of the device that sends messages. | |
Identifies the version of the problem. The combination of the device product, vendor, and this value make up the unique id of the device that sends messages. |
This is a path that points to the field of a log event that reflects importance of the event. | ||
Reflects importance of the event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repetitive; omit the second line?
This is a path that points to the field of a log event that reflects importance of the event. | |
Reflects importance of the event. | |
This is a path that points to the field of a log event that reflects importance of the event. |
Sets the capacity (in bytes) of the internal buffer used in the CSV writer. | ||
This defaults to 8KB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sets the capacity (in bytes) of the internal buffer used in the CSV writer. | |
This defaults to 8KB. | |
Sets the capacity (in bytes) of the internal buffer used in the CSV writer. | |
This defaults to 8192 bytes (8KB). |
relevant_when: "codec = \"json\"" | ||
required: false | ||
type: object: options: pretty: { | ||
description: "Whether to use pretty JSON formatting." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: "Whether to use pretty JSON formatting." | |
description: "Controls whether to use pretty JSON formatting." |
description: """ | ||
The path to the protobuf descriptor set file. | ||
|
||
This file is the output of `protoc -I <include path> -o <desc output path> <proto>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is the output of `protoc -I <include path> -o <desc output path> <proto>` | |
This file is the output of `protoc -I <include path> -o <desc output path> <proto>`. |
unix_float: "Represent the timestamp as a Unix timestamp in floating point." | ||
unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." | ||
unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." | ||
unix_us: "Represent the timestamp as a Unix timestamp in microseconds" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unix_us: "Represent the timestamp as a Unix timestamp in microseconds" | |
unix_us: "Represent the timestamp as a Unix timestamp in microseconds." |
description: """ | ||
Scale of RTT deviations which are not considered anomalous. | ||
|
||
Valid values are greater than or equal to `0`, and we expect reasonable values to range from `1.0` to `3.0`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid values are greater than or equal to `0`, and we expect reasonable values to range from `1.0` to `3.0`. | |
Valid values are greater than or equal to `0`, and reasonable values range from `1.0` to `3.0`. |
When calculating the past RTT average, we also compute a secondary “deviation” value that indicates how variable | ||
those values are. We use that deviation when comparing the past RTT average to the current measurements, so we | ||
can ignore increases in RTT that are within an expected range. This factor is used to scale up the deviation to | ||
an appropriate range. Larger values cause the algorithm to ignore larger increases in the RTT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When calculating the past RTT average, we also compute a secondary “deviation” value that indicates how variable | |
those values are. We use that deviation when comparing the past RTT average to the current measurements, so we | |
can ignore increases in RTT that are within an expected range. This factor is used to scale up the deviation to | |
an appropriate range. Larger values cause the algorithm to ignore larger increases in the RTT. | |
When calculating the past RTT average, a secondary “deviation” value is also computed that indicates how variable | |
those values are. That deviation is used when comparing the past RTT average to the current measurements, so we | |
can ignore increases in RTT that are within an expected range. This factor is used to scale up the deviation to | |
an appropriate range. Larger values cause the algorithm to ignore larger increases in the RTT. |
description: """ | ||
The amount of time to wait before attempting the first retry for a failed request. | ||
|
||
After the first retry has failed, the fibonacci sequence is used to select future backoffs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the first retry has failed, the fibonacci sequence is used to select future backoffs. | |
After the first retry has failed, the Fibonacci sequence is used to select future backoffs. |
@joepeeples all the values that reviewed in the |
Summary
This PR introduces a new
sentry
sink for sending log events to Sentry for Sentry's structured logging product.Vector configuration
How did you test this PR?
Tested with unit and integration tests, as well as manually building the sink to send logs to Sentry.
Change Type
Is this a breaking change?
Does this PR include user facing changes?
no-changelog
label to this PR.References
resolves #23325
Notes
@vectordotdev/vector
to reach out to us regarding this PR.pre-push
hook, please see this template.make fmt
make check-clippy
(if there are failures it's possible some of them can be fixed withmake clippy-fix
)make test
git merge origin master
andgit push
.Cargo.lock
), pleaserun
make build-licenses
to regenerate the license inventory and commit the changes (if any). More details here.