TracingObservationHandler called when receiving occurred - e.g. of messages
or http requests.
| Modifier and Type | Field and Description |
|---|---|
| private static final InternalLogger | |
| private final Propagator | |
| private final Tracer |
| Access | Constructor and Description |
|---|---|
| public | PropagatingReceiverTracingObservationHandler(Tracer
the tracer to use to record events tracer, Propagator the mechanism to propagate tracing information from the carrier propagator)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public Span. | Returns: span buildercontext context, Span.span builder builderCustomizes the extracted span (e.g. you can set the |
| public void | customizeReceiverSpan(T
context context, Span span to customize span)Allows to customize the receiver span before reporting it. |
| public Tracer | getTracer()
Implements io. Tracer.
|
| public void | onError(T context)
Overrides default io. Observation.
|
| public void | onStart(T context)
Overrides default io. Observation.
|
| public void | onStop(T context)
Overrides default io. Observation.
|
| public boolean | supportsContext(Observation.
Overrides default io. Observation.
|
| log | back to summary |
|---|---|
| private static final InternalLogger log | |
| propagator | back to summary |
|---|---|
| private final Propagator propagator | |
| tracer | back to summary |
|---|---|
| private final Tracer tracer | |
| PropagatingReceiverTracingObservationHandler | back to summary |
|---|---|
| public PropagatingReceiverTracingObservationHandler(Tracer tracer, Propagator propagator) Creates a new instance of
| |
| customizeExtractedSpan | back to summary |
|---|---|
| public Span. Customizes the extracted span (e.g. you can set the | |
| customizeReceiverSpan | back to summary |
|---|---|
| public void customizeReceiverSpan(T context, Span span) Allows to customize the receiver span before reporting it.
| |
| getTracer | back to summary |
|---|---|
| public Tracer getTracer() Implements io. Doc from io. Returns the | |
| onError | back to summary |
|---|---|
| public void onError(T context) Overrides default io. Doc from io. Reacts to an error during an
| |
| onStart | back to summary |
|---|---|
| public void onStart(T context) Overrides default io. Doc from io. Reacts to starting of an
| |
| onStop | back to summary |
|---|---|
| public void onStop(T context) Overrides default io. Doc from io. Reacts to stopping of an
| |
| supportsContext | back to summary |
|---|---|
| public boolean supportsContext(Observation. Overrides default io. Doc from io. Tells the registry whether this handler should be applied for a given
| |