Skip to content

Commit 37d6388

Browse files
committed
improve
1 parent 28eab25 commit 37d6388

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sentry-core/src/performance.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use std::sync::{Arc, Mutex, MutexGuard};
55
use std::time::SystemTime;
66

77
use sentry_types::protocol::v7::SpanId;
8-
use sentry_types::Dsn;
98

109
use crate::{protocol, Hub};
1110

@@ -841,7 +840,7 @@ impl Transaction {
841840
.with_trace_id(inner.context.trace_id)
842841
.with_sample_rate(self.metadata.sample_rate)
843842
.with_sampled(inner.sampled);
844-
if let Some(public_key) = client.dsn().map(Dsn::public_key) {
843+
if let Some(public_key) = client.dsn().map(|dsn| dsn.public_key()) {
845844
dsc = dsc.with_public_key(public_key.to_owned());
846845
}
847846

0 commit comments

Comments
 (0)