Constructor | Description |
---|---|
SpanPostProcessor(io.honeycomb.libhoney.HoneyClient client,
TraceSampler<? super Span> samplerHook) |
Modifier and Type | Method | Description |
---|---|---|
io.honeycomb.libhoney.Event |
generateEvent(Span span) |
Generates an Event with required tracing fields that are required for Honeycomb to recognise an Event as a Span.
|
int |
runSamplerHook(Span span) |
Applies the sampler hook to the contents of the Span and decides whether to sample it.
|
public SpanPostProcessor(io.honeycomb.libhoney.HoneyClient client, TraceSampler<? super Span> samplerHook)
public int runSamplerHook(Span span)
span
- to pass to the sampler hook.public io.honeycomb.libhoney.Event generateEvent(Span span)
span
- to convert to an Event.Copyright © 2019–2020 Honeycomb. All rights reserved.