InMemoryReporterMetricspublic interface ReporterMetrics
Callbacks on this type are invoked by zipkin reporters to improve the visibility of the system. A typical implementation will report metrics to a telemetry system for analysis and reporting.
A span in the context of reporting is <= span in the context of query. Instrumentation should report a span only once except, but certain types of spans cross the network. For example, RPC spans are reported at the client and the server separately.
The following relationships can be used to consider health of the tracing system.
Pending spans. Alert when this increases over time as it could
lead to dropped spans.
Accepted messages -
Dropped messages. Alert when this is more than amount of
messages received from collectors.| Modifier and Type | Field | Description |
|---|---|---|
static ReporterMetrics |
NOOP_METRICS |
| Modifier and Type | Method | Description |
|---|---|---|
void |
incrementMessageBytes(int quantity) |
Increments the number of bytes containing encoded spans in a message.
|
void |
incrementMessages() |
Increments count of message attempts, which contain 1 or more spans.
|
void |
incrementMessagesDropped(Throwable cause) |
Increments count of messages that could not be sent.
|
void |
incrementSpanBytes(int quantity) |
Increments the number of encoded span bytes reported.
|
void |
incrementSpans(int quantity) |
Increments the count of spans reported.
|
void |
incrementSpansDropped(int quantity) |
Increments the count of spans dropped for any reason.
|
void |
updateQueuedBytes(int update) |
Updates the count of encoded span bytes pending, following a flush activity.
|
void |
updateQueuedSpans(int update) |
Updates the count of spans pending, following a flush activity.
|
static final ReporterMetrics NOOP_METRICS
void incrementMessages()
void incrementMessagesDropped(Throwable cause)
void incrementSpans(int quantity)
AsyncReporter is used, reported spans will
usually be a larger number than messages.void incrementSpanBytes(int quantity)
void incrementMessageBytes(int quantity)
This is a function of span bytes per message and overhead
void incrementSpansDropped(int quantity)
void updateQueuedSpans(int update)
void updateQueuedBytes(int update)
Copyright © 2016–2018 OpenZipkin. All rights reserved.