We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a3eddb commit cd4d593Copy full SHA for cd4d593
Sources/Exporters/OpenTelemetryProtocolCommon/metric/MetricsAdapter.swift
@@ -228,6 +228,14 @@ public enum MetricsAdapter {
228
pointData.exemplars.forEach {
229
var protoExemplar = Opentelemetry_Proto_Metrics_V1_Exemplar()
230
protoExemplar.timeUnixNano = $0.epochNanos
231
+
232
+ if let doubleExemplar = $0 as? DoubleExemplarData {
233
+ protoExemplar.value = .asDouble(doubleExemplar.value)
234
+ }
235
236
+ if let longExemplar = $0 as? LongExemplarData {
237
+ protoExemplar.value = .asInt(Int64(longExemplar.value))
238
239
240
$0.filteredAttributes.forEach {
241
protoExemplar.filteredAttributes.append(CommonAdapter.toProtoAttribute(key: $0.key, attributeValue: $0.value))
0 commit comments