From f905bdafbd01b25f5dc8f7f599b8c15bb26ac041 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Sep 2025 14:50:39 +0000 Subject: [PATCH] Create metadata.yaml files for HTTP client instrumentations missing them Co-authored-by: jaydeluca <7630696+jaydeluca@users.noreply.github.com> --- .../jetty-httpclient-12.0/metadata.yaml | 32 +++++++++++++++++++ .../jetty-httpclient-9.2/metadata.yaml | 32 +++++++++++++++++++ instrumentation/jodd-http-4.2/metadata.yaml | 32 +++++++++++++++++++ instrumentation/netty/netty-3.8/metadata.yaml | 32 +++++++++++++++++++ .../okhttp/okhttp-2.2/metadata.yaml | 32 +++++++++++++++++++ .../okhttp/okhttp-3.0/metadata.yaml | 32 +++++++++++++++++++ .../pekko/pekko-http-1.0/metadata.yaml | 32 +++++++++++++++++++ .../play/play-ws/play-ws-common/metadata.yaml | 32 +++++++++++++++++++ .../vertx-http-client-common/metadata.yaml | 32 +++++++++++++++++++ 9 files changed, 288 insertions(+) create mode 100644 instrumentation/jetty-httpclient/jetty-httpclient-12.0/metadata.yaml create mode 100644 instrumentation/jetty-httpclient/jetty-httpclient-9.2/metadata.yaml create mode 100644 instrumentation/jodd-http-4.2/metadata.yaml create mode 100644 instrumentation/netty/netty-3.8/metadata.yaml create mode 100644 instrumentation/okhttp/okhttp-2.2/metadata.yaml create mode 100644 instrumentation/okhttp/okhttp-3.0/metadata.yaml create mode 100644 instrumentation/pekko/pekko-http-1.0/metadata.yaml create mode 100644 instrumentation/play/play-ws/play-ws-common/metadata.yaml create mode 100644 instrumentation/vertx/vertx-http-client/vertx-http-client-common/metadata.yaml diff --git a/instrumentation/jetty-httpclient/jetty-httpclient-12.0/metadata.yaml b/instrumentation/jetty-httpclient/jetty-httpclient-12.0/metadata.yaml new file mode 100644 index 0000000000..aeff301659 --- /dev/null +++ b/instrumentation/jetty-httpclient/jetty-httpclient-12.0/metadata.yaml @@ -0,0 +1,32 @@ +description: This instrumentation enables HTTP client spans and HTTP client metrics for Jetty HTTP Client 12.0. +library_link: https://www.eclipse.org/jetty/documentation/current/http-client.html +configurations: + - name: otel.instrumentation.http.known-methods + description: > + Configures the instrumentation to recognize an alternative set of HTTP request methods. All + other methods will be treated as `_OTHER`. + type: list + default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE" + - name: otel.instrumentation.http.client.capture-request-headers + description: List of HTTP request headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.http.client.capture-response-headers + description: List of HTTP response headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.common.peer-service-mapping + description: Used to specify a mapping from host names or IP addresses to peer services. + type: map + default: "" + - name: otel.instrumentation.http.client.emit-experimental-telemetry + 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.size` and + `http.client.response.size` metrics. + type: boolean + default: false + - name: otel.instrumentation.http.client.experimental.redact-query-parameters + description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans. + type: boolean + default: true \ No newline at end of file diff --git a/instrumentation/jetty-httpclient/jetty-httpclient-9.2/metadata.yaml b/instrumentation/jetty-httpclient/jetty-httpclient-9.2/metadata.yaml new file mode 100644 index 0000000000..a5e8fe4489 --- /dev/null +++ b/instrumentation/jetty-httpclient/jetty-httpclient-9.2/metadata.yaml @@ -0,0 +1,32 @@ +description: This instrumentation enables HTTP client spans and HTTP client metrics for Jetty HTTP Client 9.2. +library_link: https://www.eclipse.org/jetty/documentation/current/http-client.html +configurations: + - name: otel.instrumentation.http.known-methods + description: > + Configures the instrumentation to recognize an alternative set of HTTP request methods. All + other methods will be treated as `_OTHER`. + type: list + default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE" + - name: otel.instrumentation.http.client.capture-request-headers + description: List of HTTP request headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.http.client.capture-response-headers + description: List of HTTP response headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.common.peer-service-mapping + description: Used to specify a mapping from host names or IP addresses to peer services. + type: map + default: "" + - name: otel.instrumentation.http.client.emit-experimental-telemetry + 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.size` and + `http.client.response.size` metrics. + type: boolean + default: false + - name: otel.instrumentation.http.client.experimental.redact-query-parameters + description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans. + type: boolean + default: true \ No newline at end of file diff --git a/instrumentation/jodd-http-4.2/metadata.yaml b/instrumentation/jodd-http-4.2/metadata.yaml new file mode 100644 index 0000000000..ed3670dfbe --- /dev/null +++ b/instrumentation/jodd-http-4.2/metadata.yaml @@ -0,0 +1,32 @@ +description: This instrumentation enables HTTP client spans and HTTP client metrics for Jodd HTTP client. +library_link: https://jodd.org/http/ +configurations: + - name: otel.instrumentation.http.known-methods + description: > + Configures the instrumentation to recognize an alternative set of HTTP request methods. All + other methods will be treated as `_OTHER`. + type: list + default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE" + - name: otel.instrumentation.http.client.capture-request-headers + description: List of HTTP request headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.http.client.capture-response-headers + description: List of HTTP response headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.common.peer-service-mapping + description: Used to specify a mapping from host names or IP addresses to peer services. + type: map + default: "" + - name: otel.instrumentation.http.client.emit-experimental-telemetry + 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.size` and + `http.client.response.size` metrics. + type: boolean + default: false + - name: otel.instrumentation.http.client.experimental.redact-query-parameters + description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans. + type: boolean + default: true \ No newline at end of file diff --git a/instrumentation/netty/netty-3.8/metadata.yaml b/instrumentation/netty/netty-3.8/metadata.yaml new file mode 100644 index 0000000000..ab64c0204a --- /dev/null +++ b/instrumentation/netty/netty-3.8/metadata.yaml @@ -0,0 +1,32 @@ +description: This instrumentation enables HTTP client spans and HTTP client metrics for Netty 3.8. +library_link: https://netty.io/ +configurations: + - name: otel.instrumentation.http.known-methods + description: > + Configures the instrumentation to recognize an alternative set of HTTP request methods. All + other methods will be treated as `_OTHER`. + type: list + default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE" + - name: otel.instrumentation.http.client.capture-request-headers + description: List of HTTP request headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.http.client.capture-response-headers + description: List of HTTP response headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.common.peer-service-mapping + description: Used to specify a mapping from host names or IP addresses to peer services. + type: map + default: "" + - name: otel.instrumentation.http.client.emit-experimental-telemetry + 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.size` and + `http.client.response.size` metrics. + type: boolean + default: false + - name: otel.instrumentation.http.client.experimental.redact-query-parameters + description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans. + type: boolean + default: true \ No newline at end of file diff --git a/instrumentation/okhttp/okhttp-2.2/metadata.yaml b/instrumentation/okhttp/okhttp-2.2/metadata.yaml new file mode 100644 index 0000000000..5c4a9f0657 --- /dev/null +++ b/instrumentation/okhttp/okhttp-2.2/metadata.yaml @@ -0,0 +1,32 @@ +description: This instrumentation enables HTTP client spans and HTTP client metrics for OkHttp version 2.2. +library_link: https://square.github.io/okhttp/ +configurations: + - name: otel.instrumentation.http.known-methods + description: > + Configures the instrumentation to recognize an alternative set of HTTP request methods. All + other methods will be treated as `_OTHER`. + type: list + default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE" + - name: otel.instrumentation.http.client.capture-request-headers + description: List of HTTP request headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.http.client.capture-response-headers + description: List of HTTP response headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.common.peer-service-mapping + description: Used to specify a mapping from host names or IP addresses to peer services. + type: map + default: "" + - name: otel.instrumentation.http.client.emit-experimental-telemetry + 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.size` and + `http.client.response.size` metrics. + type: boolean + default: false + - name: otel.instrumentation.http.client.experimental.redact-query-parameters + description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans. + type: boolean + default: true \ No newline at end of file diff --git a/instrumentation/okhttp/okhttp-3.0/metadata.yaml b/instrumentation/okhttp/okhttp-3.0/metadata.yaml new file mode 100644 index 0000000000..f2308d683d --- /dev/null +++ b/instrumentation/okhttp/okhttp-3.0/metadata.yaml @@ -0,0 +1,32 @@ +description: This instrumentation enables HTTP client spans and HTTP client metrics for OkHttp version 3.0. +library_link: https://square.github.io/okhttp/ +configurations: + - name: otel.instrumentation.http.known-methods + description: > + Configures the instrumentation to recognize an alternative set of HTTP request methods. All + other methods will be treated as `_OTHER`. + type: list + default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE" + - name: otel.instrumentation.http.client.capture-request-headers + description: List of HTTP request headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.http.client.capture-response-headers + description: List of HTTP response headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.common.peer-service-mapping + description: Used to specify a mapping from host names or IP addresses to peer services. + type: map + default: "" + - name: otel.instrumentation.http.client.emit-experimental-telemetry + 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.size` and + `http.client.response.size` metrics. + type: boolean + default: false + - name: otel.instrumentation.http.client.experimental.redact-query-parameters + description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans. + type: boolean + default: true \ No newline at end of file diff --git a/instrumentation/pekko/pekko-http-1.0/metadata.yaml b/instrumentation/pekko/pekko-http-1.0/metadata.yaml new file mode 100644 index 0000000000..f7acb496dd --- /dev/null +++ b/instrumentation/pekko/pekko-http-1.0/metadata.yaml @@ -0,0 +1,32 @@ +description: This instrumentation enables HTTP client spans and HTTP client metrics for Pekko HTTP. +library_link: https://pekko.apache.org/docs/pekko-http/current/index.html +configurations: + - name: otel.instrumentation.http.known-methods + description: > + Configures the instrumentation to recognize an alternative set of HTTP request methods. All + other methods will be treated as `_OTHER`. + type: list + default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE" + - name: otel.instrumentation.http.client.capture-request-headers + description: List of HTTP request headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.http.client.capture-response-headers + description: List of HTTP response headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.common.peer-service-mapping + description: Used to specify a mapping from host names or IP addresses to peer services. + type: map + default: "" + - name: otel.instrumentation.http.client.emit-experimental-telemetry + 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.size` and + `http.client.response.size` metrics. + type: boolean + default: false + - name: otel.instrumentation.http.client.experimental.redact-query-parameters + description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans. + type: boolean + default: true \ No newline at end of file diff --git a/instrumentation/play/play-ws/play-ws-common/metadata.yaml b/instrumentation/play/play-ws/play-ws-common/metadata.yaml new file mode 100644 index 0000000000..bc351ff37a --- /dev/null +++ b/instrumentation/play/play-ws/play-ws-common/metadata.yaml @@ -0,0 +1,32 @@ +description: This instrumentation enables HTTP client spans and HTTP client metrics for Play WS HTTP client. +library_link: https://github.com/playframework/play-ws +configurations: + - name: otel.instrumentation.http.known-methods + description: > + Configures the instrumentation to recognize an alternative set of HTTP request methods. All + other methods will be treated as `_OTHER`. + type: list + default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE" + - name: otel.instrumentation.http.client.capture-request-headers + description: List of HTTP request headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.http.client.capture-response-headers + description: List of HTTP response headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.common.peer-service-mapping + description: Used to specify a mapping from host names or IP addresses to peer services. + type: map + default: "" + - name: otel.instrumentation.http.client.emit-experimental-telemetry + 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.size` and + `http.client.response.size` metrics. + type: boolean + default: false + - name: otel.instrumentation.http.client.experimental.redact-query-parameters + description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans. + type: boolean + default: true \ No newline at end of file diff --git a/instrumentation/vertx/vertx-http-client/vertx-http-client-common/metadata.yaml b/instrumentation/vertx/vertx-http-client/vertx-http-client-common/metadata.yaml new file mode 100644 index 0000000000..65774a103b --- /dev/null +++ b/instrumentation/vertx/vertx-http-client/vertx-http-client-common/metadata.yaml @@ -0,0 +1,32 @@ +description: This instrumentation enables HTTP client spans and HTTP client metrics for Vert.x HTTP client. +library_link: https://vertx.io/docs/vertx-web-client/java/ +configurations: + - name: otel.instrumentation.http.known-methods + description: > + Configures the instrumentation to recognize an alternative set of HTTP request methods. All + other methods will be treated as `_OTHER`. + type: list + default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE" + - name: otel.instrumentation.http.client.capture-request-headers + description: List of HTTP request headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.http.client.capture-response-headers + description: List of HTTP response headers to capture in HTTP client telemetry. + type: list + default: "" + - name: otel.instrumentation.common.peer-service-mapping + description: Used to specify a mapping from host names or IP addresses to peer services. + type: map + default: "" + - name: otel.instrumentation.http.client.emit-experimental-telemetry + 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.size` and + `http.client.response.size` metrics. + type: boolean + default: false + - name: otel.instrumentation.http.client.experimental.redact-query-parameters + description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans. + type: boolean + default: true \ No newline at end of file