34 Commits
Author SHA1 Message Date
Stéphane Nicoll 6bdd6ce8b6 Start building against Micrometer Tracing 1.8.0-M2 snapshots
See gh-51777
2026-09-16 15:22:24 +02:00
Oleksandr Shevchenko ce75f008b0 Add baggage tag fields to spans with OpenTelemetry
With OpenTelemetry, fields listed in management.tracing.baggage.tag-fields
only became span tags when the application itself touched the baggage
through the Tracer API. Baggage that arrived with a request was
propagated correctly, but spans were not tagged with it (see
micrometer-metrics/tracing#933).

This commit registers Micrometer Tracing's BaggageTaggingSpanProcessor
whenever baggage is enabled and at least one tag field is configured, so
that spans are tagged with the baggage that is present in their parent
context. A custom BaggageTaggingSpanProcessor bean backs off the
auto-configured one. The tag-fields property is now also mentioned in
the baggage section of the tracing documentation.

See gh-51656

Signed-off-by: Oleksandr Shevchenko <oleksandr.shevchenko@datarobot.com>
2026-09-11 11:18:02 +01:00
Stéphane Nicoll 03d367bb07 Merge branch '4.1.x'
Closes gh-51629
2026-09-08 17:29:34 +02:00
Stéphane Nicoll 18292d400c Merge branch '4.0.x' into 4.1.x
Closes gh-51628
2026-09-08 16:57:00 +02:00
Stéphane Nicoll b1e91c942e Add support for creating a container from a TestImage value
This commit improves TestImage so that an explicit image can trigger
the creation of the container, with optional additional setup. This
removes the need of creating additional container types for images that
have multiple flavors, and to please the static method that can only
create a container based on a single match.

Closes gh-51082
2026-09-08 16:46:48 +02:00
Moritz Halbritter 3f7cebd802 Polish "Allow configuring Micrometer Tracing MDC keys"
Derive logging.pattern.correlation from the configured MDC keys so that
log correlation keeps working when the keys are customized, instead of
silently rendering a blank correlation field.

Reject empty MDC keys and only clear Brave's default correlation fields
when the keys have been customized, so that applications using the
defaults are unaffected if Brave adds a default field.

Replace the tests that asserted on bean wiring with integration tests
covering the MDC contents, plus a smoke test for the log output.

See gh-50595
2026-08-25 13:54:00 +02:00
Phil Clay dc2274e5b6 Allow configuring Micrometer Tracing MDC keys
See gh-50595

Signed-off-by: Phil Clay <philsttr@users.noreply.github.com>
2026-08-25 13:51:28 +02:00
Moritz Halbritter 7a6be52eae Polish
See gh-50461
2026-08-25 08:45:47 +02:00
Phillip Webb e694cf15d9 Polish 2026-08-24 19:10:38 -07:00
Moritz Halbritter 6af1fb5c26 Polish "Align OTLP signal-specific properties with common fallback configuration"
Allow `management.opentelemetry.otlp.compression` to act as a common
default for OTLP compression, mirroring the existing endpoint/headers
fallback. Tracing, logging and metrics exporters now fall back to it
when their own signal-specific compression property is unset.

See gh-50461
2026-08-24 14:51:43 +02:00
somiljain2006 faf93946cd Align OTLP signal-specific properties with common fallback configuration
See gh-50461

Signed-off-by: somiljain2006 <somil16022006@gmail.com>
2026-08-24 14:09:52 +02:00
Stéphane Nicoll ba2e9f078c Upgrade to OpenTelemetry 1.64.0
Closes gh-51231
2026-08-03 19:45:39 +02:00
Stéphane Nicoll aba84a3850 Remove deprecated code
Closes gh-50955
2026-07-15 20:19:19 +02:00
Venkata Naga Sai Srikanth Gollapudi 87c4755a86 Harmonize use of Collections and Maps in configuration properties
See gh-50367

Signed-off-by: Venkata Naga Sai Srikanth Gollapudi <42247688+gollapudisrikanth@users.noreply.github.com>
2026-07-15 11:37:31 +02:00
Andy Wilkinson 6a74bb85a3 Merge branch '4.0.x'
Closes gh-50440
2026-05-14 15:03:44 +01:00
Andy Wilkinson add52b6ccd Merge branch '3.5.x' into 4.0.x
Closes gh-50439
2026-05-14 15:02:24 +01:00
Moritz Halbritter d7f86aa07e Add support for SslBundles to OTLP traces export
Closes gh-49584
2026-03-13 14:07:34 +01:00
Moritz Halbritter bd663c1551 Add property to disable the OpenTelemetry SDK
This uses no-op implementations for the SdkTracerProvider,
SdkLoggerProvider and SdkMeterProvider, but still configures the
propagators.

Additionally, it doesn't create the tracing and logging beans which
would be superfluous for a disabled SDK.

Closes gh-49564
2026-03-11 14:04:46 +01:00
Moritz Halbritter eb2fd91591 Merge branch '4.0.x'
See gh-49557
2026-03-11 10:45:19 +01:00
Moritz Halbritter 2b6559ccd6 Deprecate ZipkinWithOpenTelemetryTracingAutoConfiguration
See gh-49453
2026-03-11 10:30:34 +01:00
Moritz Halbritter a2997f34a4 Add support for OpenTelemetry's SpanLimits and LogLimits
Closes gh-49554
2026-03-10 16:57:33 +01:00
Moritz Halbritter 951d37a25c Add properties to select OpenTelemetry's sampler
Closes gh-49548
2026-03-10 15:20:32 +01:00
Stéphane Nicoll ec107e2f9d Upgrade to OpenTelemetry 1.59.0
Closes gh-49452
2026-03-06 10:27:37 +01:00
Moritz Halbritter 8506cfd3ef Merge branch '4.0.x'
Closes gh-49215
2026-02-13 13:53:19 +01:00
Moritz Halbritter cdf8d2e9c8 Back off on Propagator in Brave and Otel auto-configurations
This also fixes the bug that both auto-configurations couldn't be used
together.

Closes gh-49183
2026-02-13 13:48:38 +01:00
Andy Wilkinson 00748fca8c Upgrade to OpenTelemetry 1.58.0
Closes gh-49141
2026-02-05 17:46:51 +00:00
Stéphane Nicoll 2e2981bfe4 Merge branch '3.5.x' into 4.0.x
Closes gh-48682
2026-01-06 12:35:34 +01:00
Moritz Halbritter 77807f53ee Add dependency to spring-boot-opentelemetry module
Closes gh-48585
2025-12-19 11:53:14 +01:00
Stéphane Nicoll 3d23261f87 Merge branch '3.5.x'
Closes gh-48122
2025-11-13 14:55:19 +01:00
Moritz Halbritter ab405a3321 Add missing configuration metadata deprecations and replacements 2025-11-06 09:11:41 +01:00
Moritz Halbritter ff4889217c Fix configuration metadata 2025-11-05 15:13:01 +01:00
Moritz Halbritter 4866f1a395 Switch property backing OnEnabledTracingExportCondition
It's now management.tracing.export.{name}.enabled

Closes gh-47959
2025-11-05 13:52:25 +01:00
Moritz Halbritter fd7f5c5abc Rename TestImage.OPENTELEMETRY to OTEL_COLLECTOR
Closes gh-47956
2025-11-05 12:19:29 +01:00
Moritz Halbritter e9172d9f51 Split spring-boot-micrometer-tracing into Brave and OpenTelemetry specific module
Closes gh-47953
2025-11-05 12:14:13 +01:00