Skip to content

Commit 36ab38c

Browse files
committed
chore: otel sdk config update
1 parent 00f30a3 commit 36ab38c

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ The next version will be based on the semantic version scope (`major`, `minor`,
149149
* AOT Cache
150150

151151
```bash
152-
# Training Run to create AOT cache
152+
# Training Run to create AOT cache (JDK_AOT_VM_OPTIONS)
153153
$ java --enable-preview \
154154
-XX:+UseZGC \
155155
-XX:+UseCompactObjectHeaders \

backend/jvm/src/main/resources/otel/sdk-config.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ resource:
5555
value: ${OTEL_SERVICE_NAMESPACE:-dev}
5656
- name: service.instance.id
5757
value: ${OTEL_SERVICE_INSTANCE_ID:-unknown}
58-
58+
5959
# Configure resource attributes. Entries have lower priority than entries from .resource.attributes.
6060
# The value is a list of comma separated key-value pairs matching the format of OTEL_RESOURCE_ATTRIBUTES. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration for details.
6161
# If omitted or null, no resource attributes are added.
@@ -76,7 +76,7 @@ propagator:
7676
# Configure the propagators in the composite text map propagator. Entries from .composite_list are appended to the list here with duplicates filtered out.
7777
# Built-in propagator keys include: tracecontext, baggage, b3, b3multi, jaeger, ottrace. Known third party keys include: xray.
7878
# If the resolved list of propagators (from .composite and .composite_list) is empty, a noop propagator is used.
79-
composite: []
79+
composite: [ ]
8080
# Configure the propagators in the composite text map propagator. Entries are appended to .composite with duplicates filtered out.
8181
# The value is a comma separated list of propagator identifiers matching the format of OTEL_PROPAGATORS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration for details.
8282
# Built-in propagator identifiers include: tracecontext, baggage, b3, b3multi, jaeger, ottrace. Known third party identifiers include: xray.
@@ -132,7 +132,7 @@ tracer_provider:
132132
timeout: ${OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:-10000}
133133
# Configure headers. Entries have higher priority than entries from .headers_list.
134134
# If an entry's .value is null, the entry is ignored.
135-
headers: []
135+
headers: [ ]
136136
# Configure headers. Entries have lower priority than entries from .headers.
137137
# The value is a list of comma separated key-value pairs matching the format of OTEL_EXPORTER_OTLP_HEADERS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options for details.
138138
# If omitted or null, no headers are added.
@@ -248,7 +248,7 @@ meter_provider:
248248
timeout: ${OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:-10000}
249249
# Configure headers. Entries have higher priority than entries from .headers_list.
250250
# If an entry's .value is null, the entry is ignored.
251-
headers: []
251+
headers: [ ]
252252
# Configure headers. Entries have lower priority than entries from .headers.
253253
# The value is a list of comma separated key-value pairs matching the format of OTEL_EXPORTER_OTLP_HEADERS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options for details.
254254
# If omitted or null, no headers are added.
@@ -313,7 +313,7 @@ logger_provider:
313313
timeout: ${OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:-10000}
314314
# Configure headers. Entries have higher priority than entries from .headers_list.
315315
# If an entry's .value is null, the entry is ignored.
316-
headers: []
316+
headers: [ ]
317317
# Configure headers. Entries have lower priority than entries from .headers.
318318
# The value is a list of comma separated key-value pairs matching the format of OTEL_EXPORTER_OTLP_HEADERS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options for details.
319319
# If omitted or null, no headers are added.
@@ -360,6 +360,11 @@ instrumentation:
360360
java:
361361
common:
362362
default-enabled: true
363+
runtime-telemetry:
364+
emit-experimental-telemetry: true
365+
runtime-telemetry-java17:
366+
enable-all: true
367+
363368
# Configuration logback-appender instrumentation. Properties adapted from:
364369
# https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/java-util-logging/javaagent
365370
java-util-logging:

0 commit comments

Comments
 (0)