{
  "configurations": [
    {
      "declarative_name": "java.common.controller_telemetry.enabled",
      "default": false,
      "description": "Enables the creation of experimental controller spans.",
      "name": "otel.instrumentation.common.controller-telemetry.enabled",
      "type": "boolean"
    },
    {
      "declarative_name": "java.common.controller_telemetry/development.enabled",
      "default": false,
      "deprecated": true,
      "description": "Deprecated: use `otel.instrumentation.common.controller-telemetry.enabled` instead. This setting is ignored under v3-preview and will be removed in 3.0.",
      "name": "otel.instrumentation.common.experimental.controller-telemetry.enabled",
      "replaced_by": "otel.instrumentation.common.controller-telemetry.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 server addresses or configured targets to peer services. Configured targets containing commas or equals signs can only be mapped with declarative `service_peer_mapping`.",
      "name": "otel.instrumentation.common.peer-service-mapping",
      "type": "map"
    },
    {
      "declarative_name": "general.http.client.request_captured_headers",
      "default": "",
      "description": "List of HTTP request headers to capture in HTTP client telemetry.",
      "name": "otel.instrumentation.http.client.capture-request-headers",
      "type": "list"
    },
    {
      "declarative_name": "general.http.client.response_captured_headers",
      "default": "",
      "description": "List of HTTP response headers to capture in HTTP client telemetry.",
      "name": "otel.instrumentation.http.client.capture-response-headers",
      "type": "list"
    },
    {
      "declarative_name": "java.common.http.client.emit_experimental_telemetry/development",
      "default": false,
      "description": "Enable the capture of experimental HTTP client telemetry. Adds the `http.request.body.size` and `http.response.body.size` attributes to spans, and records `http.client.request.body.size` and `http.client.response.body.size` metrics.",
      "name": "otel.instrumentation.http.client.emit-experimental-telemetry",
      "type": "boolean"
    },
    {
      "declarative_name": "java.common.http.known_methods",
      "default": "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE",
      "description": "Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as `_OTHER`.",
      "name": "otel.instrumentation.http.known-methods",
      "type": "list"
    },
    {
      "declarative_name": "java.common.http.client.url_template_rules",
      "declarative_schema": {
        "properties": {
          "override": {
            "default": false,
            "description": "Whether this rule overrides an already-applied template.",
            "type": "boolean"
          },
          "pattern": {
            "description": "Regular expression matched against the request URL.",
            "type": "string"
          },
          "template": {
            "description": "Template used to derive the low-cardinality route.",
            "type": "string"
          }
        },
        "required": [
          "pattern",
          "template"
        ],
        "type": "object"
      },
      "declarative_type": "structured_list",
      "default": "",
      "description": "Rules for deriving low-cardinality URL templates (routes) from HTTP client request URLs. Only applied when experimental HTTP client telemetry is enabled.",
      "name": "java.common.http.client.url_template_rules",
      "type": "list"
    },
    {
      "declarative_name": "general.sanitization.url.sensitive_query_parameters",
      "default": "AWSAccessKeyId,Signature,X-Amz-Signature,X-Amz-Credential,X-Amz-Security-Token,sig,X-Goog-Signature",
      "description": "List of URL query parameter names whose values are redacted in URL attributes. See https://opentelemetry.io/docs/specs/semconv/http/http-spans.",
      "name": "otel.instrumentation.sanitization.url.experimental.sensitive-query-parameters",
      "type": "list"
    }
  ],
  "description": "This instrumentation enriches HTTP server spans with route information, enables controller spans for Ratpack handlers (controller spans are disabled by default), and enables HTTP client spans and HTTP client metrics for Ratpack 1.7 and later.",
  "display_name": "Ratpack",
  "features": [
    "HTTP_ROUTE",
    "CONTROLLER_SPANS"
  ],
  "has_javaagent": true,
  "javaagent_target_versions": [
    "io.ratpack:ratpack-core:[1.4.0,)"
  ],
  "library_link": "https://ratpack.io/",
  "name": "ratpack-1.4",
  "scope": {
    "name": "io.opentelemetry.ratpack-1.4",
    "schema_url": "https://opentelemetry.io/schemas/1.41.0"
  },
  "semantic_conventions": [
    "HTTP_CLIENT_SPANS",
    "HTTP_CLIENT_METRICS"
  ],
  "source_path": "instrumentation/ratpack/ratpack-1.4",
  "telemetry": [
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "http.response.status_code",
              "type": "LONG"
            },
            {
              "name": "network.protocol.version",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "Duration of HTTP client requests.",
          "instrument": "histogram",
          "name": "http.client.request.duration",
          "unit": "s"
        }
      ],
      "spans": [
        {
          "attributes": [
            {
              "name": "error.type",
              "type": "STRING"
            },
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "http.request.method_original",
              "type": "STRING"
            },
            {
              "name": "http.response.status_code",
              "type": "LONG"
            },
            {
              "name": "http.route",
              "type": "STRING"
            },
            {
              "name": "network.protocol.version",
              "type": "STRING"
            },
            {
              "name": "peer.service",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            },
            {
              "name": "url.full",
              "type": "STRING"
            }
          ],
          "span_kind": "CLIENT"
        },
        {
          "attributes": [],
          "span_kind": "INTERNAL"
        }
      ],
      "when": "otel.instrumentation.common.controller-telemetry.enabled=true"
    },
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "http.response.status_code",
              "type": "LONG"
            },
            {
              "name": "network.protocol.version",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "Duration of HTTP client requests.",
          "instrument": "histogram",
          "name": "http.client.request.duration",
          "unit": "s"
        }
      ],
      "spans": [
        {
          "attributes": [
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "http.response.status_code",
              "type": "LONG"
            },
            {
              "name": "http.route",
              "type": "STRING"
            },
            {
              "name": "network.protocol.version",
              "type": "STRING"
            },
            {
              "name": "peer.service",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            },
            {
              "name": "url.full",
              "type": "STRING"
            }
          ],
          "span_kind": "CLIENT"
        }
      ],
      "when": "otel.instrumentation.common.v3-preview=true,otel.instrumentation.common.controller-telemetry.enabled=true"
    },
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "http.response.status_code",
              "type": "LONG"
            },
            {
              "name": "network.protocol.version",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "Duration of HTTP client requests.",
          "instrument": "histogram",
          "name": "http.client.request.duration",
          "unit": "s"
        }
      ],
      "spans": [
        {
          "attributes": [
            {
              "name": "error.type",
              "type": "STRING"
            },
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "http.request.method_original",
              "type": "STRING"
            },
            {
              "name": "http.response.status_code",
              "type": "LONG"
            },
            {
              "name": "http.route",
              "type": "STRING"
            },
            {
              "name": "network.protocol.version",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            },
            {
              "name": "service.peer.name",
              "type": "STRING"
            },
            {
              "name": "url.full",
              "type": "STRING"
            }
          ],
          "span_kind": "CLIENT"
        },
        {
          "attributes": [],
          "span_kind": "INTERNAL"
        }
      ],
      "when": "otel.semconv-stability.opt-in=service.peer"
    }
  ]
}