Skip to content

Commit

Permalink
refactor(o11y): use semantic conventions const
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Apr 10, 2024
1 parent 943b9c4 commit 2f1bac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/synd_o11y/src/tracing_subscriber/audit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl Audit {
const EMIT_EVENT_NAME: &'static str = "audit";

// follow opentelemetry semantic conventions
pub const USER_ID: &'static str = "enduser.id";
pub const USER_ID: &'static str = opentelemetry_semantic_conventions::trace::ENDUSER_ID;
pub const OPERATION: &'static str = "operation";
pub const RESULT: &'static str = "result";

Expand Down

0 comments on commit 2f1bac7

Please sign in to comment.