{
  "configurations": [
    {
      "declarative_name": "java.common.db.query_sanitization.enabled",
      "default": true,
      "description": "Enables query sanitization for database queries.",
      "name": "otel.instrumentation.common.db.query-sanitization.enabled",
      "type": "boolean"
    }
  ],
  "description": "This instrumentation enables database client spans and database client metrics for the ClickHouse Java Client.",
  "display_name": "ClickHouse Java Client",
  "has_javaagent": true,
  "javaagent_target_versions": [
    "com.clickhouse:client-v2:[0.6.4,)"
  ],
  "library_link": "https://github.com/ClickHouse/clickhouse-java",
  "name": "clickhouse-client-v2-0.8",
  "scope": {
    "name": "io.opentelemetry.clickhouse-client-v2-0.8"
  },
  "semantic_conventions": [
    "DATABASE_CLIENT_SPANS",
    "DATABASE_CLIENT_METRICS"
  ],
  "source_path": "instrumentation/clickhouse/clickhouse-client-v2-0.8",
  "telemetry": [
    {
      "spans": [
        {
          "attributes": [
            {
              "name": "db.name",
              "type": "STRING"
            },
            {
              "name": "db.operation",
              "type": "STRING"
            },
            {
              "name": "db.statement",
              "type": "STRING"
            },
            {
              "name": "db.system",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "span_kind": "CLIENT"
        }
      ],
      "when": "default"
    },
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "db.namespace",
              "type": "STRING"
            },
            {
              "name": "db.query.summary",
              "type": "STRING"
            },
            {
              "name": "db.system.name",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "Duration of database client operations.",
          "instrument": "histogram",
          "name": "db.client.operation.duration",
          "unit": "s"
        }
      ],
      "spans": [
        {
          "attributes": [
            {
              "name": "db.namespace",
              "type": "STRING"
            },
            {
              "name": "db.query.summary",
              "type": "STRING"
            },
            {
              "name": "db.query.text",
              "type": "STRING"
            },
            {
              "name": "db.system.name",
              "type": "STRING"
            },
            {
              "name": "error.type",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "span_kind": "CLIENT"
        }
      ],
      "when": "otel.semconv-stability.opt-in=database"
    }
  ]
}