This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/netty-4.0.md.

Netty HTTP codec

OpenTelemetry Java agent instrumentation

This instrumentation enables HTTP client spans, HTTP client metrics, HTTP server spans, and HTTP server metrics for the Netty framework.

  • Name: netty-4.0
  • Scope: io.opentelemetry.netty-4.0
  • Target versions: io.netty:netty-all:[4.0.0.Final,4.1.0.Final), io.netty:netty-codec-http:[4.0.0.Final,4.1.0.Final)
  • Library: https://netty.io/

Telemetry

  • Metrics: http.client.request.duration, http.server.request.duration
  • Span attributes: error.type, http.request.method, http.request.method_original, http.response.status_code, network.peer.address, network.peer.port, network.protocol.version, peer.service, server.address, server.port, url.full, client.address, url.path, url.query, url.scheme, user_agent.original, service.peer.name

Configuration

OptionTypeDefaultDescription
otel.instrumentation.common.peer-service-mappingmapUsed to specify a mapping from host names or IP addresses to peer services.
otel.instrumentation.http.client.capture-request-headerslistList of HTTP request headers to capture in HTTP client telemetry.
otel.instrumentation.http.client.capture-response-headerslistList of HTTP response headers to capture in HTTP client telemetry.
otel.instrumentation.http.client.emit-experimental-telemetrybooleanfalseEnable 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.
otel.instrumentation.http.known-methodslistCONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACEConfigures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as _OTHER.
otel.instrumentation.http.server.capture-request-headerslistList of HTTP request headers to capture in HTTP server telemetry.
otel.instrumentation.http.server.capture-response-headerslistList of HTTP response headers to capture in HTTP server telemetry.
otel.instrumentation.http.server.emit-experimental-telemetrybooleanfalseEnable the capture of experimental HTTP server telemetry. Adds the http.request.body.size and http.response.body.size attributes to spans, and records http.server.request.body.size and http.server.response.body.size metrics.
java.common.http.client.url_template_ruleslistRules for deriving low-cardinality URL templates (routes) from HTTP client request URLs. Only applied when experimental HTTP client telemetry is enabled.
otel.instrumentation.netty.connection-telemetry.enabledbooleanfalseEnable the creation of Connect and DNS spans.
otel.instrumentation.netty.ssl-telemetry.enabledbooleanfalseEnable SSL telemetry.
otel.instrumentation.sanitization.url.experimental.sensitive-query-parameterslistAWSAccessKeyId,Signature,sig,X-Goog-SignatureList of URL query parameter names whose values are redacted in URL attributes. See https://opentelemetry.io/docs/specs/semconv/http/http-spans.

Data

  • JSON: /data/javaagent/instrumentations/netty-4.0/netty-4.0-ed750920424d.json
  • Explore: /java-agent/instrumentation/netty-4.0