public class OpenTelemetryMetricsCollector extends AbstractMetricsCollector
MetricsCollector
.MetricsCollector
Constructor and Description |
---|
OpenTelemetryMetricsCollector(io.opentelemetry.api.OpenTelemetry openTelemetry) |
OpenTelemetryMetricsCollector(io.opentelemetry.api.OpenTelemetry openTelemetry,
String prefix) |
OpenTelemetryMetricsCollector(io.opentelemetry.api.OpenTelemetry openTelemetry,
String prefix,
io.opentelemetry.api.common.Attributes attributes) |
Modifier and Type | Method and Description |
---|---|
protected void |
decrementChannelCount(Channel channel)
Decrements channel count.
|
protected void |
decrementConnectionCount(Connection connection)
Decrements connection count.
|
AtomicLong |
getChannels() |
AtomicLong |
getConnections() |
protected void |
incrementChannelCount(Channel channel)
Increments channel count.
|
protected void |
incrementConnectionCount(Connection connection)
Increments connection count.
|
protected void |
markAcknowledgedMessage()
Marks the event of an acknowledged message.
|
protected void |
markConsumedMessage()
Marks the event of a consumed message.
|
protected void |
markMessagePublishAcknowledged()
Marks the event of a message publishing acknowledgement.
|
protected void |
markMessagePublishFailed()
Marks the event of a message publishing failure.
|
protected void |
markMessagePublishNotAcknowledged()
Marks the event of a message publishing not being acknowledged.
|
protected void |
markPublishedMessage()
Marks the event of a published message.
|
protected void |
markPublishedMessageUnrouted()
Marks the event of a published message not being routed.
|
protected void |
markRejectedMessage()
Marks the event of a rejected message.
|
protected void |
markRejectedMessage(boolean requeue)
Marks the event of a rejected message.
|
basicAck, basicCancel, basicConsume, basicNack, basicNack, basicPublish, basicPublishAck, basicPublishFailure, basicPublishNack, basicPublishUnrouted, basicReject, basicReject, cleanStaleState, closeChannel, closeConnection, consumedMessage, consumedMessage, newChannel, newConnection
public OpenTelemetryMetricsCollector(io.opentelemetry.api.OpenTelemetry openTelemetry)
public OpenTelemetryMetricsCollector(io.opentelemetry.api.OpenTelemetry openTelemetry, String prefix)
public OpenTelemetryMetricsCollector(io.opentelemetry.api.OpenTelemetry openTelemetry, String prefix, io.opentelemetry.api.common.Attributes attributes)
protected void incrementConnectionCount(Connection connection)
AbstractMetricsCollector
incrementConnectionCount
in class AbstractMetricsCollector
connection
- the connection that has been created (can be null)protected void decrementConnectionCount(Connection connection)
AbstractMetricsCollector
decrementConnectionCount
in class AbstractMetricsCollector
connection
- the connection that has been closed (can be null)protected void incrementChannelCount(Channel channel)
AbstractMetricsCollector
incrementChannelCount
in class AbstractMetricsCollector
channel
- the channel that has been created (can be null)protected void decrementChannelCount(Channel channel)
AbstractMetricsCollector
decrementChannelCount
in class AbstractMetricsCollector
protected void markPublishedMessage()
AbstractMetricsCollector
markPublishedMessage
in class AbstractMetricsCollector
protected void markMessagePublishFailed()
AbstractMetricsCollector
markMessagePublishFailed
in class AbstractMetricsCollector
protected void markConsumedMessage()
AbstractMetricsCollector
markConsumedMessage
in class AbstractMetricsCollector
protected void markAcknowledgedMessage()
AbstractMetricsCollector
markAcknowledgedMessage
in class AbstractMetricsCollector
protected void markRejectedMessage()
AbstractMetricsCollector
markRejectedMessage
in class AbstractMetricsCollector
protected void markRejectedMessage(boolean requeue)
AbstractMetricsCollector
markRejectedMessage
in class AbstractMetricsCollector
protected void markMessagePublishAcknowledged()
AbstractMetricsCollector
markMessagePublishAcknowledged
in class AbstractMetricsCollector
protected void markMessagePublishNotAcknowledged()
AbstractMetricsCollector
markMessagePublishNotAcknowledged
in class AbstractMetricsCollector
protected void markPublishedMessageUnrouted()
AbstractMetricsCollector
markPublishedMessageUnrouted
in class AbstractMetricsCollector
public AtomicLong getConnections()
public AtomicLong getChannels()
Copyright © 2024 Broadcom Inc. and its subsidiaries.. All rights reserved.