public class OtelTraceContext extends Object implements org.springframework.cloud.sleuth.TraceContext
TraceContext.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static org.springframework.cloud.sleuth.TraceContext |
fromOtel(io.opentelemetry.api.trace.SpanContext traceContext) |
int |
hashCode() |
String |
parentId() |
Boolean |
sampled() |
String |
spanId() |
static io.opentelemetry.context.Context |
toOtelContext(org.springframework.cloud.sleuth.TraceContext context) |
String |
toString() |
String |
traceId() |
public static org.springframework.cloud.sleuth.TraceContext fromOtel(io.opentelemetry.api.trace.SpanContext traceContext)
public static io.opentelemetry.context.Context toOtelContext(org.springframework.cloud.sleuth.TraceContext context)
public String traceId()
traceId in interface org.springframework.cloud.sleuth.TraceContext@Nullable public String parentId()
parentId in interface org.springframework.cloud.sleuth.TraceContextpublic String spanId()
spanId in interface org.springframework.cloud.sleuth.TraceContextpublic Boolean sampled()
sampled in interface org.springframework.cloud.sleuth.TraceContextCopyright © 2023 Pivotal Software, Inc.. All rights reserved.