File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
sentry/src/main/java/io/sentry Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11---
22alwaysApply: false
3- description: Metrics
3+ description: Metrics API
44---
5- # Java SDK Metrics
5+ # Java SDK Metrics API
66
77Metrics are enabled by default.
88
Original file line number Diff line number Diff line change @@ -107,6 +107,14 @@ public void setSpanId(final @Nullable SpanId spanId) {
107107 this .spanId = spanId ;
108108 }
109109
110+ public @ Nullable SentryId getTraceId () {
111+ return traceId ;
112+ }
113+
114+ public void setTraceId (final @ Nullable SentryId traceId ) {
115+ this .traceId = traceId ;
116+ }
117+
110118 public @ NotNull Double getValue () {
111119 return value ;
112120 }
Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ public class LoggerBatchProcessor implements ILoggerBatchProcessor {
3636 private final @ NotNull Queue <SentryLogEvent > queue ;
3737 private final @ NotNull ISentryExecutorService executorService ;
3838 private volatile @ Nullable Future <?> scheduledFlush ;
39- private static final @ NotNull AutoClosableReentrantLock scheduleLock =
40- new AutoClosableReentrantLock ();
39+ private final @ NotNull AutoClosableReentrantLock scheduleLock = new AutoClosableReentrantLock ();
4140 private volatile boolean hasScheduled = false ;
4241
4342 private final @ NotNull ReusableCountLatch pendingCount = new ReusableCountLatch ();
Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ public class MetricsBatchProcessor implements IMetricsBatchProcessor {
3535 private final @ NotNull Queue <SentryMetricsEvent > queue ;
3636 private final @ NotNull ISentryExecutorService executorService ;
3737 private volatile @ Nullable Future <?> scheduledFlush ;
38- private static final @ NotNull AutoClosableReentrantLock scheduleLock =
39- new AutoClosableReentrantLock ();
38+ private final @ NotNull AutoClosableReentrantLock scheduleLock = new AutoClosableReentrantLock ();
4039 private volatile boolean hasScheduled = false ;
4140 private volatile boolean isShuttingDown = false ;
4241
You can’t perform that action at this time.
0 commit comments