-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Open
Labels
status: on-holdWe can't start working on this issue yetWe can't start working on this issue yettype: enhancementA general enhancementA general enhancement
Milestone
Description
Lines 72 to 76 in b6b570e
OtlpConfig otlpConfig(OpenTelemetryProperties openTelemetryProperties, | |
OtlpMetricsConnectionDetails connectionDetails, Environment environment) { | |
return new OtlpMetricsPropertiesConfigAdapter(this.properties, openTelemetryProperties, connectionDetails, | |
environment); | |
} |
Currently, there are several ways to provide resource attributes to OtlpMeterRegistry.
- Set values in the environment
- Adding it to properties
management.opentelemetry.resourceAttributes
We have a use case to compute some of these values programatically during the start-up and set them before wiring up the OtlpMeterRegistry. Currently, there seems to be no easy way to achieve this by merging the programatically resolved values with the default values other than completely copying OtlpMetricsPropertiesConfigAdapter
and overriding the resourceAttributes()
.
If there is a way to inject the Resource bean, or if OtlpMetricsPropertiesConfigAdapter
can be made extended (by making this public), this would help providing additional resource attributes to the registry.
Metadata
Metadata
Assignees
Labels
status: on-holdWe can't start working on this issue yetWe can't start working on this issue yettype: enhancementA general enhancementA general enhancement