Skip to content

Commit 1d5eba4

Browse files
committed
how to map declarative config properties
1 parent b1b2d73 commit 1d5eba4

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This file serves as a specification how to map properties from the existing config properties
2+
# to the declarative configuration format.
3+
# This list does not contain all properties, but those that
4+
# are different from what the config bridge already does.
5+
6+
# Based on https://github.com/open-telemetry/opentelemetry-configuration/blob/main/examples/kitchen-sink.yaml
7+
8+
# Re-use this flag to disable the Agent/Spring starter as well as the SDK.
9+
disabled: false # was: "otel.javaagent.enabled"
10+
# Re-use this flag from the SDK: if value is "debug", we trigger the behavior of "otel.javaagent.debug"
11+
log_level: info # was: "otel.javaagent.debug"
12+
instrumentation/development:
13+
# nothing changes here - just for reference
14+
general:
15+
peer:
16+
service_mapping: # was "otel.instrumentation.common.peer-service-mapping"
17+
- peer: 1.2.3.4
18+
service: FooService
19+
- peer: 2.3.4.5
20+
service: BarService
21+
http:
22+
# should be added to https://github.com/open-telemetry/opentelemetry-configuration/blob/c205770a956713e512eddb056570a99737e3383a/examples/kitchen-sink.yaml#L872
23+
known-methods: # was "otel.instrumentation.http.known-methods"
24+
- GET
25+
- POST
26+
- PUT
27+
- DELETE
28+
- PATCH
29+
- HEAD
30+
- OPTIONS
31+
client:
32+
request_captured_headers: # was otel.instrumentation.http.client.capture-request-headers
33+
- Content-Type
34+
- Accept
35+
response_captured_headers: # was otel.instrumentation.http.client.capture-response-headers
36+
- Content-Type
37+
- Content-Encoding
38+
server:
39+
request_captured_headers: # was otel.instrumentation.http.server.capture-request-headers
40+
- Content-Type
41+
- Accept
42+
response_captured_headers: # was otel.instrumentation.http.server.capture-response-headers
43+
- Content-Type
44+
- Content-Encoding
45+
java:
46+
agent:
47+
# Also map all other properties with the "otel.javaagent." prefix the same way,
48+
# unless specified otherwise.
49+
# See https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/14132
50+
exclude-class-loaders: # was "otel.javaagent.exclude-class-loaders"
51+
- a
52+
- b
53+
common:
54+
db-statement-sanitizer:
55+
enabled: true # already exists - just for reference
56+
thread_details:
57+
enabled: true # was "otel.javaagent.add-thread-details" = "true"
58+
logging:
59+
application:
60+
logs-buffer-max-records: 1000 # can only be used with "type: application"
61+
type: application or simple # was "otel.javaagent.logging"

0 commit comments

Comments
 (0)