Package io.sentry.opentelemetry
Class OtelSpanContext
java.lang.Object
io.sentry.SpanContext
io.sentry.opentelemetry.OtelSpanContext
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
-
Nested Class Summary
Nested classes/interfaces inherited from class io.sentry.SpanContext
SpanContext.Deserializer, SpanContext.JsonKeys
-
Field Summary
Fields inherited from class io.sentry.SpanContext
baggage, data, DEFAULT_ORIGIN, description, op, origin, status, tags, TYPE
-
Constructor Summary
ConstructorDescriptionOtelSpanContext
(@NotNull io.opentelemetry.sdk.trace.ReadWriteSpan span, @Nullable TracesSamplingDecision samplingDecision, @Nullable IOtelSpanWrapper parentSpan, @Nullable SpanId parentSpanId, @Nullable Baggage baggage) -
Method Summary
Modifier and TypeMethodDescription@NotNull String
@Nullable SpanStatus
void
setOperation
(@NotNull String operation) void
setStatus
(@Nullable SpanStatus status) Methods inherited from class io.sentry.SpanContext
copyForChild, equals, getBaggage, getData, getDescription, getInstrumenter, getOrigin, getParentSpanId, getProfileSampled, getSampled, getSamplingDecision, getSpanId, getTags, getTraceId, getUnknown, hashCode, serialize, setData, setDescription, setInstrumenter, setOrigin, setSampled, setSampled, setSamplingDecision, setTag, setUnknown
-
Constructor Details
-
OtelSpanContext
public OtelSpanContext(@NotNull @NotNull io.opentelemetry.sdk.trace.ReadWriteSpan span, @Nullable @Nullable TracesSamplingDecision samplingDecision, @Nullable @Nullable IOtelSpanWrapper parentSpan, @Nullable @Nullable SpanId parentSpanId, @Nullable @Nullable Baggage baggage)
-
-
Method Details
-
getStatus
- Overrides:
getStatus
in classSpanContext
-
setStatus
- Overrides:
setStatus
in classSpanContext
-
getOperation
- Overrides:
getOperation
in classSpanContext
-
setOperation
- Overrides:
setOperation
in classSpanContext
-