Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 172 additions & 6 deletions docs/instrumentation-list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8282,16 +8282,33 @@ libraries:
- org.mongodb:mongodb-driver-async:[3.3,)
mybatis:
- name: mybatis-3.2
display_name: MyBatis
description: This instrumentation enables spans for MyBatis mapper method executions.
library_link: https://mybatis.org/mybatis-3/
disabled_by_default: true
source_path: instrumentation/mybatis-3.2
scope:
name: io.opentelemetry.mybatis-3.2
target_versions:
javaagent:
- org.mybatis:mybatis:[3.2.0,)
telemetry:
- when: default
spans:
- span_kind: INTERNAL
attributes:
- name: code.function
type: STRING
- name: code.namespace
type: STRING
nats:
- name: nats-2.17
description: This instrumentation provides messaging spans for NATS
display_name: NATS Client
description: This instrumentation enables messaging spans for NATS message producers
and consumers.
semantic_conventions:
- MESSAGING_SPANS
library_link: https://nats.io/
source_path: instrumentation/nats/nats-2.17
scope:
name: io.opentelemetry.nats-2.17
Expand All @@ -8302,7 +8319,8 @@ libraries:
- io.nats:jnats:2.17.2
configurations:
- name: otel.instrumentation.messaging.experimental.capture-headers
description: Allows configuring headers to capture as span attributes.
description: |
Enables capturing messaging headers as span attributes. Provide a comma-separated list of header names to capture.
type: list
default: ''
telemetry:
Expand Down Expand Up @@ -8342,13 +8360,63 @@ libraries:
type: STRING
netty:
- name: netty-3.8
display_name: Netty HTTP codec
description: |
This instrumentation enables HTTP client spans, HTTP client metrics, HTTP server spans, and HTTP server metrics for the Netty framework. Does not currently support capturing HTTP/2 traffic.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I included the "Does not currently support capturing HTTP/2 traffic." just because it was included in the supported libraries page, but if we don't think it makes sense to include i can remove it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to google ai http/2 support was added in netty 4.1 so I guess could remove from versions that don't support it anyway. Imo keeping it is fine too.

