You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/instrumentation-amqplib/README.md
+66-18Lines changed: 66 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,24 +89,72 @@ By default, the tests that connect to RabbitMQ are skipped. To make sure these t
89
89
90
90
## Semantic Conventions
91
91
92
-
This package uses `@opentelemetry/semantic-conventions` version `1.22+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md)
|`messaging.operation`| A string identifying the kind of message consumption. |
102
-
|`messaging.message_id`| A value used by the messaging system as an identifier for the message. |
103
-
|`messaging.conversation_id`| The ID identifying the conversation to which the message belongs. |
104
-
|`messaging.protocol`| The name of the transport protocol. |
105
-
|`messaging.protocol_version`| The version of the transport protocol. |
106
-
|`messaging.system`| A string identifying the messaging system. |
107
-
|`messaging.url`| The connection string. |
108
-
|`net.peer.name`| Remote hostname or similar. |
109
-
|`net.peer.port`| Remote port number. |
92
+
This package supports both legacy and future stable OpenTelemetry semantic conventions for messaging systems. The behavior is controlled by the `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable.
93
+
94
+
**Note**: The v1.36.0+ conventions are not yet stable but will become stable in the future. This instrumentation is progressively implementing the new attributes and span names in preparation for the transition to stable conventions.
95
+
96
+
Configure the instrumentation using one of the following options:
97
+
98
+
-**Empty (default)**: Emit only legacy v1.7.0 conventions ([messaging spec](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md))
99
+
-**`messaging`**: Emit only stable v1.36.0+ conventions ([messaging spec](https://github.com/open-telemetry/semantic-conventions/blob/v1.36.0/docs/messaging/messaging-spans.md) or [RabbitMQ messaging spec](https://github.com/open-telemetry/semantic-conventions/blob/v1.36.0/docs/messaging/rabbitmq.md))
100
+
-**`messaging/dup`**: Emit both legacy and stable conventions simultaneously for migration purposes
0 commit comments