Uses of Record Class
org.microproxy.otel.SpanContext
Packages that use SpanContext
Package
Description
OpenTelemetry for MicroProxy, with no dependencies but the JDK: W3C Trace Context, B3 and Jaeger
propagation (
Propagators), sampling (Sampler), a SERVER span per exchange and a CLIENT span per attempt to reach
the server, INTERNAL spans for tunnels and flows, and OTLP/HTTP export of traces, metrics (the
proxy's StatsRegistry) and access logs, as protobuf or JSON (Telemetry).-
Uses of SpanContext in org.microproxy.otel
Methods in org.microproxy.otel that return SpanContextModifier and TypeMethodDescriptionPropagator.extract(HttpHeaders headers) Reads the trace context inheaders.static SpanContextPropagators.parseTraceparent(String value) Parses atraceparentvalue as W3C Trace Context says: version00exactly (00-<32 hex>-<16 hex>-<2 hex>, lower-case), or a later version that starts the same way and continues only after a-; never versionff, an all-zero trace id or an all-zero parent id.SpanContext.withSpan(long spanId, boolean sampled) Returns this context with another span id and sampled flag, as the proxy's own span.Methods in org.microproxy.otel with parameters of type SpanContextModifier and TypeMethodDescriptionstatic StringPropagators.formatTraceparent(SpanContext context) Formats atraceparentvalue, version00, with only the sampled flag.voidPropagator.inject(SpanContext context, HttpHeaders headers) booleanSampler.shouldSample(SpanContext parent, long traceIdHigh, long traceIdLow) Decides.