Skip to content

Commit f4bfd74

Browse files
committed
Add additional properties, documentation
1 parent d0b6ade commit f4bfd74

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

javaagent/sdk-config.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,67 @@ meter_provider:
3939
aggregation:
4040
drop:
4141

42+
# Configure otel java agent instrumentation. A standard translation process applied to convert the flat system properties / env var configuration scheme from https://opentelemetry.io/docs/zero-code/java/agent/ to the structured scheme used by declarative configuration:
43+
#
44+
# - Only properties starting with "otel.instrumentation." are resolved
45+
# - Strip the "otel.instrumentation." prefix.
46+
# - Split the remaining property string on "." character to break into segments
47+
# - Starting at .instrumentation.java, follow N-1 segments to resolve the leaf node to read the property from
48+
# - Read segment N from the resolved leaf node
49+
#
50+
# For example, the property "otel.instrumentation.common.default-enabled" is resolved by reading: .instrumentation.java.common.default-enabled
51+
#
52+
# Some system properties / env vars cannot be configured via declarative configuration, normally because they are resolved in the application lifecycle before declarative configuration is available. The set of unsupported properties includes:
53+
# - otel.javaagent.enabled
54+
# - otel.javaagent.configuration-file
55+
# - otel.javaagent.extensions
56+
# - otel.javaagent.logging
57+
# - otel.resource.providers.[provider].enabled
58+
# TODO: add automation to keep this in sync with system property / env var documentation: https://opentelemetry.io/docs/zero-code/java/agent/
4259
instrumentation:
4360
java:
4461
common:
4562
default-enabled: true
63+
db-statement-sanitizer:
64+
enabled: true
65+
enduser:
66+
id:
67+
enabled: false
68+
role:
69+
enabled: false
70+
scope:
71+
enabled: false
72+
peer-service-mapping: {}
73+
experimental:
74+
controller-telemetry:
75+
enabled: true
76+
span-suppression-strategy: semconv
77+
http:
78+
client:
79+
capture-request-headers: []
80+
capture-response-headers: []
81+
emit-experimental-telemetry: false
82+
server:
83+
capture-request-headers: []
84+
capture-response-headers: []
85+
emit-experimental-telemetry: false
86+
known-methods:
87+
- CONNECT
88+
- DELETE
89+
- GET
90+
- HEAD
91+
- OPTIONS
92+
- PATCH
93+
- POST
94+
- PUT
95+
- TRACE
96+
messaging:
97+
experimental:
98+
receive-telemetry:
99+
enabled: false
46100
methods:
47101
enabled: true
102+
include: ""
48103
external-annotations:
49104
enabled: true
50105
akka-actor:
@@ -175,6 +230,8 @@ instrumentation:
175230
enabled: false
176231
servlet:
177232
enabled: true
233+
experimental:
234+
capture-request-parameters: []
178235
executors:
179236
enabled: true
180237
java-util-logging:
@@ -231,6 +288,7 @@ instrumentation:
231288
enabled: true
232289
opentelemetry-instrumentation-annotations:
233290
enabled: true
291+
exclude-methods: ""
234292
opentelemetry-api:
235293
enabled: true
236294
oracle-ucp:
@@ -291,6 +349,12 @@ instrumentation:
291349
enabled: true
292350
spring-scheduling:
293351
enabled: true
352+
spring-security:
353+
enduser:
354+
role:
355+
granted-authority-prefix: ROLE_
356+
scope:
357+
granted-authority-prefix: SCOPE_
294358
spring-web:
295359
enabled: true
296360
spring-webflux:

0 commit comments

Comments
 (0)