Unify `queueSize` metric description and attribute (#5836)
This commit is contained in:
parent
1bd41e2b79
commit
8d27e24b21
|
@ -2,6 +2,9 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
* Update `queueSize` metric description and attribute name for `processorType`
|
||||
([#5836](https://github.com/open-telemetry/opentelemetry-java/pull/5836))
|
||||
|
||||
## Version 1.30.1 (2023-09-11)
|
||||
|
||||
* Fix autoconfigure bug creating multiple `PrometheusHttpServer` instances with same port
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class BatchLogRecordProcessor implements LogRecordProcessor {
|
|||
private static final String WORKER_THREAD_NAME =
|
||||
BatchLogRecordProcessor.class.getSimpleName() + "_WorkerThread";
|
||||
private static final AttributeKey<String> LOG_RECORD_PROCESSOR_TYPE_LABEL =
|
||||
AttributeKey.stringKey("logRecordProcessorType");
|
||||
AttributeKey.stringKey("processorType");
|
||||
private static final AttributeKey<Boolean> LOG_RECORD_PROCESSOR_DROPPED_LABEL =
|
||||
AttributeKey.booleanKey("dropped");
|
||||
private static final String LOG_RECORD_PROCESSOR_TYPE_VALUE =
|
||||
|
@ -172,7 +172,7 @@ public final class BatchLogRecordProcessor implements LogRecordProcessor {
|
|||
meter
|
||||
.gaugeBuilder("queueSize")
|
||||
.ofLongs()
|
||||
.setDescription("The number of logs queued")
|
||||
.setDescription("The number of items queued")
|
||||
.setUnit("1")
|
||||
.buildWithCallback(
|
||||
result ->
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class BatchSpanProcessor implements SpanProcessor {
|
|||
private static final String WORKER_THREAD_NAME =
|
||||
BatchSpanProcessor.class.getSimpleName() + "_WorkerThread";
|
||||
private static final AttributeKey<String> SPAN_PROCESSOR_TYPE_LABEL =
|
||||
AttributeKey.stringKey("spanProcessorType");
|
||||
AttributeKey.stringKey("processorType");
|
||||
private static final AttributeKey<Boolean> SPAN_PROCESSOR_DROPPED_LABEL =
|
||||
AttributeKey.booleanKey("dropped");
|
||||
private static final String SPAN_PROCESSOR_TYPE_VALUE = BatchSpanProcessor.class.getSimpleName();
|
||||
|
@ -189,7 +189,7 @@ public final class BatchSpanProcessor implements SpanProcessor {
|
|||
meter
|
||||
.gaugeBuilder("queueSize")
|
||||
.ofLongs()
|
||||
.setDescription("The number of spans queued")
|
||||
.setDescription("The number of items queued")
|
||||
.setUnit("1")
|
||||
.buildWithCallback(
|
||||
result ->
|
||||
|
|
Loading…
Reference in New Issue