Skip to content

Commit

Permalink
fix: outdated business metric ids
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Jul 3, 2024
1 parent a4c7e8f commit 1095ebf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class BusinessMetricsIntegration : KotlinIntegration {
private val endpointBusinessMetricsSectionWriter = SectionWriter { writer, _ ->
writer.write("")
writer.write(
"if (endpoint.attributes.contains(#T)) request.context.#T(#T.SERVICE_ENDPOINT_OVERRIDE)",
"if (endpoint.attributes.contains(#T)) request.context.#T(#T.ENDPOINT_OVERRIDE)",
RuntimeTypes.Core.BusinessMetrics.ServiceEndpointOverride,
RuntimeTypes.Core.BusinessMetrics.emitBusinessMetric,
RuntimeTypes.Core.BusinessMetrics.SmithyBusinessMetric,
)
writer.write(
"if (endpoint.attributes.contains(#T)) request.context.#T(#T.ACCOUNT_ID_BASED_ENDPOINT)",
"if (endpoint.attributes.contains(#T)) request.context.#T(#T.ACCOUNT_ID_ENDPOINT)",
RuntimeTypes.Core.BusinessMetrics.AccountIdBasedEndpointAccountId,
RuntimeTypes.Core.BusinessMetrics.emitBusinessMetric,
RuntimeTypes.Core.BusinessMetrics.SmithyBusinessMetric,
Expand Down

0 comments on commit 1095ebf

Please sign in to comment.