Uses of Interface
org.microproxy.otel.Sampler
Packages that use Sampler
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 Sampler in org.microproxy.otel
Methods in org.microproxy.otel that return SamplerModifier and TypeMethodDescriptionstatic SamplerSampler.alwaysOff()Returns a sampler that samples nothing.static SamplerSampler.alwaysOn()Returns a sampler that samples everything.static SamplerThe samplerOTEL_TRACES_SAMPLERandOTEL_TRACES_SAMPLER_ARGname:always_on,always_off,traceidratio,parentbased_always_on(the default),parentbased_always_offorparentbased_traceidratio; the ratio is the argument, 1 when there is none.static SamplerSampler.parentBased(Sampler root) A sampler that follows the request's sampled flag when it came with a trace context, and asksroototherwise.static SamplerSampler.traceIdRatio(double ratio) A sampler that samples a fraction of traces, decided by the trace id alone, so every process of a trace decides the same: the last 8 bytes of the id, as a signed number, are compared withratiotimesLong.MAX_VALUE, as OpenTelemetry's Java SDK does.Methods in org.microproxy.otel with parameters of type SamplerModifier and TypeMethodDescriptionstatic SamplerSampler.parentBased(Sampler root) A sampler that follows the request's sampled flag when it came with a trace context, and asksroototherwise.The sampler;parentbased_always_onby default.