@Deprecated public final class InMemoryCollectorMetrics extends Object implements CollectorMetrics
NOOP_METRICS
Constructor and Description |
---|
InMemoryCollectorMetrics()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
bytes()
Deprecated.
|
void |
clear()
Deprecated.
|
InMemoryCollectorMetrics |
forTransport(String transportType)
Deprecated.
Those who wish to partition metrics by transport can call this method to include the transport
type in the backend metric key.
|
void |
incrementBytes(int quantity)
Deprecated.
Increments the number of bytes containing serialized spans in a message.
|
void |
incrementMessages()
Deprecated.
Increments count of messages received, which contain 0 or more spans.
|
void |
incrementMessagesDropped()
Deprecated.
Increments count of messages that could not be read.
|
void |
incrementSpans(int quantity)
Deprecated.
Increments the count of spans read from a successful message.
|
void |
incrementSpansDropped(int quantity)
Deprecated.
Increments the count of spans dropped for any reason.
|
int |
messages()
Deprecated.
|
int |
messagesDropped()
Deprecated.
|
int |
spans()
Deprecated.
|
int |
spansDropped()
Deprecated.
|
public InMemoryCollectorMetrics forTransport(String transportType)
CollectorMetrics
For example, an implementation may by default report incremented
spans
to the key "zipkin.collector.span.accepted". When metrics.forTransport("kafka"
is called, the counter would report to "zipkin.collector.kafka.span.accepted"
forTransport
in interface CollectorMetrics
transportType
- ex "http", "scribe", "kafka"public void incrementMessages()
CollectorMetrics
incrementMessages
in interface CollectorMetrics
public int messages()
public void incrementMessagesDropped()
CollectorMetrics
incrementMessagesDropped
in interface CollectorMetrics
public int messagesDropped()
public void incrementBytes(int quantity)
CollectorMetrics
Note: this count should relate to the raw data structures, like json or thrift, and discount compression, enveloping, etc.
incrementBytes
in interface CollectorMetrics
public int bytes()
public void incrementSpans(int quantity)
CollectorMetrics
incrementSpans
in interface CollectorMetrics
public int spans()
public void incrementSpansDropped(int quantity)
CollectorMetrics
incrementSpansDropped
in interface CollectorMetrics
public int spansDropped()
public void clear()
Copyright © 2015–2018 OpenZipkin. All rights reserved.