{
  "configurations": [
    {
      "declarative_name": "java.common.messaging.capture_headers/development",
      "default": "",
      "description": "A comma-separated list of header names to capture as span attributes.",
      "name": "otel.instrumentation.messaging.experimental.capture-headers",
      "type": "list"
    },
    {
      "declarative_name": "java.common.messaging.receive_telemetry/development.enabled",
      "default": false,
      "description": "Enables the creation of consumer spans on messaging receive operations. These spans will measure the time between receiving a message and the consumer processing that message.",
      "name": "otel.instrumentation.messaging.experimental.receive-telemetry.enabled",
      "type": "boolean"
    },
    {
      "declarative_name": "java.rabbitmq.experimental_span_attributes/development",
      "default": false,
      "description": "Enables experimental span attributes `rabbitmq.command`, `rabbitmq.delivery_mode`, `rabbitmq.queue`, and `rabbitmq.record.queue_time_ms`.",
      "name": "otel.instrumentation.rabbitmq.experimental-span-attributes",
      "type": "boolean"
    }
  ],
  "description": "This instrumentation enables messaging spans for RabbitMQ message producers and consumers.",
  "display_name": "RabbitMQ",
  "has_javaagent": true,
  "javaagent_target_versions": [
    "com.rabbitmq:amqp-client:[2.7.0,)"
  ],
  "library_link": "https://www.rabbitmq.com/client-libraries/java-api-guide",
  "name": "rabbitmq-2.7",
  "scope": {
    "name": "io.opentelemetry.rabbitmq-2.7"
  },
  "semantic_conventions": [
    "MESSAGING_SPANS"
  ],
  "source_path": "instrumentation/rabbitmq-2.7",
  "telemetry": [
    {
      "spans": [
        {
          "attributes": [
            {
              "name": "messaging.system",
              "type": "STRING"
            },
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            }
          ],
          "span_kind": "CLIENT"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.message.body.size",
              "type": "LONG"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.rabbitmq.destination.routing_key",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            },
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            }
          ],
          "span_kind": "CONSUMER"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.message.body.size",
              "type": "LONG"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.rabbitmq.destination.routing_key",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            },
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            }
          ],
          "span_kind": "PRODUCER"
        }
      ],
      "when": "default"
    },
    {
      "spans": [
        {
          "attributes": [
            {
              "name": "messaging.system",
              "type": "STRING"
            },
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            },
            {
              "name": "rabbitmq.command",
              "type": "STRING"
            }
          ],
          "span_kind": "CLIENT"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.message.body.size",
              "type": "LONG"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.rabbitmq.destination.routing_key",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            },
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            },
            {
              "name": "rabbitmq.command",
              "type": "STRING"
            },
            {
              "name": "rabbitmq.queue",
              "type": "STRING"
            },
            {
              "name": "rabbitmq.record.queue_time_ms",
              "type": "LONG"
            }
          ],
          "span_kind": "CONSUMER"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.message.body.size",
              "type": "LONG"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.rabbitmq.destination.routing_key",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            },
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            },
            {
              "name": "rabbitmq.command",
              "type": "STRING"
            },
            {
              "name": "rabbitmq.delivery_mode",
              "type": "LONG"
            }
          ],
          "span_kind": "PRODUCER"
        }
      ],
      "when": "otel.instrumentation.rabbitmq.experimental-span-attributes=true"
    }
  ]
}