semantic_conventions:
- HTTP_CLIENT_SPANS
- HTTP_CLIENT_METRICS
- HTTP_SERVER_SPANS
- HTTP_SERVER_METRICS
library_link: https://netty.io/
source_path: instrumentation/netty/netty-3.8
scope:
name: io.opentelemetry.netty-3.8
schema_url: https://opentelemetry.io/schemas/1.37.0
target_versions:
javaagent:
- io.netty:netty:[3.8.0.Final,4)
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
- name: otel.instrumentation.http.server.capture-request-headers
description: List of HTTP request headers to capture in HTTP server telemetry.
type: list
default: ''
- name: otel.instrumentation.http.server.capture-response-headers
description: List of HTTP response headers to capture in HTTP server telemetry.
type: list
default: ''
- name: otel.instrumentation.http.server.emit-experimental-telemetry
description: |
Enable 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.size` and `http.server.response.size` metrics.
type: boolean
default: false
telemetry:
- when: default
metrics:
Expand Down Expand Up @@ -8436,6 +8504,15 @@ libraries:
- name: user_agent.original
type: STRING
- name: netty-4.0
display_name: Netty HTTP codec
description: |
This instrumentation enables HTTP client spans, HTTP client metrics, HTTP server spans, and HTTP server metrics for the Netty framework. Does not currently support capturing HTTP/2 traffic.
semantic_conventions:
- HTTP_CLIENT_SPANS
- HTTP_CLIENT_METRICS
- HTTP_SERVER_SPANS
- HTTP_SERVER_METRICS
library_link: https://netty.io/
source_path: instrumentation/netty/netty-4.0
scope:
name: io.opentelemetry.netty-4.0
Expand All @@ -8445,12 +8522,52 @@ libraries:
- 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)
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
- name: otel.instrumentation.http.server.capture-request-headers
description: List of HTTP request headers to capture in HTTP server telemetry.
type: list
default: ''
- name: otel.instrumentation.http.server.capture-response-headers
description: List of HTTP response headers to capture in HTTP server telemetry.
type: list
default: ''
- name: otel.instrumentation.http.server.emit-experimental-telemetry
description: |
Enable 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.size` and `http.server.response.size` metrics.
type: boolean
default: false
- name: otel.instrumentation.netty.connection-telemetry.enabled
description: Enable the creation of Connect and DNS spans
description: Enable the creation of Connect and DNS spans.
type: boolean
default: false
- name: otel.instrumentation.netty.ssl-telemetry.enabled
description: Enable SSL telemetry
description: Enable SSL telemetry.
type: boolean
default: false
telemetry:
Expand Down Expand Up @@ -8540,6 +8657,15 @@ libraries:
- name: user_agent.original
type: STRING
- name: netty-4.1
display_name: Netty HTTP codec
description: |
This instrumentation enables HTTP client spans, HTTP client metrics, HTTP server spans, and HTTP server metrics for the Netty framework. Does not currently support capturing HTTP/2 traffic.
semantic_conventions:
- HTTP_CLIENT_SPANS
- HTTP_CLIENT_METRICS
- HTTP_SERVER_SPANS
- HTTP_SERVER_METRICS
library_link: https://netty.io/
source_path: instrumentation/netty/netty-4.1
scope:
name: io.opentelemetry.netty-4.1
Expand All @@ -8551,12 +8677,52 @@ libraries:
library:
- io.netty:netty-codec-http:4.1.0.Final
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
- name: otel.instrumentation.http.server.capture-request-headers
description: List of HTTP request headers to capture in HTTP server telemetry.
type: list
default: ''
- name: otel.instrumentation.http.server.capture-response-headers
description: List of HTTP response headers to capture in HTTP server telemetry.
type: list
default: ''
- name: otel.instrumentation.http.server.emit-experimental-telemetry
description: |
Enable 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.size` and `http.server.response.size` metrics.
type: boolean
default: false
- name: otel.instrumentation.netty.connection-telemetry.enabled
description: Enable the creation of Connect and DNS spans
description: Enable the creation of Connect and DNS spans.
type: boolean
default: false
- name: otel.instrumentation.netty.ssl-telemetry.enabled
description: Enable SSL telemetry
description: Enable SSL telemetry.
type: boolean
default: false
telemetry:
Expand Down
1 change: 1 addition & 0 deletions instrumentation-docs/instrumentations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ readonly INSTRUMENTATIONS=(
"lettuce:lettuce-5.0:javaagent:testStableSemconv"
"lettuce:lettuce-5.1:javaagent:test"
"lettuce:lettuce-5.1:javaagent:testStableSemconv"
"mybatis-3.2:javaagent:test"
"nats:nats-2.17:javaagent:test"
"nats:nats-2.17:javaagent:testExperimental"
"netty:netty-3.8:javaagent:test"
Expand Down
1 change: 1 addition & 0 deletions instrumentation/mybatis-3.2/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies {

tasks.withType<Test>().configureEach {
jvmArgs("-Dotel.instrumentation.mybatis.enabled=true")
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")

// required on jdk17
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
Expand Down
3 changes: 3 additions & 0 deletions instrumentation/mybatis-3.2/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
display_name: MyBatis
description: This instrumentation enables spans for MyBatis mapper method executions.
disabled_by_default: true
library_link: https://mybatis.org/mybatis-3/
11 changes: 8 additions & 3 deletions instrumentation/nats/nats-2.17/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
disabled_by_default: false
description: This instrumentation provides messaging spans for NATS
display_name: NATS Client
description: This instrumentation enables messaging spans for NATS message producers and consumers.
semantic_conventions:
- MESSAGING_SPANS
library_link: https://nats.io/
configurations:
- name: otel.instrumentation.messaging.experimental.capture-headers
description: Allows configuring headers to capture as span attributes.
description: >
Enables capturing messaging headers as span attributes. Provide a comma-separated list of
header names to capture.
type: list
default: ''
55 changes: 55 additions & 0 deletions instrumentation/netty/netty-3.8/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
display_name: Netty HTTP codec
description: >
This instrumentation enables HTTP client spans, HTTP client metrics, HTTP server spans, and HTTP
server metrics for the Netty framework. Does not currently support capturing HTTP/2 traffic.
semantic_conventions:
- HTTP_CLIENT_SPANS
- HTTP_CLIENT_METRICS
- HTTP_SERVER_SPANS
- HTTP_SERVER_METRICS
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
- name: otel.instrumentation.http.server.capture-request-headers
description: List of HTTP request headers to capture in HTTP server telemetry.
type: list
default: ""
- name: otel.instrumentation.http.server.capture-response-headers
description: List of HTTP response headers to capture in HTTP server telemetry.
type: list
default: ""
- name: otel.instrumentation.http.server.emit-experimental-telemetry
description: >
Enable 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.size` and
`http.server.response.size` metrics.
type: boolean
default: false
Loading
Loading