Skip to content

Commit

Permalink
sentry-core: make TransactionContext.trace_id readable (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommilligan authored Jan 13, 2023
1 parent e7d5abf commit abc2b34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sentry-core/src/performance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ impl TransactionContext {
&self.op
}

/// Get the Trace ID of this Transaction.
pub fn trace_id(&self) -> protocol::TraceId {
self.trace_id
}

/// Get the custom context of this Transaction.
pub fn custom(&self) -> Option<&CustomTransactionContext> {
self.custom.as_ref()
Expand Down

0 comments on commit abc2b34

Please sign in to comment.