From 131b1496cd492084dfaefefe6f73a45b43f47819 Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai Date: Tue, 28 Mar 2023 21:08:47 -0700 Subject: [PATCH] [Exporter.Geneva][TldTraceExporter] Fix serialization bug (#1115) --- src/OpenTelemetry.Exporter.Geneva/CHANGELOG.md | 3 +++ .../TLDExporter/TldTraceExporter.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/OpenTelemetry.Exporter.Geneva/CHANGELOG.md b/src/OpenTelemetry.Exporter.Geneva/CHANGELOG.md index e52f423ed0..b0393e7ea0 100644 --- a/src/OpenTelemetry.Exporter.Geneva/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.Geneva/CHANGELOG.md @@ -20,6 +20,9 @@ namespace name. ([#1111](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/1111)) +* Fix a bug in TldTraceExporter for incorrect serialization of special tags. + ([#1115](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/1115)) + ## 1.5.0-alpha.1 Released 2023-Mar-13 diff --git a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldTraceExporter.cs b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldTraceExporter.cs index 8a23115b4a..4c482cf890 100644 --- a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldTraceExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldTraceExporter.cs @@ -260,7 +260,7 @@ internal void SerializeActivity(Activity activity) // TODO: check name collision if (CS40_PART_B_MAPPING.TryGetValue(entry.Key, out string replacementKey)) { - Serialize(eb, entry.Key, replacementKey); + Serialize(eb, replacementKey, entry.Value); partBFieldsCount++; } else if (string.Equals(entry.Key, "otel.status_code", StringComparison.Ordinal))