According to https://github.com/spring-projects/spring-boot/issues/38625#issuecomment-1836120594, management.tracing.enabled is used to disable tracing only in tests currently, If we want to dynamic disable tracing entirely we have to exclude AutoConfiguration by spring.autoconfigure.exclude, That's not handy especially for profile combination.

Comment From: philwebb

We discussed this today and we'd like to make it so that management.tracing.enabled also disables the propagation of traces (probably by adding conditions to brave and otel beans).

Comment From: mhalbritter

I reworded the management.tracing.enabled property description in the documenation. That property will now disable trace exporting (sending traces to backends) and also trace propagation (e.g. sending trace and span ids via http for example). This is done by providing a noop Propagation.Factory for Brave and a noop TextMapPropagator for OpenTelemetry.