{
  "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"
    }
  ],
  "description": "This instrumentation enables messaging spans for NATS message producers and consumers.",
  "display_name": "NATS Client",
  "has_javaagent": true,
  "has_standalone_library": true,
  "javaagent_target_versions": [
    "io.nats:jnats:[2.17.2,)"
  ],
  "library_link": "https://nats.io/",
  "markdown_hash": "b5f153b0ee5c",
  "name": "nats-2.17",
  "scope": {
    "name": "io.opentelemetry.nats-2.17"
  },
  "semantic_conventions": [
    "MESSAGING_SPANS"
  ],
  "source_path": "instrumentation/nats/nats-2.17",
  "telemetry": [
    {
      "spans": [
        {
          "attributes": [
            {
              "name": "messaging.client_id",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.temporary",
              "type": "BOOLEAN"
            },
            {
              "name": "messaging.message.body.size",
              "type": "LONG"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "span_kind": "CONSUMER"
        },
        {
          "attributes": [
            {
              "name": "messaging.client_id",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.temporary",
              "type": "BOOLEAN"
            },
            {
              "name": "messaging.message.body.size",
              "type": "LONG"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "span_kind": "PRODUCER"
        }
      ],
      "when": "default"
    }
  ]
}