Skip to content
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

[Exporter.Geneva] Update GenevaTraceExporter #871

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Threading;

Expand Down Expand Up @@ -286,7 +287,7 @@ internal int SerializeActivity(Activity activity)
}
else if (string.Equals(entry.Key, "otel.status_code", StringComparison.Ordinal))
{
if (string.Equals(entry.Value.ToString(), "ERROR", StringComparison.Ordinal))
if (string.Equals(Convert.ToString(entry.Value, CultureInfo.InvariantCulture), "ERROR", StringComparison.Ordinal))
{
isStatusSuccess = false;
}
Expand All @@ -295,7 +296,7 @@ internal int SerializeActivity(Activity activity)
}
else if (string.Equals(entry.Key, "otel.status_description", StringComparison.Ordinal))
{
statusDescription = entry.Value.ToString();
statusDescription = Convert.ToString(entry.Value, CultureInfo.InvariantCulture);
continue;
}
else if (this.m_customFields == null || this.m_customFields.ContainsKey(entry.Key))
Expand Down