Package | Description |
---|---|
io.honeycomb.beeline | |
io.honeycomb.beeline.spring.autoconfig | |
io.honeycomb.beeline.spring.utils | |
io.honeycomb.beeline.tracing | |
io.honeycomb.beeline.tracing.propagation |
Modifier and Type | Method | Description |
---|---|---|
Span |
DefaultBeeline.getActiveSpan() |
Returns the span that is currently active on this thread - the one that is top of the stack.
|
Span |
DefaultBeeline.startSpan(String spanName) |
Starts a new span with the given span name.
|
Modifier and Type | Method | Description |
---|---|---|
SpanPostProcessor |
BeelineAutoconfig.defaultBeelineSpanProcessor(io.honeycomb.libhoney.HoneyClient client,
Optional<TraceSampler<Span>> maybeSamplingHook) |
Modifier and Type | Method | Description |
---|---|---|
static void |
BeelineUtils.tryAddField(Span span,
String fieldName,
Object value) |
|
static void |
BeelineUtils.tryAddHeader(org.springframework.http.HttpHeaders headers,
Span span,
String headerKey,
String fieldKey) |
Modifier and Type | Class | Description |
---|---|---|
class |
SendingSpan |
Implements close with the ability to send Spans to Honeycomb using the Event returned by the configured
SpanPostProcessor , which adds the standard fields that are required for Honeycomb to recognise an Event as a
Span. |
class |
TracerSpan |
This class represents a Span that is managed by a
Tracer . |
Modifier and Type | Method | Description |
---|---|---|
Span |
Span.addField(String key,
Object value) |
Add a field to the Span.
|
Span |
TracerSpan.addField(String key,
Object value) |
|
Span |
Span.addFields(Map<String,?> fieldsToAdd) |
Add a fields to the Span.
|
Span |
TracerSpan.addFields(Map<String,?> fieldsToAdd) |
|
Span |
Span.addTraceField(String key,
Object value) |
Add a trace field to the Span.
|
Span |
TracerSpan.addTraceField(String key,
Object value) |
|
Span |
Span.addTraceFields(Map<String,?> traceFieldsToAdd) |
Add trace fields to the Span.
|
Span |
TracerSpan.addTraceFields(Map<String,?> traceFieldsToAdd) |
|
Span |
SpanBuilderFactory.NoopSpanBuilder.build() |
|
Span |
SpanBuilderFactory.SpanBuilder.build() |
Spans returned by this method are subject to sampling based on their
traceId . |
Span |
Beeline.getActiveSpan() |
Returns the span that is currently active on this thread - the one that is top of the stack.
|
static Span |
Span.getNoopInstance() |
|
Span |
Span.markStart() |
Reset the Span's timer.
|
Span |
Span.markStart(long timestamp,
long startTime) |
Sets the times with the specified values - useful when copying Spans.
|
Span |
TracerSpan.markStart() |
|
Span |
TracerSpan.markStart(long timestamp,
long startTime) |
|
Span |
Tracer.popSpan(Span spanToPop) |
Detaches the span identified by the argument's spanId from the thread-local context (i.e.
|
Span |
Beeline.startChildSpan(String childSpanName) |
Starts and returns a new span as the child of the previous span.
|
Span |
Tracer.startChildSpan(String childSpanName) |
Starts and returns a new span as the child of the previous span.
|
Span |
Tracer.startDetachedChildSpan(String childSpanName) |
Starts and returns a new span as the child of the previous span, but without being attached to this Tracer's
thread-local context.
|
Span |
Beeline.startTrace(String spanName,
PropagationContext parentContext,
String serviceName) |
A convenience method that starts a trace.
|
Modifier and Type | Method | Description |
---|---|---|
SpanBuilderFactory.SpanBuilder |
SpanBuilderFactory.createBuilderFrom(Span originalSpan) |
Creates a SpanBuilder instance initialised with attributes from the
originalSpan argument, which then
allows the attributes to be overwritten. |
SpanBuilderFactory.SpanBuilder |
SpanBuilderFactory.createBuilderFromParent(Span parentSpan) |
Creates a Span builder instance initialised so it forms a child-parent relationship with
parentSpan
argument. |
io.honeycomb.libhoney.Event |
SpanPostProcessor.generateEvent(Span span) |
Generates an Event with required tracing fields that are required for Honeycomb to recognise an Event as a Span.
|
Span |
Tracer.popSpan(Span spanToPop) |
Detaches the span identified by the argument's spanId from the thread-local context (i.e.
|
TracerSpan |
Tracer.pushSpan(Span span) |
Attaches the Span to the tracer's thread-local context (i.e.
|
int |
SpanPostProcessor.runSamplerHook(Span span) |
Applies the sampler hook to the contents of the Span and decides whether to sample it.
|
TracerSpan |
Tracer.startTrace(Span span) |
Starts a trace by attaching the provided Span to the Tracer's thread-local context as the new "root".
|
Modifier and Type | Method | Description |
---|---|---|
static SpanPostProcessor |
Tracing.createSpanProcessor(io.honeycomb.libhoney.HoneyClient client,
TraceSampler<? super Span> samplingHook) |
Creates a
SpanPostProcessor that performs post-processing of Spans. |
Constructor | Description |
---|---|
SpanPostProcessor(io.honeycomb.libhoney.HoneyClient client,
TraceSampler<? super Span> samplerHook) |
Modifier and Type | Method | Description |
---|---|---|
Span |
HttpClientPropagator.startPropagation(HttpClientRequestAdapter httpRequest) |
Creates a child span for this HTTP client request and adds the standardized fields to it.
|
Span |
HttpServerPropagator.startPropagation(HttpServerRequestAdapter httpRequest) |
Creates a root span for this HTTP server call and adds the standardized fields to it.
|
Modifier and Type | Method | Description |
---|---|---|
void |
HttpServerRequestSpanCustomizer.customize(Span span,
HttpServerRequestAdapter httpServerRequestAdapter) |
Customize a span by adding information from a HTTP request received by a server.
|
void |
HttpClientPropagator.endPropagation(HttpClientResponseAdapter httpResponse,
Throwable error,
Span span) |
Adds standard span fields based on data in the HTTP response or the
error . |
void |
HttpServerPropagator.endPropagation(HttpServerResponseAdapter httpResponse,
Throwable error,
Span span) |
Adds standard span fields based on data in the HTTP response or the
error . |
Constructor | Description |
---|---|
TraceListener(Span detachedSpan,
HttpServerPropagator httpServerPropagator) |
Copyright © 2019–2020 Honeycomb. All rights reserved.