Package com.rabbitmq.client.impl
Class OpenTelemetryMetricsCollector
java.lang.Object
com.rabbitmq.client.impl.AbstractMetricsCollector
com.rabbitmq.client.impl.OpenTelemetryMetricsCollector
- All Implemented Interfaces:
MetricsCollector
OpenTelemetry implementation of
MetricsCollector
.- Since:
- 5.16.0
- See Also:
-
Constructor Summary
ConstructorDescriptionOpenTelemetryMetricsCollector
(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) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decrementChannelCount
(Channel channel) Decrements channel count.protected void
decrementConnectionCount
(Connection connection) Decrements connection count.protected void
incrementChannelCount
(Channel channel) Increments channel count.protected void
incrementConnectionCount
(Connection connection) Increments connection count.protected void
Marks the event of an acknowledged message.protected void
Marks the event of a consumed message.protected void
Marks the event of a message publishing acknowledgement.protected void
Marks the event of a message publishing failure.protected void
Marks the event of a message publishing not being acknowledged.protected void
Marks the event of a published message.protected void
Marks the event of a published message not being routed.protected void
Marks the event of a rejected message.Methods inherited from class com.rabbitmq.client.impl.AbstractMetricsCollector
basicAck, basicCancel, basicConsume, basicNack, basicPublish, basicPublishAck, basicPublishFailure, basicPublishNack, basicPublishUnrouted, basicReject, cleanStaleState, closeChannel, closeConnection, consumedMessage, consumedMessage, newChannel, newConnection
-
Constructor Details
-
OpenTelemetryMetricsCollector
public OpenTelemetryMetricsCollector(io.opentelemetry.api.OpenTelemetry openTelemetry) -
OpenTelemetryMetricsCollector
public OpenTelemetryMetricsCollector(io.opentelemetry.api.OpenTelemetry openTelemetry, String prefix) -
OpenTelemetryMetricsCollector
public OpenTelemetryMetricsCollector(io.opentelemetry.api.OpenTelemetry openTelemetry, String prefix, io.opentelemetry.api.common.Attributes attributes)
-
-
Method Details
-
incrementConnectionCount
Description copied from class:AbstractMetricsCollector
Increments connection count. The connection object is passed in as complementary information and without any guarantee of not being null.- Specified by:
incrementConnectionCount
in classAbstractMetricsCollector
- Parameters:
connection
- the connection that has been created (can be null)
-
decrementConnectionCount
Description copied from class:AbstractMetricsCollector
Decrements connection count. The connection object is passed in as complementary information and without any guarantee of not being null.- Specified by:
decrementConnectionCount
in classAbstractMetricsCollector
- Parameters:
connection
- the connection that has been closed (can be null)
-
incrementChannelCount
Description copied from class:AbstractMetricsCollector
Increments channel count. The channel object is passed in as complementary information and without any guarantee of not being null.- Specified by:
incrementChannelCount
in classAbstractMetricsCollector
- Parameters:
channel
- the channel that has been created (can be null)
-
decrementChannelCount
Description copied from class:AbstractMetricsCollector
Decrements channel count. The channel object is passed in as complementary information and without any guarantee of not being null.- Specified by:
decrementChannelCount
in classAbstractMetricsCollector
- Parameters:
channel
-
-
markPublishedMessage
protected void markPublishedMessage()Description copied from class:AbstractMetricsCollector
Marks the event of a published message.- Specified by:
markPublishedMessage
in classAbstractMetricsCollector
-
markMessagePublishFailed
protected void markMessagePublishFailed()Description copied from class:AbstractMetricsCollector
Marks the event of a message publishing failure.- Specified by:
markMessagePublishFailed
in classAbstractMetricsCollector
-
markConsumedMessage
protected void markConsumedMessage()Description copied from class:AbstractMetricsCollector
Marks the event of a consumed message.- Specified by:
markConsumedMessage
in classAbstractMetricsCollector
-
markAcknowledgedMessage
protected void markAcknowledgedMessage()Description copied from class:AbstractMetricsCollector
Marks the event of an acknowledged message.- Specified by:
markAcknowledgedMessage
in classAbstractMetricsCollector
-
markRejectedMessage
protected void markRejectedMessage()Description copied from class:AbstractMetricsCollector
Marks the event of a rejected message.- Specified by:
markRejectedMessage
in classAbstractMetricsCollector
-
markMessagePublishAcknowledged
protected void markMessagePublishAcknowledged()Description copied from class:AbstractMetricsCollector
Marks the event of a message publishing acknowledgement.- Specified by:
markMessagePublishAcknowledged
in classAbstractMetricsCollector
-
markMessagePublishNotAcknowledged
protected void markMessagePublishNotAcknowledged()Description copied from class:AbstractMetricsCollector
Marks the event of a message publishing not being acknowledged.- Specified by:
markMessagePublishNotAcknowledged
in classAbstractMetricsCollector
-
markPublishedMessageUnrouted
protected void markPublishedMessageUnrouted()Description copied from class:AbstractMetricsCollector
Marks the event of a published message not being routed.- Specified by:
markPublishedMessageUnrouted
in classAbstractMetricsCollector
-
getConnections
-
getChannels
-