From 308ca8f2418f733fd3939cf9577f0a2a9b6d3ad1 Mon Sep 17 00:00:00 2001 From: Matthew Hensley Date: Mon, 18 Sep 2023 15:45:47 -0400 Subject: [PATCH] status enum to int --- .../Implementation/HttpWebRequestActivitySource.netfx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs index fa200fc5c10..6fb8c1fd930 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs @@ -426,7 +426,7 @@ private static void ProcessResult(IAsyncResult asyncResult, AsyncCallback asyncC if (httpStatusCode.HasValue) { - tags.Add(SemanticConventions.AttributeHttpStatusCode, httpStatusCode.Value); + tags.Add(SemanticConventions.AttributeHttpStatusCode, (int)httpStatusCode.Value); } HttpClientDuration.Record(durationMs, tags);