Skip to content

Commit 89ed9eb

Browse files
authored
Update helidon metadata (#14940)
1 parent a603b8a commit 89ed9eb

File tree

4 files changed

+101
-8
lines changed

4 files changed

+101
-8
lines changed

docs/instrumentation-list.yaml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3760,6 +3760,93 @@ libraries:
37603760
type: STRING
37613761
- name: rpc.system
37623762
type: STRING
3763+
helidon:
3764+
- name: helidon-4.3
3765+
description: This instrumentation enables HTTP server spans and HTTP server metrics
3766+
for the Helidon HTTP server.
3767+
semantic_conventions:
3768+
- HTTP_SERVER_SPANS
3769+
- HTTP_SERVER_METRICS
3770+
library_link: https://helidon.io/
3771+
features:
3772+
- HTTP_ROUTE
3773+
source_path: instrumentation/helidon-4.3
3774+
minimum_java_version: 21
3775+
scope:
3776+
name: io.opentelemetry.helidon-4.3
3777+
target_versions:
3778+
javaagent:
3779+
- io.helidon.webserver:helidon-webserver:[4.3.0,)
3780+
library:
3781+
- io.helidon.webserver:helidon-webserver:4.3.0
3782+
configurations:
3783+
- name: otel.instrumentation.http.known-methods
3784+
description: |
3785+
Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as `_OTHER`.
3786+
type: list
3787+
default: CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE
3788+
- name: otel.instrumentation.http.server.capture-request-headers
3789+
description: List of HTTP request headers to capture in HTTP server telemetry.
3790+
type: list
3791+
default: ''
3792+
- name: otel.instrumentation.http.server.capture-response-headers
3793+
description: List of HTTP response headers to capture in HTTP server telemetry.
3794+
type: list
3795+
default: ''
3796+
- name: otel.instrumentation.http.server.emit-experimental-telemetry
3797+
description: |
3798+
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.
3799+
type: boolean
3800+
default: false
3801+
telemetry:
3802+
- when: default
3803+
metrics:
3804+
- name: http.server.request.duration
3805+
description: Duration of HTTP server requests.
3806+
type: HISTOGRAM
3807+
unit: s
3808+
attributes:
3809+
- name: http.request.method
3810+
type: STRING
3811+
- name: http.response.status_code
3812+
type: LONG
3813+
- name: http.route
3814+
type: STRING
3815+
- name: network.protocol.version
3816+
type: STRING
3817+
- name: url.scheme
3818+
type: STRING
3819+
spans:
3820+
- span_kind: SERVER
3821+
attributes:
3822+
- name: client.address
3823+
type: STRING
3824+
- name: error.type
3825+
type: STRING
3826+
- name: http.request.method
3827+
type: STRING
3828+
- name: http.response.status_code
3829+
type: LONG
3830+
- name: http.route
3831+
type: STRING
3832+
- name: network.peer.address
3833+
type: STRING
3834+
- name: network.peer.port
3835+
type: LONG
3836+
- name: network.protocol.version
3837+
type: STRING
3838+
- name: server.address
3839+
type: STRING
3840+
- name: server.port
3841+
type: LONG
3842+
- name: url.path
3843+
type: STRING
3844+
- name: url.query
3845+
type: STRING
3846+
- name: url.scheme
3847+
type: STRING
3848+
- name: user_agent.original
3849+
type: STRING
37633850
hibernate:
37643851
- name: hibernate-3.3
37653852
description: |

instrumentation-docs/instrumentations.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ readonly INSTRUMENTATIONS=(
8686
"grpc-1.6:javaagent:test"
8787
"grpc-1.6:javaagent:testExperimental"
8888
"gwt-2.0:javaagent:test"
89+
"helidon-4.3:javaagent:test"
8990
"hibernate:hibernate-3.3:javaagent:test"
9091
"hibernate:hibernate-3.3:javaagent:testExperimental"
9192
"hibernate:hibernate-4.0:javaagent:test"

instrumentation/helidon-4.3/javaagent/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ dependencies {
2020
implementation(project(":instrumentation:helidon-4.3:library"))
2121
testImplementation(project(":instrumentation:helidon-4.3:testing"))
2222
}
23+
24+
tasks.test {
25+
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
26+
}
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
description: This instrumentation enables HTTP server spans and HTTP server metrics for the Helidon HTTP server.
22
library_link: https://helidon.io/
3+
semantic_conventions:
4+
- HTTP_SERVER_SPANS
5+
- HTTP_SERVER_METRICS
6+
features:
7+
- HTTP_ROUTE
38
configurations:
49
- name: otel.instrumentation.http.known-methods
510
description: >
@@ -15,14 +20,10 @@ configurations:
1520
description: List of HTTP response headers to capture in HTTP server telemetry.
1621
type: list
1722
default: ""
18-
- name: otel.instrumentation.common.peer-service-mapping
19-
description: Used to specify a mapping from host names or IP addresses to peer services.
20-
type: map
21-
default: ""
2223
- name: otel.instrumentation.http.server.emit-experimental-telemetry
2324
description: >
24-
Enable the capture of experimental HTTP server telemetry. Adds the `http.request.body.size` and
25-
`http.response.body.size` attributes to spans, and records `http.server.request.body.size`
26-
and `http.server.response.body.size` metrics.
25+
Enable the capture of experimental HTTP server telemetry. Adds the `http.request.body.size`
26+
and `http.response.body.size` attributes to spans, and records `http.server.request.size` and
27+
`http.server.response.size` metrics.
2728
type: boolean
28-
default: false
29+
default: false

0 commit comments

Comments
 (0)