{
  "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"
    },
    {
      "declarative_name": "java.common.service_peer_mapping",
      "declarative_schema": {
        "properties": {
          "peer": {
            "description": "Host name or IP address to match against.",
            "type": "string"
          },
          "service_name": {
            "description": "Peer service name to record for matching peers.",
            "type": "string"
          }
        },
        "required": [
          "peer",
          "service_name"
        ],
        "type": "object"
      },
      "declarative_type": "structured_list",
      "default": "",
      "description": "Used to specify a mapping from host names or IP addresses to peer services.",
      "name": "otel.instrumentation.common.peer-service-mapping",
      "type": "map"
    },
    {
      "declarative_name": "java.r2dbc.sqlcommenter/development.enabled",
      "default": false,
      "description": "Enables augmenting queries with a comment containing the tracing information. See [sqlcommenter](https://google.github.io/sqlcommenter/) for more info. WARNING: augmenting queries with tracing context will make query texts unique, which may have adverse impact on database performance.",
      "name": "otel.instrumentation.r2dbc.experimental.sqlcommenter.enabled",
      "type": "boolean"
    },
    {
      "declarative_name": "java.r2dbc.query_sanitization.enabled",
      "default": true,
      "description": "Enables query sanitization for database queries. Takes precedence over otel.instrumentation.common.db.query-sanitization.enabled.",
      "name": "otel.instrumentation.r2dbc.query-sanitization.enabled",
      "type": "boolean"
    }
  ],
  "description": "This instrumentation enables database client spans and database client metrics for R2DBC (Reactive Relational Database Connectivity).",
  "display_name": "R2DBC",
  "has_javaagent": true,
  "has_standalone_library": true,
  "javaagent_target_versions": [
    "io.r2dbc:r2dbc-spi:[0.9.0.RELEASE,)"
  ],
  "library_link": "https://r2dbc.io/",
  "markdown_hash": "4ef8ee1cb8e6",
  "name": "r2dbc-1.0",
  "scope": {
    "name": "io.opentelemetry.r2dbc-1.0"
  },
  "semantic_conventions": [
    "DATABASE_CLIENT_SPANS",
    "DATABASE_CLIENT_METRICS"
  ],
  "source_path": "instrumentation/r2dbc-1.0",
  "telemetry": [
    {
      "spans": [
        {
          "attributes": [
            {
              "name": "db.connection_string",
              "type": "STRING"
            },
            {
              "name": "db.name",
              "type": "STRING"
            },
            {
              "name": "db.operation",
              "type": "STRING"
            },
            {
              "name": "db.sql.table",
              "type": "STRING"
            },
            {
              "name": "db.statement",
              "type": "STRING"
            },
            {
              "name": "db.system",
              "type": "STRING"
            },
            {
              "name": "db.user",
              "type": "STRING"
            },
            {
              "name": "peer.service",
              "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.operation.batch.size",
              "type": "LONG"
            },
            {
              "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"
            },
            {
              "name": "service.peer.name",
              "type": "STRING"
            }
          ],
          "span_kind": "CLIENT"
        }
      ],
      "when": "otel.semconv-stability.opt-in=database,service.peer"
    }
  ]
}