Skip to content

Commit e4ae65a

Browse files
committed
Some more PR review changes
1 parent 81e4b6a commit e4ae65a

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

.cursor/rules/metrics.mdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
alwaysApply: false
3-
description: Metrics
3+
description: Metrics API
44
---
5-
# Java SDK Metrics
5+
# Java SDK Metrics API
66

77
Metrics are enabled by default.
88

sentry/src/main/java/io/sentry/SentryMetricsEvent.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

sentry/src/main/java/io/sentry/logger/LoggerBatchProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +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 =
39+
private final @NotNull AutoClosableReentrantLock scheduleLock =
4040
new AutoClosableReentrantLock();
4141
private volatile boolean hasScheduled = false;
4242

sentry/src/main/java/io/sentry/metrics/MetricsBatchProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +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 =
38+
private final @NotNull AutoClosableReentrantLock scheduleLock =
3939
new AutoClosableReentrantLock();
4040
private volatile boolean hasScheduled = false;
4141
private volatile boolean isShuttingDown = false;

0 commit comments

Comments
 (0)