Skip to content

Commit

Permalink
Unify queueSize metric description and attribute (#5836)
Browse files Browse the repository at this point in the history
  • Loading branch information
puckpuck authored Sep 28, 2023
1 parent 1bd41e2 commit 8d27e24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -172,7 +172,7 @@ private Worker(
meter
.gaugeBuilder("queueSize")
.ofLongs()
.setDescription("The number of logs queued")
.setDescription("The number of items queued")
.setUnit("1")
.buildWithCallback(
result ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -189,7 +189,7 @@ private Worker(
meter
.gaugeBuilder("queueSize")
.ofLongs()
.setDescription("The number of spans queued")
.setDescription("The number of items queued")
.setUnit("1")
.buildWithCallback(
result ->
Expand Down

0 comments on commit 8d27e24

Please sign in to comment.