This repository has been archived by the owner on Jun 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
122 additions
and
84 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
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 |
---|---|---|
@@ -1,24 +1,32 @@ | ||
// Event | ||
pub const TS_KEY: &'static str = "ts"; | ||
pub const TS_START_KEY: &'static str = "ts_start"; | ||
|
||
pub const TPL_KEY: &'static str = "tpl"; | ||
pub const MSG_KEY: &'static str = "msg"; | ||
|
||
pub const ERR_KEY: &'static str = "err"; | ||
// Level | ||
pub const LVL_KEY: &'static str = "lvl"; | ||
|
||
pub const LVL_DEBUG: &'static str = "debug"; | ||
pub const LVL_INFO: &'static str = "info"; | ||
pub const LVL_WARN: &'static str = "warn"; | ||
pub const LVL_ERR: &'static str = "err"; | ||
|
||
pub const ERR_KEY: &'static str = "err"; | ||
|
||
pub const MODULE_KEY: &'static str = "module"; | ||
|
||
// Trace | ||
pub const TRACE_ID_KEY: &'static str = "trace_id"; | ||
pub const SPAN_ID_KEY: &'static str = "span_id"; | ||
pub const SPAN_PARENT_KEY: &'static str = "span_parent"; | ||
|
||
// Metrics | ||
pub const METRIC_NAME_KEY: &'static str = "metric_name"; | ||
pub const METRIC_KIND_KEY: &'static str = "metric_kind"; | ||
pub const METRIC_AGG_KEY: &'static str = "metric_agg"; | ||
pub const METRIC_VALUE_KEY: &'static str = "metric_value"; | ||
pub const METRIC_UNIT_KEY: &'static str = "metric_unit"; | ||
|
||
pub const LVL_DEBUG: &'static str = "debug"; | ||
pub const LVL_INFO: &'static str = "info"; | ||
pub const LVL_WARN: &'static str = "warn"; | ||
pub const LVL_ERR: &'static str = "err"; | ||
|
||
pub const METRIC_KIND_SUM: &'static str = "sum"; | ||
pub const METRIC_KIND_MIN: &'static str = "min"; | ||
pub const METRIC_KIND_MAX: &'static str = "max"; | ||
pub const METRIC_AGG_SUM: &'static str = "sum"; | ||
pub const METRIC_AGG_MIN: &'static str = "min"; | ||
pub const METRIC_AGG_MAX: &'static str = "max"; |
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.