-
-
Notifications
You must be signed in to change notification settings - Fork 467
Expand file tree
/
Copy pathIOtelSpanWrapper.java
More file actions
55 lines (41 loc) · 1.22 KB
/
IOtelSpanWrapper.java
File metadata and controls
55 lines (41 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package io.sentry.opentelemetry;
import io.opentelemetry.api.common.Attributes;
import io.opentelemetry.context.Context;
import io.sentry.IScopes;
import io.sentry.ISpan;
import io.sentry.protocol.MeasurementValue;
import io.sentry.protocol.SentryId;
import io.sentry.protocol.TransactionNameSource;
import java.util.Map;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface IOtelSpanWrapper extends ISpan {
void setTransactionName(@NotNull String name);
void setTransactionName(@NotNull String name, @NotNull TransactionNameSource nameSource);
@ApiStatus.Internal
@Nullable
TransactionNameSource getTransactionNameSource();
@ApiStatus.Internal
@Nullable
String getTransactionName();
@NotNull
SentryId getTraceId();
@NotNull
Map<String, Object> getData();
@NotNull
Map<String, MeasurementValue> getMeasurements();
@Nullable
Boolean isProfileSampled();
@ApiStatus.Internal
@NotNull
IScopes getScopes();
@ApiStatus.Internal
@NotNull
Map<String, String> getTags();
@NotNull
Context storeInContext(Context context);
@ApiStatus.Internal
@Nullable
Attributes getOpenTelemetrySpanAttributes();
}