-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename OneAgentMetadataEnrichment to DynatraceMetadataEnrichment #2692
Rename OneAgentMetadataEnrichment to DynatraceMetadataEnrichment #2692
Conversation
@@ -71,7 +71,7 @@ public DynatraceExporterV2(DynatraceConfig config, Clock clock, HttpSender httpC | |||
.withPrefix(config.metricKeyPrefix()) | |||
.withDefaultDimensions(parseDefaultDimensions(config.defaultDimensions())); | |||
|
|||
if (config.enrichWithOneAgentMetadata()) { | |||
if (config.enrichWithDynatraceMetadata()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you also want to replace this (line#94)?
Potential misconfiguration detected: Token is provided, but the endpoint is set to the local OneAgent endpoint,
@@ -117,7 +117,7 @@ void testV2Defaults() { | |||
assertThat(config.uri()).isSameAs(DynatraceMetricApiConstants.getDefaultOneAgentEndpoint()); | |||
assertThat(config.metricKeyPrefix()).isEmpty(); | |||
assertThat(config.defaultDimensions()).isEmpty(); | |||
assertThat(config.enrichWithOneAgentMetadata()).isTrue(); | |||
assertThat(config.enrichWithDynatraceMetadata()).isTrue(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you also want to rename testOneAgentEndpointWithDifferentPort
?
Thanks for taking a look! There are two different features here which happen to have similar names:
|
@pirgeo Makes sense, thank you for the fix! :) |
This renames the config property from OneAgent metadata to Dynatrace metadata since the metadata retrieved is not restricted to only the OneAgent but might come from other components in the future.
I will update both spring-projects/spring-boot#26258 and micrometer-metrics/micrometer-docs#160 as soon as this is merged.