You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for measurements at span level (#3219)
* added measurements to spans
* spans forward measurements to transaction
* added logs when a span or transaction is already finished
* added SentryTracer.setMeasurementFromChild method to avoid overwriting measurements when coming from the children
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
### Features
6
6
7
+
- Add support for measurements at span level ([#3219](https://github.com/getsentry/sentry-java/pull/3219))
7
8
- Add `enableScopePersistence` option to disable `PersistingScopeObserver` used for ANR reporting which may increase performance overhead. Defaults to `true` ([#3218](https://github.com/getsentry/sentry-java/pull/3218))
8
9
- When disabled, the SDK will not enrich ANRv2 events with scope data (e.g. breadcrumbs, user, tags, etc.)
Copy file name to clipboardExpand all lines: sentry/api/sentry.api
+6-1
Original file line number
Diff line number
Diff line change
@@ -2501,6 +2501,8 @@ public final class io/sentry/SentryTracer : io/sentry/ITransaction {
2501
2501
public fun setDescription (Ljava/lang/String;)V
2502
2502
public fun setMeasurement (Ljava/lang/String;Ljava/lang/Number;)V
2503
2503
public fun setMeasurement (Ljava/lang/String;Ljava/lang/Number;Lio/sentry/MeasurementUnit;)V
2504
+
public fun setMeasurementFromChild (Ljava/lang/String;Ljava/lang/Number;)V
2505
+
public fun setMeasurementFromChild (Ljava/lang/String;Ljava/lang/Number;Lio/sentry/MeasurementUnit;)V
2504
2506
public fun setName (Ljava/lang/String;)V
2505
2507
public fun setName (Ljava/lang/String;Lio/sentry/protocol/TransactionNameSource;)V
2506
2508
public fun setOperation (Ljava/lang/String;)V
@@ -2605,6 +2607,7 @@ public final class io/sentry/Span : io/sentry/ISpan {
2605
2607
public fun getData (Ljava/lang/String;)Ljava/lang/Object;
2606
2608
public fun getDescription ()Ljava/lang/String;
2607
2609
public fun getFinishDate ()Lio/sentry/SentryDate;
2610
+
public fun getMeasurements ()Ljava/util/Map;
2608
2611
public fun getOperation ()Ljava/lang/String;
2609
2612
public fun getParentSpanId ()Lio/sentry/SpanId;
2610
2613
public fun getSamplingDecision ()Lio/sentry/TracesSamplingDecision;
@@ -4388,9 +4391,10 @@ public final class io/sentry/protocol/SentryRuntime$JsonKeys {
4388
4391
public final class io/sentry/protocol/SentrySpan : io/sentry/JsonSerializable, io/sentry/JsonUnknown {
4389
4392
public fun <init> (Lio/sentry/Span;)V
4390
4393
public fun <init> (Lio/sentry/Span;Ljava/util/Map;)V
4391
-
public fun <init> (Ljava/lang/Double;Ljava/lang/Double;Lio/sentry/protocol/SentryId;Lio/sentry/SpanId;Lio/sentry/SpanId;Ljava/lang/String;Ljava/lang/String;Lio/sentry/SpanStatus;Ljava/lang/String;Ljava/util/Map;Ljava/util/Map;)V
4394
+
public fun <init> (Ljava/lang/Double;Ljava/lang/Double;Lio/sentry/protocol/SentryId;Lio/sentry/SpanId;Lio/sentry/SpanId;Ljava/lang/String;Ljava/lang/String;Lio/sentry/SpanStatus;Ljava/lang/String;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;)V
4392
4395
public fun getData ()Ljava/util/Map;
4393
4396
public fun getDescription ()Ljava/lang/String;
4397
+
public fun getMeasurements ()Ljava/util/Map;
4394
4398
public fun getOp ()Ljava/lang/String;
4395
4399
public fun getOrigin ()Ljava/lang/String;
4396
4400
public fun getParentSpanId ()Lio/sentry/SpanId;
@@ -4415,6 +4419,7 @@ public final class io/sentry/protocol/SentrySpan$Deserializer : io/sentry/JsonDe
4415
4419
public final class io/sentry/protocol/SentrySpan$JsonKeys {
4416
4420
public static final field DATA Ljava/lang/String;
4417
4421
public static final field DESCRIPTION Ljava/lang/String;
4422
+
public static final field MEASUREMENTS Ljava/lang/String;
4418
4423
public static final field OP Ljava/lang/String;
4419
4424
public static final field ORIGIN Ljava/lang/String;
4420
4425
public static final field PARENT_SPAN_ID Ljava/lang/String;
0 commit comments