From 3503c5e10a5160bb87b601bc7da9b5d6bec9bae3 Mon Sep 17 00:00:00 2001 From: Sylvain Juge <763082+SylvainJuge@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:31:19 +0200 Subject: [PATCH 1/2] document java baggage --- docs/reference/edot-sdks/java/features.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/reference/edot-sdks/java/features.md b/docs/reference/edot-sdks/java/features.md index e482c220..52b18799 100644 --- a/docs/reference/edot-sdks/java/features.md +++ b/docs/reference/edot-sdks/java/features.md @@ -59,3 +59,16 @@ Set `OTEL_INSTRUMENTATION_RUNTIME_TELEMETRY_EMIT_EXPERIMENTAL_TELEMETRY` to `fal [Universal Profiling](https://www.elastic.co/observability/universal-profiling) integration provides the ability to correlate traces with profiling data from the Elastic universal profiler. This feature is turned on by default on supported systems, and turned off otherwise. Refer to [universal-profiling-integration](https://github.com/elastic/elastic-otel-java/tree/main/universal-profiling-integration) for details and configuration options. + +## Baggage + +[Baggage](https://opentelemetry.io/docs/concepts/signals/baggage/) provides a key-value store that allows to store +and propagate contextual information to traces, metrics and logs across services. + +This feature requires minimal code changes for creating and accessing the baggage using the [OpenTelemetry Java API](https://github.com/open-telemetry/opentelemetry-java). +Baggage entries can be automatically added to spans and logs through [configuration](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/baggage-processor#usage-with-sdk-auto-configuration): + +- `OTEL_JAVA_EXPERIMENTAL_SPAN_ATTRIBUTES_COPY_FROM_BAGGAGE_INCLUDE` +- `OTEL_JAVA_EXPERIMENTAL_LOG_ATTRIBUTES_COPY_FROM_BAGGAGE_INCLUDE` + +See [baggage-processor](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/baggage-processor) and [example](https://github.com/elastic/elastic-otel-java/tree/main/examples/baggage) for more details. \ No newline at end of file From 2fd4b072b06ed08d82f1f6e20ec1762e9d24039a Mon Sep 17 00:00:00 2001 From: Fabrizio Ferri-Benedetti Date: Fri, 27 Jun 2025 16:37:26 +0200 Subject: [PATCH 2/2] Update features.md --- docs/reference/edot-sdks/java/features.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/reference/edot-sdks/java/features.md b/docs/reference/edot-sdks/java/features.md index 52b18799..69c88bd7 100644 --- a/docs/reference/edot-sdks/java/features.md +++ b/docs/reference/edot-sdks/java/features.md @@ -63,12 +63,11 @@ Refer to [universal-profiling-integration](https://github.com/elastic/elastic-ot ## Baggage [Baggage](https://opentelemetry.io/docs/concepts/signals/baggage/) provides a key-value store that allows to store -and propagate contextual information to traces, metrics and logs across services. +and propagate contextual information to traces, metrics, and logs across services. -This feature requires minimal code changes for creating and accessing the baggage using the [OpenTelemetry Java API](https://github.com/open-telemetry/opentelemetry-java). -Baggage entries can be automatically added to spans and logs through [configuration](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/baggage-processor#usage-with-sdk-auto-configuration): +This feature requires minimal code changes for creating and accessing the baggage using the [OpenTelemetry Java API](https://github.com/open-telemetry/opentelemetry-java). Baggage entries can be automatically added to spans and logs through these [configuration](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/baggage-processor#usage-with-sdk-auto-configuration) settings: - `OTEL_JAVA_EXPERIMENTAL_SPAN_ATTRIBUTES_COPY_FROM_BAGGAGE_INCLUDE` - `OTEL_JAVA_EXPERIMENTAL_LOG_ATTRIBUTES_COPY_FROM_BAGGAGE_INCLUDE` -See [baggage-processor](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/baggage-processor) and [example](https://github.com/elastic/elastic-otel-java/tree/main/examples/baggage) for more details. \ No newline at end of file +Refer to [baggage-processor](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/baggage-processor) and the [baggage example](https://github.com/elastic/elastic-otel-java/tree/main/examples/baggage) for more details.