{
  "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"
    },
    {
      "declarative_name": "java.kafka.experimental_span_attributes/development",
      "default": false,
      "description": "Enables the capture of the experimental consumer attributes `kafka.record.queue_time_ms` and `messaging.kafka.bootstrap.servers`.",
      "name": "otel.instrumentation.kafka.experimental-span-attributes",
      "type": "boolean"
    },
    {
      "declarative_name": "java.kafka.producer_propagation.enabled",
      "default": true,
      "description": "Enable context propagation for Kafka message producers.",
      "name": "otel.instrumentation.kafka.producer-propagation.enabled",
      "type": "boolean"
    }
  ],
  "description": "This instrumentation enables messaging spans for Kafka producers and consumers, and collects internal Kafka client metrics.",
  "display_name": "Apache Kafka Client",
  "has_javaagent": true,
  "javaagent_target_versions": [
    "org.apache.kafka:kafka-clients:[0.11.0.0,)"
  ],
  "library_link": "https://kafka.apache.org/",
  "name": "kafka-clients-0.11",
  "scope": {
    "name": "io.opentelemetry.kafka-clients-0.11",
    "schema_url": "https://opentelemetry.io/schemas/1.43.0"
  },
  "semantic_conventions": [
    "MESSAGING_SPANS"
  ],
  "source_path": "instrumentation/kafka/kafka-clients/kafka-clients-0.11",
  "telemetry": [
    {
      "spans": [
        {
          "attributes": [
            {
              "name": "messaging.batch.message_count",
              "type": "LONG"
            },
            {
              "name": "messaging.client_id",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.partition.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.consumer.group",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.key",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.offset",
              "type": "LONG"
            },
            {
              "name": "messaging.kafka.message.tombstone",
              "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.partition.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.key",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.offset",
              "type": "LONG"
            },
            {
              "name": "messaging.kafka.message.tombstone",
              "type": "BOOLEAN"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "span_kind": "PRODUCER"
        }
      ],
      "when": "default"
    },
    {
      "spans": [
        {
          "attributes": [
            {
              "name": "kafka.record.queue_time_ms",
              "type": "LONG"
            },
            {
              "name": "messaging.batch.message_count",
              "type": "LONG"
            },
            {
              "name": "messaging.client_id",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.partition.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.consumer.group",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.key",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.offset",
              "type": "LONG"
            },
            {
              "name": "messaging.kafka.message.tombstone",
              "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.partition.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.bootstrap.servers",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.key",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.offset",
              "type": "LONG"
            },
            {
              "name": "messaging.kafka.message.tombstone",
              "type": "BOOLEAN"
            },
            {
              "name": "messaging.operation",
              "type": "STRING"
            },
            {
              "name": "messaging.system",
              "type": "STRING"
            }
          ],
          "span_kind": "PRODUCER"
        }
      ],
      "when": "otel.instrumentation.kafka.experimental-span-attributes=true"
    },
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of partitions currently assigned to this consumer",
          "instrument": "gauge",
          "name": "kafka.consumer.assigned_partitions",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average number of bytes consumed per second",
          "instrument": "gauge",
          "name": "kafka.consumer.bytes_consumed_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of bytes consumed",
          "instrument": "counter",
          "name": "kafka.consumer.bytes_consumed_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average time taken for a commit request",
          "instrument": "gauge",
          "name": "kafka.consumer.commit_latency_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The max time taken for a commit request",
          "instrument": "gauge",
          "name": "kafka.consumer.commit_latency_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of commit calls per second",
          "instrument": "gauge",
          "name": "kafka.consumer.commit_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total time the consumer has spent in commitSync in nanoseconds",
          "instrument": "counter",
          "name": "kafka.consumer.commit_sync_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of commit calls",
          "instrument": "counter",
          "name": "kafka.consumer.commit_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total time the consumer has spent in committed in nanoseconds",
          "instrument": "counter",
          "name": "kafka.consumer.committed_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of connections closed per second",
          "instrument": "gauge",
          "name": "kafka.consumer.connection_close_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of connections closed",
          "instrument": "counter",
          "name": "kafka.consumer.connection_close_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The current number of active connections.",
          "instrument": "gauge",
          "name": "kafka.consumer.connection_count",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of new connections established per second",
          "instrument": "gauge",
          "name": "kafka.consumer.connection_creation_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of new connections established",
          "instrument": "counter",
          "name": "kafka.consumer.connection_creation_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of connections with failed authentication per second",
          "instrument": "gauge",
          "name": "kafka.consumer.failed_authentication_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of connections with failed authentication",
          "instrument": "counter",
          "name": "kafka.consumer.failed_authentication_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of failed re-authentication of connections per second",
          "instrument": "gauge",
          "name": "kafka.consumer.failed_reauthentication_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of failed re-authentication of connections",
          "instrument": "counter",
          "name": "kafka.consumer.failed_reauthentication_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of failed rebalance events per hour",
          "instrument": "gauge",
          "name": "kafka.consumer.failed_rebalance_rate_per_hour",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of failed rebalance events",
          "instrument": "counter",
          "name": "kafka.consumer.failed_rebalance_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average time taken for a fetch request.",
          "instrument": "gauge",
          "name": "kafka.consumer.fetch_latency_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The max time taken for any fetch request.",
          "instrument": "gauge",
          "name": "kafka.consumer.fetch_latency_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of fetch requests per second.",
          "instrument": "gauge",
          "name": "kafka.consumer.fetch_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average number of bytes fetched per request",
          "instrument": "gauge",
          "name": "kafka.consumer.fetch_size_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum number of bytes fetched per request",
          "instrument": "gauge",
          "name": "kafka.consumer.fetch_size_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average throttle time in ms",
          "instrument": "gauge",
          "name": "kafka.consumer.fetch_throttle_time_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum throttle time in ms",
          "instrument": "gauge",
          "name": "kafka.consumer.fetch_throttle_time_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of fetch requests.",
          "instrument": "counter",
          "name": "kafka.consumer.fetch_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of heartbeats per second",
          "instrument": "gauge",
          "name": "kafka.consumer.heartbeat_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The max time taken to receive a response to a heartbeat request",
          "instrument": "gauge",
          "name": "kafka.consumer.heartbeat_response_time_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of heartbeats",
          "instrument": "counter",
          "name": "kafka.consumer.heartbeat_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of bytes read off all sockets per second",
          "instrument": "gauge",
          "name": "kafka.consumer.incoming_byte_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of bytes read off all sockets",
          "instrument": "counter",
          "name": "kafka.consumer.incoming_byte_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The fraction of time the I/O thread spent doing I/O",
          "instrument": "gauge",
          "name": "kafka.consumer.io_ratio",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average length of time for I/O per select call in nanoseconds.",
          "instrument": "gauge",
          "name": "kafka.consumer.io_time_ns_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total time the I/O thread spent doing I/O",
          "instrument": "counter",
          "name": "kafka.consumer.io_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The fraction of time the I/O thread spent waiting",
          "instrument": "gauge",
          "name": "kafka.consumer.io_wait_ratio",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average length of time the I/O thread spent waiting for a socket ready for reads or writes in nanoseconds.",
          "instrument": "gauge",
          "name": "kafka.consumer.io_wait_time_ns_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total time the I/O thread spent waiting",
          "instrument": "counter",
          "name": "kafka.consumer.io_wait_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of group joins per second",
          "instrument": "gauge",
          "name": "kafka.consumer.join_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average time taken for a group rejoin",
          "instrument": "gauge",
          "name": "kafka.consumer.join_time_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The max time taken for a group rejoin",
          "instrument": "gauge",
          "name": "kafka.consumer.join_time_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of group joins",
          "instrument": "counter",
          "name": "kafka.consumer.join_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of seconds since the last coordinator heartbeat was sent",
          "instrument": "gauge",
          "name": "kafka.consumer.last_heartbeat_seconds_ago",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of seconds since the last poll() invocation.",
          "instrument": "gauge",
          "name": "kafka.consumer.last_poll_seconds_ago",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of seconds since the last successful rebalance event",
          "instrument": "gauge",
          "name": "kafka.consumer.last_rebalance_seconds_ago",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of network operations (reads or writes) on all connections per second",
          "instrument": "gauge",
          "name": "kafka.consumer.network_io_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of network operations (reads or writes) on all connections",
          "instrument": "counter",
          "name": "kafka.consumer.network_io_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of outgoing bytes sent to all servers per second",
          "instrument": "gauge",
          "name": "kafka.consumer.outgoing_byte_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of outgoing bytes sent to all servers",
          "instrument": "counter",
          "name": "kafka.consumer.outgoing_byte_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average time taken for a partition-assigned rebalance listener callback",
          "instrument": "gauge",
          "name": "kafka.consumer.partition_assigned_latency_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The max time taken for a partition-assigned rebalance listener callback",
          "instrument": "gauge",
          "name": "kafka.consumer.partition_assigned_latency_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average fraction of time the consumer's poll() is idle as opposed to waiting for the user code to process records.",
          "instrument": "gauge",
          "name": "kafka.consumer.poll_idle_ratio_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average time taken for a group to complete a successful rebalance, which may be composed of several failed re-trials until it succeeded",
          "instrument": "gauge",
          "name": "kafka.consumer.rebalance_latency_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The max time taken for a group to complete a successful rebalance, which may be composed of several failed re-trials until it succeeded",
          "instrument": "gauge",
          "name": "kafka.consumer.rebalance_latency_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of milliseconds this consumer has spent in successful rebalances since creation",
          "instrument": "counter",
          "name": "kafka.consumer.rebalance_latency_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of successful rebalance events per hour, each event is composed of several failed re-trials until it succeeded",
          "instrument": "gauge",
          "name": "kafka.consumer.rebalance_rate_per_hour",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of successful rebalance events, each event is composed of several failed re-trials until it succeeded",
          "instrument": "counter",
          "name": "kafka.consumer.rebalance_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average number of records consumed per second",
          "instrument": "gauge",
          "name": "kafka.consumer.records_consumed_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of records consumed",
          "instrument": "counter",
          "name": "kafka.consumer.records_consumed_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "partition",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The latest lag of the partition. Note: For topic names with periods (.), an additional metric with underscores is emitted. However, the periods replaced metric is deprecated. Please use the metric with actual topic name instead.",
          "instrument": "gauge",
          "name": "kafka.consumer.records_lag",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "partition",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average lag of the partition. Note: For topic names with periods (.), an additional metric with underscores is emitted. However, the periods replaced metric is deprecated. Please use the metric with actual topic name instead.",
          "instrument": "gauge",
          "name": "kafka.consumer.records_lag_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "partition",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum lag in terms of number of records for any partition in this window. NOTE: This is based on current offset and not committed offset",
          "instrument": "gauge",
          "name": "kafka.consumer.records_lag_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "partition",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The latest lead of the partition. Note: For topic names with periods (.), an additional metric with underscores is emitted. However, the periods replaced metric is deprecated. Please use the metric with actual topic name instead.",
          "instrument": "gauge",
          "name": "kafka.consumer.records_lead",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "partition",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average lead of the partition. Note: For topic names with periods (.), an additional metric with underscores is emitted. However, the periods replaced metric is deprecated. Please use the metric with actual topic name instead.",
          "instrument": "gauge",
          "name": "kafka.consumer.records_lead_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "partition",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The minimum lead in terms of number of records for any partition in this window",
          "instrument": "gauge",
          "name": "kafka.consumer.records_lead_min",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average number of records in each request",
          "instrument": "gauge",
          "name": "kafka.consumer.records_per_request_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "",
          "instrument": "gauge",
          "name": "kafka.consumer.request_latency_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "",
          "instrument": "gauge",
          "name": "kafka.consumer.request_latency_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of requests sent per second",
          "instrument": "gauge",
          "name": "kafka.consumer.request_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average size of requests sent.",
          "instrument": "gauge",
          "name": "kafka.consumer.request_size_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum size of any request sent.",
          "instrument": "gauge",
          "name": "kafka.consumer.request_size_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of requests sent",
          "instrument": "counter",
          "name": "kafka.consumer.request_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of responses received per second",
          "instrument": "gauge",
          "name": "kafka.consumer.response_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of responses received",
          "instrument": "counter",
          "name": "kafka.consumer.response_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of times the I/O layer checked for new I/O to perform per second",
          "instrument": "gauge",
          "name": "kafka.consumer.select_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of times the I/O layer checked for new I/O to perform",
          "instrument": "counter",
          "name": "kafka.consumer.select_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of connections with successful authentication where the client does not support re-authentication",
          "instrument": "counter",
          "name": "kafka.consumer.successful_authentication_no_reauth_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of connections with successful authentication per second",
          "instrument": "gauge",
          "name": "kafka.consumer.successful_authentication_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of connections with successful authentication",
          "instrument": "counter",
          "name": "kafka.consumer.successful_authentication_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of successful re-authentication of connections per second",
          "instrument": "gauge",
          "name": "kafka.consumer.successful_reauthentication_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of successful re-authentication of connections",
          "instrument": "counter",
          "name": "kafka.consumer.successful_reauthentication_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of group syncs per second",
          "instrument": "gauge",
          "name": "kafka.consumer.sync_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average time taken for a group sync",
          "instrument": "gauge",
          "name": "kafka.consumer.sync_time_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The max time taken for a group sync",
          "instrument": "gauge",
          "name": "kafka.consumer.sync_time_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of group syncs",
          "instrument": "counter",
          "name": "kafka.consumer.sync_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average delay between invocations of poll() in milliseconds.",
          "instrument": "gauge",
          "name": "kafka.consumer.time_between_poll_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The max delay between invocations of poll() in milliseconds.",
          "instrument": "gauge",
          "name": "kafka.consumer.time_between_poll_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average number of bytes sent per partition per-request.",
          "instrument": "gauge",
          "name": "kafka.producer.batch_size_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The max number of bytes sent per partition per-request.",
          "instrument": "gauge",
          "name": "kafka.producer.batch_size_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average number of batch splits per second",
          "instrument": "gauge",
          "name": "kafka.producer.batch_split_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of batch splits",
          "instrument": "counter",
          "name": "kafka.producer.batch_split_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The total amount of buffer memory that is not being used (either unallocated or in the free list).",
          "instrument": "gauge",
          "name": "kafka.producer.buffer_available_bytes",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average per-second number of record sends that are dropped due to buffer exhaustion",
          "instrument": "gauge",
          "name": "kafka.producer.buffer_exhausted_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of record sends that are dropped due to buffer exhaustion",
          "instrument": "counter",
          "name": "kafka.producer.buffer_exhausted_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum amount of buffer memory the client can use (whether or not it is currently used).",
          "instrument": "gauge",
          "name": "kafka.producer.buffer_total_bytes",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The fraction of time an appender waits for space allocation.",
          "instrument": "gauge",
          "name": "kafka.producer.bufferpool_wait_ratio",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total time in nanoseconds an appender waits for space allocation.",
          "instrument": "counter",
          "name": "kafka.producer.bufferpool_wait_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average number of bytes sent per second for a topic.",
          "instrument": "gauge",
          "name": "kafka.producer.byte_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of bytes sent for a topic.",
          "instrument": "counter",
          "name": "kafka.producer.byte_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average compression rate of record batches for a topic, defined as the average ratio of the compressed batch size over the uncompressed size.",
          "instrument": "gauge",
          "name": "kafka.producer.compression_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average compression rate of record batches, defined as the average ratio of the compressed batch size over the uncompressed size.",
          "instrument": "gauge",
          "name": "kafka.producer.compression_rate_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of connections closed per second",
          "instrument": "gauge",
          "name": "kafka.producer.connection_close_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of connections closed",
          "instrument": "counter",
          "name": "kafka.producer.connection_close_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The current number of active connections.",
          "instrument": "gauge",
          "name": "kafka.producer.connection_count",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of new connections established per second",
          "instrument": "gauge",
          "name": "kafka.producer.connection_creation_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of new connections established",
          "instrument": "counter",
          "name": "kafka.producer.connection_creation_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of connections with failed authentication per second",
          "instrument": "gauge",
          "name": "kafka.producer.failed_authentication_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of connections with failed authentication",
          "instrument": "counter",
          "name": "kafka.producer.failed_authentication_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of failed re-authentication of connections per second",
          "instrument": "gauge",
          "name": "kafka.producer.failed_reauthentication_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of failed re-authentication of connections",
          "instrument": "counter",
          "name": "kafka.producer.failed_reauthentication_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "Total time producer has spent in flush in nanoseconds.",
          "instrument": "counter",
          "name": "kafka.producer.flush_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of bytes read off all sockets per second",
          "instrument": "gauge",
          "name": "kafka.producer.incoming_byte_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of bytes read off all sockets",
          "instrument": "counter",
          "name": "kafka.producer.incoming_byte_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The fraction of time the I/O thread spent doing I/O",
          "instrument": "gauge",
          "name": "kafka.producer.io_ratio",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average length of time for I/O per select call in nanoseconds.",
          "instrument": "gauge",
          "name": "kafka.producer.io_time_ns_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total time the I/O thread spent doing I/O",
          "instrument": "counter",
          "name": "kafka.producer.io_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The fraction of time the I/O thread spent waiting",
          "instrument": "gauge",
          "name": "kafka.producer.io_wait_ratio",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average length of time the I/O thread spent waiting for a socket ready for reads or writes in nanoseconds.",
          "instrument": "gauge",
          "name": "kafka.producer.io_wait_time_ns_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total time the I/O thread spent waiting",
          "instrument": "counter",
          "name": "kafka.producer.io_wait_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The age in seconds of the current producer metadata being used.",
          "instrument": "gauge",
          "name": "kafka.producer.metadata_age",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "Total time producer has spent waiting on topic metadata in nanoseconds.",
          "instrument": "counter",
          "name": "kafka.producer.metadata_wait_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of network operations (reads or writes) on all connections per second",
          "instrument": "gauge",
          "name": "kafka.producer.network_io_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of network operations (reads or writes) on all connections",
          "instrument": "counter",
          "name": "kafka.producer.network_io_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of outgoing bytes sent to all servers per second",
          "instrument": "gauge",
          "name": "kafka.producer.outgoing_byte_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of outgoing bytes sent to all servers",
          "instrument": "counter",
          "name": "kafka.producer.outgoing_byte_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average time in ms a request was throttled by a broker",
          "instrument": "gauge",
          "name": "kafka.producer.produce_throttle_time_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum time in ms a request was throttled by a broker",
          "instrument": "gauge",
          "name": "kafka.producer.produce_throttle_time_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average per-second number of record sends that resulted in errors",
          "instrument": "gauge",
          "name": "kafka.producer.record_error_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of record sends that resulted in errors",
          "instrument": "counter",
          "name": "kafka.producer.record_error_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average time in ms record batches spent in the send buffer.",
          "instrument": "gauge",
          "name": "kafka.producer.record_queue_time_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum time in ms record batches spent in the send buffer.",
          "instrument": "gauge",
          "name": "kafka.producer.record_queue_time_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average per-second number of retried record sends",
          "instrument": "gauge",
          "name": "kafka.producer.record_retry_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of retried record sends",
          "instrument": "counter",
          "name": "kafka.producer.record_retry_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average number of records sent per second.",
          "instrument": "gauge",
          "name": "kafka.producer.record_send_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "topic",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of records sent.",
          "instrument": "counter",
          "name": "kafka.producer.record_send_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average record size",
          "instrument": "gauge",
          "name": "kafka.producer.record_size_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum record size",
          "instrument": "gauge",
          "name": "kafka.producer.record_size_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average number of records per request.",
          "instrument": "gauge",
          "name": "kafka.producer.records_per_request_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average request latency in ms",
          "instrument": "gauge",
          "name": "kafka.producer.request_latency_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum request latency in ms",
          "instrument": "gauge",
          "name": "kafka.producer.request_latency_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of requests sent per second",
          "instrument": "gauge",
          "name": "kafka.producer.request_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The average size of requests sent.",
          "instrument": "gauge",
          "name": "kafka.producer.request_size_avg",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The maximum size of any request sent.",
          "instrument": "gauge",
          "name": "kafka.producer.request_size_max",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of requests sent",
          "instrument": "counter",
          "name": "kafka.producer.request_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The current number of in-flight requests awaiting a response.",
          "instrument": "gauge",
          "name": "kafka.producer.requests_in_flight",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of responses received per second",
          "instrument": "gauge",
          "name": "kafka.producer.response_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "node-id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of responses received",
          "instrument": "counter",
          "name": "kafka.producer.response_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of times the I/O layer checked for new I/O to perform per second",
          "instrument": "gauge",
          "name": "kafka.producer.select_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of times the I/O layer checked for new I/O to perform",
          "instrument": "counter",
          "name": "kafka.producer.select_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of connections with successful authentication where the client does not support re-authentication",
          "instrument": "counter",
          "name": "kafka.producer.successful_authentication_no_reauth_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of connections with successful authentication per second",
          "instrument": "gauge",
          "name": "kafka.producer.successful_authentication_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of connections with successful authentication",
          "instrument": "counter",
          "name": "kafka.producer.successful_authentication_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of successful re-authentication of connections per second",
          "instrument": "gauge",
          "name": "kafka.producer.successful_reauthentication_rate",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "The total number of successful re-authentication of connections",
          "instrument": "counter",
          "name": "kafka.producer.successful_reauthentication_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "Total time producer has spent in abortTransaction in nanoseconds.",
          "instrument": "counter",
          "name": "kafka.producer.txn_abort_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "Total time producer has spent in beginTransaction in nanoseconds.",
          "instrument": "counter",
          "name": "kafka.producer.txn_begin_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "Total time producer has spent in commitTransaction in nanoseconds.",
          "instrument": "counter",
          "name": "kafka.producer.txn_commit_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "Total time producer has spent in initTransactions in nanoseconds.",
          "instrument": "counter",
          "name": "kafka.producer.txn_init_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "Total time producer has spent in prepareTransaction in nanoseconds.",
          "instrument": "counter",
          "name": "kafka.producer.txn_prepare_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_SUM",
          "description": "Total time producer has spent in sendOffsetsToTransaction in nanoseconds.",
          "instrument": "counter",
          "name": "kafka.producer.txn_send_offsets_time_ns_total",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "client-id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            }
          ],
          "data_type": "DOUBLE_GAUGE",
          "description": "The number of user threads blocked waiting for buffer memory to enqueue their records",
          "instrument": "gauge",
          "name": "kafka.producer.waiting_threads",
          "unit": ""
        },
        {
          "attributes": [
            {
              "name": "messaging.consumer.group.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.partition.id",
              "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.destination.partition.id",
              "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.destination.partition.id",
              "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.consumer.group.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.partition.id",
              "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.batch.message_count",
              "type": "LONG"
            },
            {
              "name": "messaging.client.id",
              "type": "STRING"
            },
            {
              "name": "messaging.consumer.group.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.partition.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.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.client.id",
              "type": "STRING"
            },
            {
              "name": "messaging.consumer.group.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.name",
              "type": "STRING"
            },
            {
              "name": "messaging.destination.partition.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.key",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.tombstone",
              "type": "BOOLEAN"
            },
            {
              "name": "messaging.kafka.offset",
              "type": "LONG"
            },
            {
              "name": "messaging.operation.name",
              "type": "STRING"
            },
            {
              "name": "messaging.operation.type",
              "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.partition.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.cluster.id",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.key",
              "type": "STRING"
            },
            {
              "name": "messaging.kafka.message.tombstone",
              "type": "BOOLEAN"
            },
            {
              "name": "messaging.kafka.offset",
              "type": "LONG"
            },
            {
              "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"
    }
  ]
}