Package io.sentry
Class SentryTraceHeader
- java.lang.Object
-
- io.sentry.SentryTraceHeader
-
public final class SentryTraceHeader extends java.lang.Object
Represents HTTP header "sentry-trace".
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SENTRY_TRACE_HEADER
-
Constructor Summary
Constructors Constructor Description SentryTraceHeader(@NotNull SentryId traceId, @NotNull SpanId spanId, @Nullable java.lang.Boolean sampled)
SentryTraceHeader(@NotNull java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.String
getName()
@NotNull SpanId
getSpanId()
@NotNull SentryId
getTraceId()
@NotNull java.lang.String
getValue()
@Nullable java.lang.Boolean
isSampled()
-
-
-
Field Detail
-
SENTRY_TRACE_HEADER
public static final java.lang.String SENTRY_TRACE_HEADER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SentryTraceHeader
public SentryTraceHeader(@NotNull @NotNull SentryId traceId, @NotNull @NotNull SpanId spanId, @Nullable @Nullable java.lang.Boolean sampled)
-
SentryTraceHeader
public SentryTraceHeader(@NotNull @NotNull java.lang.String value) throws InvalidSentryTraceHeaderException
-
-
Method Detail
-
getName
@NotNull public @NotNull java.lang.String getName()
-
getValue
@NotNull public @NotNull java.lang.String getValue()
-
getTraceId
@NotNull public @NotNull SentryId getTraceId()
-
getSpanId
@NotNull public @NotNull SpanId getSpanId()
-
isSampled
@Nullable public @Nullable java.lang.Boolean isSampled()
-
-