Open andrzej-fisglobal opened 3 days ago
We have management.*.metrics.export.enabled
, management.*.tracing.export.enabled
and I think for consistency we should also add something like management.otlp.logging.export.enabled
.
You should be able to disable the otlpHttpLogRecordExporter
by setting management.otlp.logging.transport=none
But this property does not exist in additional-spring-configuration-metadata.json
🥲
Apologies @mhalbritter and @andrzej-fisglobal for the confusion. I overlooked the fact that this property maps to enum values. My apologies for the oversight.
Don't worry, no harm done :)
In Spring Boot 3.4.0-M3,
OtlpLoggingConfigurations.otlpHttpLogRecordExporter
is a created ifOtlpLoggingConnectionDetails
is created, the latter is a conditionally created if the propertymanagement.otlp.logging.endpoint
is defined. It looks like the only option to disable this to not define the endpoint key.However, it makes it a bit difficult if we have already defined the endpoint and want to disable it.
Is it possible to define an
enabled
toggle in a similar manner that we have for e.g.management.otlp.metrics.export
? In general, it would be nice to be able to disable signal exporters in a consistent way -- thus something similar toOnEnabledTracingCondition
andOnMetricsExportEnabledCondition
?