Skip to content

Commit 425a383

Browse files
authored
Update AsyncHttpClient metadata (#15235)
1 parent 03a1122 commit 425a383

File tree

5 files changed

+130
-7
lines changed

5 files changed

+130
-7
lines changed

docs/instrumentation-list.yaml

Lines changed: 84 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,9 +1170,88 @@ libraries:
11701170
- name: server.port
11711171
type: LONG
11721172
async:
1173+
- name: async-http-client-1.8
1174+
display_name: AsyncHttpClient
1175+
description: |
1176+
This instrumentation enables HTTP client spans and HTTP client metrics for the AsyncHttpClient HTTP client.
1177+
semantic_conventions:
1178+
- HTTP_CLIENT_SPANS
1179+
- HTTP_CLIENT_METRICS
1180+
library_link: https://github.com/AsyncHttpClient/async-http-client
1181+
source_path: instrumentation/async-http-client/async-http-client-1.8
1182+
scope:
1183+
name: io.opentelemetry.async-http-client-1.8
1184+
schema_url: https://opentelemetry.io/schemas/1.37.0
1185+
target_versions:
1186+
javaagent:
1187+
- com.ning:async-http-client:[1.8.0,1.9.0)
1188+
configurations:
1189+
- name: otel.instrumentation.http.known-methods
1190+
description: |
1191+
Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as `_OTHER`.
1192+
type: list
1193+
default: CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE
1194+
- name: otel.instrumentation.http.client.capture-request-headers
1195+
description: List of HTTP request headers to capture in HTTP client telemetry.
1196+
type: list
1197+
default: ''
1198+
- name: otel.instrumentation.http.client.capture-response-headers
1199+
description: List of HTTP response headers to capture in HTTP client telemetry.
1200+
type: list
1201+
default: ''
1202+
- name: otel.instrumentation.common.peer-service-mapping
1203+
description: Used to specify a mapping from host names or IP addresses to peer
1204+
services.
1205+
type: map
1206+
default: ''
1207+
- name: otel.instrumentation.http.client.emit-experimental-telemetry
1208+
description: |
1209+
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.
1210+
type: boolean
1211+
default: false
1212+
- name: otel.instrumentation.http.client.experimental.redact-query-parameters
1213+
description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans.
1214+
type: boolean
1215+
default: true
1216+
telemetry:
1217+
- when: default
1218+
metrics:
1219+
- name: http.client.request.duration
1220+
description: Duration of HTTP client requests.
1221+
type: HISTOGRAM
1222+
unit: s
1223+
attributes:
1224+
- name: http.request.method
1225+
type: STRING
1226+
- name: http.response.status_code
1227+
type: LONG
1228+
- name: server.address
1229+
type: STRING
1230+
- name: server.port
1231+
type: LONG
1232+
spans:
1233+
- span_kind: CLIENT
1234+
attributes:
1235+
- name: error.type
1236+
type: STRING
1237+
- name: http.request.method
1238+
type: STRING
1239+
- name: http.request.method_original
1240+
type: STRING
1241+
- name: http.response.status_code
1242+
type: LONG
1243+
- name: peer.service
1244+
type: STRING
1245+
- name: server.address
1246+
type: STRING
1247+
- name: server.port
1248+
type: LONG
1249+
- name: url.full
1250+
type: STRING
11731251
- name: async-http-client-1.9
1174-
description: This instrumentation enables HTTP client spans and HTTP client metrics
1175-
for version 1 of the AsyncHttpClient (AHC) HTTP client.
1252+
display_name: AsyncHttpClient
1253+
description: |
1254+
This instrumentation enables HTTP client spans and HTTP client metrics for the AsyncHttpClient HTTP client.
11761255
semantic_conventions:
11771256
- HTTP_CLIENT_SPANS
11781257
- HTTP_CLIENT_METRICS
@@ -1248,8 +1327,9 @@ libraries:
12481327
- name: url.full
12491328
type: STRING
12501329
- name: async-http-client-2.0
1251-
description: This instrumentation enables HTTP client spans and HTTP client metrics
1252-
for version 2 of the AsyncHttpClient (AHC) HTTP client.
1330+
display_name: AsyncHttpClient
1331+
description: |
1332+
This instrumentation enables HTTP client spans and HTTP client metrics for the AsyncHttpClient HTTP client.
12531333
semantic_conventions:
12541334
- HTTP_CLIENT_SPANS
12551335
- HTTP_CLIENT_METRICS

instrumentation-docs/instrumentations.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ readonly INSTRUMENTATIONS=(
2222
"apache-httpclient:apache-httpclient-5.2:library:test"
2323
"armeria:armeria-1.3:javaagent:test"
2424
"armeria:armeria-grpc-1.14:javaagent:test"
25+
"async-http-client:async-http-client-1.8:javaagent:test"
2526
"async-http-client:async-http-client-1.9:javaagent:test"
2627
"async-http-client:async-http-client-2.0:javaagent:test"
2728
"aws-lambda:aws-lambda-core-1.0:javaagent:test"
Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
1-
description: This instrumentation enables HTTP client spans and HTTP client metrics for version 1.8 of the AsyncHttpClient (AHC) HTTP client.
1+
display_name: AsyncHttpClient
2+
description: >
3+
This instrumentation enables HTTP client spans and HTTP client metrics for the AsyncHttpClient
4+
HTTP client.
25
library_link: https://github.com/AsyncHttpClient/async-http-client
6+
semantic_conventions:
7+
- HTTP_CLIENT_SPANS
8+
- HTTP_CLIENT_METRICS
9+
configurations:
10+
- name: otel.instrumentation.http.known-methods
11+
description: >
12+
Configures the instrumentation to recognize an alternative set of HTTP request methods. All
13+
other methods will be treated as `_OTHER`.
14+
type: list
15+
default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE"
16+
- name: otel.instrumentation.http.client.capture-request-headers
17+
description: List of HTTP request headers to capture in HTTP client telemetry.
18+
type: list
19+
default: ""
20+
- name: otel.instrumentation.http.client.capture-response-headers
21+
description: List of HTTP response headers to capture in HTTP client telemetry.
22+
type: list
23+
default: ""
24+
- name: otel.instrumentation.common.peer-service-mapping
25+
description: Used to specify a mapping from host names or IP addresses to peer services.
26+
type: map
27+
default: ""
28+
- name: otel.instrumentation.http.client.emit-experimental-telemetry
29+
description: >
30+
Enable the capture of experimental HTTP client telemetry. Adds the `http.request.body.size`
31+
and `http.response.body.size` attributes to spans, and records `http.client.request.size` and
32+
`http.client.response.size` metrics.
33+
type: boolean
34+
default: false
35+
- name: otel.instrumentation.http.client.experimental.redact-query-parameters
36+
description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans.
37+
type: boolean
38+
default: true

instrumentation/async-http-client/async-http-client-1.9/metadata.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
description: This instrumentation enables HTTP client spans and HTTP client metrics for version 1.9 of the AsyncHttpClient (AHC) HTTP client.
1+
display_name: AsyncHttpClient
2+
description: >
3+
This instrumentation enables HTTP client spans and HTTP client metrics for the AsyncHttpClient
4+
HTTP client.
25
library_link: https://github.com/AsyncHttpClient/async-http-client
36
semantic_conventions:
47
- HTTP_CLIENT_SPANS

instrumentation/async-http-client/async-http-client-2.0/metadata.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
description: This instrumentation enables HTTP client spans and HTTP client metrics for version 2 of the AsyncHttpClient (AHC) HTTP client.
1+
display_name: AsyncHttpClient
2+
description: >
3+
This instrumentation enables HTTP client spans and HTTP client metrics for the AsyncHttpClient
4+
HTTP client.
25
library_link: https://github.com/AsyncHttpClient/async-http-client
36
semantic_conventions:
47
- HTTP_CLIENT_SPANS

0 commit comments

Comments
 (0)