{
  "configurations": [
    {
      "declarative_name": "java.common.messaging.capture_headers/development",
      "default": "",
      "deprecated": true,
      "description": "Deprecated: use `otel.instrumentation.common.messaging.headers.included` instead. Ignored without a warning under v3-preview; may be removed in a later minor release and will be removed no later than 3.0. A comma-separated list of header names to capture as span attributes. It does not support glob patterns: an entry containing `*` or `?` is ignored with a warning, and every other entry is matched as a literal header name.",
      "name": "otel.instrumentation.messaging.experimental.capture-headers",
      "replaced_by": "otel.instrumentation.common.messaging.headers.included",
      "type": "list"
    },
    {
      "default": "",
      "deprecated": true,
      "description": "Deprecated: use `otel.instrumentation.common.messaging.headers.excluded` instead. Ignored without a warning under v3-preview; may be removed in a later minor release and will be removed no later than 3.0.",
      "name": "otel.instrumentation.messaging.experimental.headers.excluded",
      "replaced_by": "otel.instrumentation.common.messaging.headers.excluded",
      "type": "list"
    },
    {
      "default": "",
      "deprecated": true,
      "description": "Deprecated: use `otel.instrumentation.common.messaging.headers.included` instead. Ignored without a warning under v3-preview; may be removed in a later minor release and will be removed no later than 3.0.",
      "name": "otel.instrumentation.messaging.experimental.headers.included",
      "replaced_by": "otel.instrumentation.common.messaging.headers.included",
      "type": "list"
    },
    {
      "default": false,
      "deprecated": true,
      "description": "Deprecated: use `otel.instrumentation.common.messaging.experimental.receive-telemetry.enabled` instead. It may be removed in the next minor release.",
      "name": "otel.instrumentation.messaging.experimental.receive-telemetry.enabled",
      "replaced_by": "otel.instrumentation.common.messaging.experimental.receive-telemetry.enabled",
      "type": "boolean"
    },
    {
      "declarative_name": "java.common.messaging.headers.excluded",
      "default": "",
      "description": "A comma-separated list of case-sensitive message header name glob patterns to exclude from span attributes. `?` matches one character and `*` matches zero or more characters. Excluded patterns take precedence over included patterns. An absent or empty selector captures no headers; an exclude-only selector captures every header not excluded, which may expose sensitive information.",
      "name": "otel.instrumentation.common.messaging.headers.excluded",
      "type": "list"
    },
    {
      "declarative_name": "java.common.messaging.headers.included",
      "default": "",
      "description": "A comma-separated list of case-sensitive message header name glob patterns to capture as span attributes. `?` matches one character and `*` matches zero or more characters. Excluded patterns take precedence over included patterns. An absent or empty selector captures no headers; an exclude-only selector captures every header not excluded.",
      "name": "otel.instrumentation.common.messaging.headers.included",
      "type": "list"
    },
    {
      "declarative_name": "java.common.messaging.receive_telemetry/development.enabled",
      "default": false,
      "description": "Enables experimental receive telemetry, which will cause consumers to start a new trace, with only a span link connecting it to the producer trace.",
      "name": "otel.instrumentation.common.messaging.experimental.receive-telemetry.enabled",
      "type": "boolean"
    }
  ],
  "description": "This instrumentation enables messaging spans for Jakarta JMS (Java Message Service) message producers and consumers.",
  "display_name": "JMS (Java Message Service)",
  "has_javaagent": true,
  "javaagent_target_versions": [
    "jakarta.jms:jakarta.jms-api:[3.0.0,)"
  ],
  "library_link": "https://jakarta.ee/specifications/messaging/3.0/",
  "minimum_java_version": 11,
  "name": "jms-3.0",
  "scope": {
    "name": "io.opentelemetry.jms-3.0",
    "schema_url": "https://opentelemetry.io/schemas/1.43.0"
  },
  "semantic_conventions": [
    "MESSAGING_SPANS"
  ],
  "source_path": "instrumentation/jms/jms-3.0",
  "telemetry": [
    {
      "spans": [
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.message.id",
              "type": "STRING"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "span_kind": "CONSUMER"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.temporary",
              "type": "BOOLEAN"
            },
            {
              "name": "messaging.message.id",
              "type": "STRING"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "span_kind": "PRODUCER"
        }
      ],
      "when": "otel.instrumentation.common.messaging.experimental.receive-telemetry.enabled=true"
    },
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.name",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "data_type": "LONG_SUM",
          "description": "Number of messages that were delivered to the application.",
          "instrument": "counter",
          "name": "messaging.client.consumed.messages",
          "unit": "{message}"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.name",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.type",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "Duration of messaging operation initiated by a producer or consumer client.",
          "instrument": "histogram",
          "name": "messaging.client.operation.duration",
          "unit": "s"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.name",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "data_type": "LONG_SUM",
          "description": "Number of messages producer attempted to send to the broker.",
          "instrument": "counter",
          "name": "messaging.client.sent.messages",
          "unit": "{message}"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.name",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "Duration of processing operation.",
          "instrument": "histogram",
          "name": "messaging.process.duration",
          "unit": "s"
        }
      ],
      "spans": [
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.subscription.name",
              "type": "STRING"
            },
            {
              "name": "messaging.message.id",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.name",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.type",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "span_kind": "CLIENT"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.subscription.name",
              "type": "STRING"
            },
            {
              "name": "messaging.message.id",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.name",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.type",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "span_kind": "CONSUMER"
        },
        {
          "attributes": [
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.temporary",
              "type": "BOOLEAN"
            },
            {
              "name": "messaging.message.id",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.name",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.type",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "span_kind": "PRODUCER"
        }
      ],
      "when": "otel.semconv-stability.preview=messaging"
    }
  ]
}