Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
382 changes: 382 additions & 0 deletions docs/instrumentation-list.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions instrumentation-docs/instrumentations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ readonly INSTRUMENTATIONS=(
"jsf:jsf-myfaces-3.0:javaagent:test"
"kafka:kafka-clients:kafka-clients-2.6:library:test"
"kafka:kafka-connect-2.6:testing:test"
"ktor:ktor-1.0:library:test"
"ktor:ktor-2.0:library:test"
"ktor:ktor-3.0:library:test"
"nats:nats-2.17:javaagent:test"
"nats:nats-2.17:javaagent:testExperimental"
"netty:netty-3.8:javaagent:test"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: >
This instrumentation enables context propagation for Kotlin coroutines and adds support for
@WithSpan annotations on Kotlin suspend functions, it does not emit any telemetry on its own.
display_name: Kotlin Coroutines
features:
- CONTEXT_PROPAGATION
library_link: https://github.com/Kotlin/kotlinx.coroutines
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: >
This instrumentation adds support for @WithSpan annotations on methods that return Kotlin Flow,
it does not emit any telemetry on its own.
display_name: Kotlin Coroutines Flow
library_link: https://github.com/Kotlin/kotlinx.coroutines
4 changes: 2 additions & 2 deletions instrumentation/ktor/ktor-1.0/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ kotlin {
}
}

tasks.withType<Test>().configureEach {
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
Copy link
Member Author

Choose a reason for hiding this comment

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

this system property isn't relevant to this instrumentation

tasks.test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
}
7 changes: 7 additions & 0 deletions instrumentation/ktor/ktor-1.0/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: This standalone instrumentation enables HTTP server spans and HTTP server metrics for the Ktor server.
semantic_conventions:
- HTTP_SERVER_SPANS
- HTTP_SERVER_METRICS
features:
- HTTP_ROUTE
library_link: https://ktor.io/
4 changes: 4 additions & 0 deletions instrumentation/ktor/ktor-2.0/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ kotlin {
javaParameters = true
}
}

tasks.test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
}
4 changes: 4 additions & 0 deletions instrumentation/ktor/ktor-2.0/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ kotlin {
languageVersion.set(KotlinVersion.KOTLIN_1_8)
}
}

tasks.test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
}
56 changes: 56 additions & 0 deletions instrumentation/ktor/ktor-2.0/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
description: >
This instrumentation provides HTTP server spans and HTTP server metrics for the Ktor server,
and HTTP client spans and HTTP client metrics for the Ktor HTTP client.
semantic_conventions:
- HTTP_SERVER_SPANS
- HTTP_SERVER_METRICS
- HTTP_CLIENT_SPANS
- HTTP_CLIENT_METRICS
features:
- HTTP_ROUTE
library_link: https://ktor.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.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.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
4 changes: 4 additions & 0 deletions instrumentation/ktor/ktor-3.0/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ kotlin {
languageVersion.set(KotlinVersion.KOTLIN_1_8)
}
}

tasks.test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
}
56 changes: 56 additions & 0 deletions instrumentation/ktor/ktor-3.0/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
description: >
This instrumentation provides HTTP server spans and HTTP server metrics for the Ktor server,
and HTTP client spans and HTTP client metrics for the Ktor HTTP client.
semantic_conventions:
- HTTP_SERVER_SPANS
- HTTP_SERVER_METRICS
- HTTP_CLIENT_SPANS
- HTTP_CLIENT_METRICS
features:
- HTTP_ROUTE
library_link: https://ktor.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.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.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
Loading