{
  "description": "This instrumentation enriches Elasticsearch database client spans generated by the elasticsearch-rest-7.0 instrumentation by adding `db.operation.parameter.id` and `db.operation.parameter.index` attributes, or the deprecated `db.elasticsearch.path_parts.id` and `db.elasticsearch.path_parts.index` attributes when the old database semantic conventions are in use. It does not emit any telemetry on its own. Versions 7.17.20 and later on the 7.x line, and versions 8.10 and later, have native OpenTelemetry support.",
  "display_name": "Elasticsearch API Client",
  "has_javaagent": true,
  "javaagent_target_versions": [
    "co.elastic.clients:elasticsearch-java:[7.16,7.17.20)",
    "co.elastic.clients:elasticsearch-java:[8.0.0,8.10)"
  ],
  "library_link": "https://www.elastic.co/docs/reference/elasticsearch/clients/java",
  "name": "elasticsearch-api-client-7.16",
  "scope": {
    "name": "io.opentelemetry.elasticsearch-api-client-7.16"
  },
  "source_path": "instrumentation/elasticsearch/elasticsearch-api-client-7.16",
  "telemetry": [
    {
      "spans": [
        {
          "attributes": [
            {
              "name": "db.elasticsearch.path_parts.id",
              "type": "STRING"
            },
            {
              "name": "db.elasticsearch.path_parts.index",
              "type": "STRING"
            },
            {
              "name": "db.operation",
              "type": "STRING"
            },
            {
              "name": "db.system",
              "type": "STRING"
            },
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            },
            {
              "name": "url.full",
              "type": "STRING"
            }
          ],
          "span_kind": "CLIENT"
        }
      ],
      "when": "default"
    },
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "db.operation.name",
              "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.operation.name",
              "type": "STRING"
            },
            {
              "name": "db.operation.parameter.id",
              "type": "STRING"
            },
            {
              "name": "db.operation.parameter.index",
              "type": "STRING"
            },
            {
              "name": "db.system.name",
              "type": "STRING"
            },
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            },
            {
              "name": "url.full",
              "type": "STRING"
            }
          ],
          "span_kind": "CLIENT"
        }
      ],
      "when": "otel.semconv-stability.opt-in=database"
    }
  ]
}