forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(observability): count byte_size after transforming event (vecto…
…rdotdev#17941) Before this the `component_sent_event_bytes_total` was emitting the json byte size of the event including any fields dropped by `only_fields` and `except_field` settings. This changes it so the the count is made after transforming the event. A complication arose whereby if the service field was dropped we would no longer have access to this value to emit the `service` tag with the metrics. This also adds a `dropped_fields` field to the event metadata where this value can be stored and accessed. --------- Signed-off-by: Stephen Wakely <[email protected]>
- Loading branch information
1 parent
7050b7e
commit 0bf6abd
Showing
29 changed files
with
427 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//! Constants for commonly used semantic meanings. | ||
/// The service typically represents the application that generated the event. | ||
pub const SERVICE: &str = "service"; | ||
|
||
/// The main text message of the event. | ||
pub const MESSAGE: &str = "message"; | ||
|
||
/// The main timestamp of the event. | ||
pub const TIMESTAMP: &str = "timestamp"; | ||
|
||
/// The hostname of the machine where the event was generated. | ||
pub const HOST: &str = "host"; | ||
|
||
pub const SOURCE: &str = "source"; | ||
pub const SEVERITY: &str = "severity"; | ||
pub const TRACE_ID: &str = "trace_id"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
mod definition; | ||
pub mod meaning; | ||
mod requirement; | ||
|
||
pub use definition::Definition; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.