Skip to content

Commit

Permalink
fix: Metrics.asGoofyOtlpMetricSequence also needs to append any share…
Browse files Browse the repository at this point in the history
…d dimensions from prescientSharedDimensions
  • Loading branch information
tylerburdsall committed Mar 15, 2024
1 parent f1367b1 commit 33fc210
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class OpentelemetryClient(


private fun Metrics.asGoofyOtlpMetricSequence(): Sequence<Metric> {
val otlpDimensions = metricDimensions.values.map { it.asOtlpKeyValue() }
val otlpDimensions = metricDimensions.values.map { it.asOtlpKeyValue() } + prescientSharedDimensions.sharedDimensions.asOtlpDimensions()
return sequence {
for ((measurementName, value) in this@asGoofyOtlpMetricSequence.metricMeasurements) {
yield(
Expand Down

0 comments on commit 33fc210

Please sign in to comment.