Skip to content

Commit abc2b34

Browse files
authored
sentry-core: make TransactionContext.trace_id readable (#533)
1 parent e7d5abf commit abc2b34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sentry-core/src/performance.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ impl TransactionContext {
180180
&self.op
181181
}
182182

183+
/// Get the Trace ID of this Transaction.
184+
pub fn trace_id(&self) -> protocol::TraceId {
185+
self.trace_id
186+
}
187+
183188
/// Get the custom context of this Transaction.
184189
pub fn custom(&self) -> Option<&CustomTransactionContext> {
185190
self.custom.as_ref()

0 commit comments

Comments
 (0)