From 23b666ef00e08b2ed5fc2f6d24bbdc1f83ad23d1 Mon Sep 17 00:00:00 2001 From: Timothy Mothra Date: Fri, 7 Mar 2025 09:03:48 -0800 Subject: [PATCH] [AzureMonitor] upgrade OTel to v1.11 (#48574) * upgrade OTel to v1.10 and fix api conflicts * bugfix: should not create exception telemetry when message is empty * test bug: fixing bug with requestData.Success * adding support for net9.0 to csproj and global.json * upgrade OTel to v1.10 and fix api conflicts * bugfix: should not create exception telemetry when message is empty * test bug: fixing bug with requestData.Success * adding support for net9.0 to csproj and global.json * cleanup * bump version 1.11.* * fix for Http * changelogs * changelog * fix unit tests * comment * pr feedback, revert change --- eng/Packages.Data.props | 22 +- .../CHANGELOG.md | 7 + .../SqlClientDiagnosticListener.cs | 2 +- .../DistroWebAppLiveTests/VerifyDistro.json | 104 ++++---- ...oTwoResources_UsingDistroWithExporter.json | 222 ++++++++--------- ...fySendingToTwoResources_UsingExporter.json | 228 +++++++++--------- .../HttpClientInstrumentationTests.cs | 19 +- .../DocumentTests/ActivityEventTests.cs | 2 +- .../Program.cs | 4 +- .../CHANGELOG.md | 5 + .../perf/Scenarios/ActivityKindClient.cs | 2 +- .../perf/Scenarios/ActivityKindServer.cs | 2 +- .../src/Internals/TraceHelper.cs | 2 +- .../Traces/TraceDemo.cs | 2 +- .../E2ETelemetryItemValidation/TracesTests.cs | 2 +- .../RemoteDependencyDataNewTests.cs | 8 +- .../RemoteDependencyDataTests.cs | 8 +- .../RequestDataNewTests.cs | 6 +- .../RequestDataTests.cs | 2 +- .../TraceHelperTests.cs | 4 +- 20 files changed, 337 insertions(+), 316 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index b7cae961ad32..766d4a29a764 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -180,11 +180,11 @@ - - - - - + + + + + @@ -373,12 +373,12 @@ - - - - - - + + + + + + diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/CHANGELOG.md b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/CHANGELOG.md index 345edc891f42..80257bfb7c19 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/CHANGELOG.md +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/CHANGELOG.md @@ -10,6 +10,13 @@ ### Other Changes +* Update OpenTelemetry dependencies + ([#48574](https://github.com/Azure/azure-sdk-for-net/pull/48574)) + - OpenTelemetry 1.11.2 + - OpenTelemetry.Extensions.Hosting 1.11.2 + - OpenTelemetry.Instrumentation.AspNetCore 1.11.1 + - OpenTelemetry.Instrumentation.Http 1.11.1 + ## 1.3.0-beta.2 (2024-10-11) ### Bugs Fixed diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Vendoring/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Vendoring/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs index bf3b77c5999a..c184b6e79eae 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Vendoring/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Vendoring/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs @@ -187,7 +187,7 @@ public override void OnEventWritten(string name, object? payload) if (this.options.RecordException) { - activity.RecordException(exception); + activity.AddException(exception); // TODO: I made this change only to get the build to pass. This has already been fixed in Contrib repo and needs to be synced here } } else diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifyDistro.json b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifyDistro.json index 8dac75041d70..9bc73e005c49 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifyDistro.json +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifyDistro.json @@ -8,8 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "196", "Content-Type": "application/json", - "traceparent": "00-9ce33790427bc687be1556755f1f219b-7994f530e107984a-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-629a1cc15769506b0ba2df9069c4d75e-d0c5efe0f1ade324-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -22,12 +22,12 @@ "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", "Connection": "keep-alive", - "Content-Length": "2545", + "Content-Length": "2538", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:15 GMT", + "Date": "Fri, 07 Mar 2025 01:22:49 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-t944w", + "Via": "1.1 draft-oms-6cfc5ccf95-mfskz", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -203,21 +203,21 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6771397Z", - "a8dbe2f47de9520d", + "2025-03-07T01:19:38.9522404Z", + "6a420c81763b04b3", "localhost:9998", "HTTP", "GET /", "http://localhost:9998/", true, "200", - 3.3064, + 3.5791, "<250ms", "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", + "8d5e93834e23e29beb875e59f6b6a234", "", "", "", @@ -236,7 +236,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -257,8 +257,8 @@ "Authorization": "Sanitized", "Content-Length": "191", "Content-Type": "application/json", - "traceparent": "00-e95fd384c26c13af2e20a174b678c2a4-9921dbe7ac389eeb-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-7ecc93d99b1bb36f94d0d0d661f78a0c-1c72f4ddbd25a8be-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -271,12 +271,12 @@ "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", "Connection": "keep-alive", - "Content-Length": "2514", + "Content-Length": "2507", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:16 GMT", + "Date": "Fri, 07 Mar 2025 01:22:49 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-mf7dc", + "Via": "1.1 draft-oms-6cfc5ccf95-drk6w", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -452,21 +452,21 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6790279Z", - "52206518d825c398", + "2025-03-07T01:19:38.9545441Z", + "698ab381008e2667", "", "GET /", "http://localhost:9998/", true, "200", - 1.3723, + 1.1879, "<250ms", "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "GET /", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", null, - "a8dbe2f47de9520d", + "6a420c81763b04b3", "", "", "", @@ -485,7 +485,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -506,8 +506,8 @@ "Authorization": "Sanitized", "Content-Length": "270", "Content-Type": "application/json", - "traceparent": "00-514571afd1fe49eed4c62f84ea847fbe-b7fe25684bc6b914-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-2064fb96a87363d69dc5737dd8547ac9-04898918445ba884-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -520,12 +520,12 @@ "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", "Connection": "keep-alive", - "Content-Length": "2131", + "Content-Length": "2124", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:17 GMT", + "Date": "Fri, 07 Mar 2025 01:22:50 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-9876k", + "Via": "1.1 draft-oms-6cfc5ccf95-82wd7", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -669,12 +669,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171598Z", + "2025-03-07T01:19:39.0608449Z", "http.client.request.duration", 1, - 0.0035298, - 0.0035298, - 0.0035298, + 0.0033847, + 0.0033847, + 0.0033847, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"network.protocol.version\":\"1.1\",\"server.address\":\"localhost\",\"server.port\":\"9998\",\"url.scheme\":\"http\"}", "", "", @@ -697,7 +697,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -715,8 +715,8 @@ "Authorization": "Sanitized", "Content-Length": "197", "Content-Type": "application/json", - "traceparent": "00-1a2aa9fde2c77811c8a49808e99dcd4e-7ee606832300af4e-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-897cf0acd229d804ab7a87f9607177f5-6ba3460be4a3de75-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -729,12 +729,12 @@ "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", "Connection": "keep-alive", - "Content-Length": "2091", + "Content-Length": "2087", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:20 GMT", + "Date": "Fri, 07 Mar 2025 01:22:52 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-8f8zh", + "Via": "1.1 draft-oms-6cfc5ccf95-bh587", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -878,12 +878,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171643Z", + "2025-03-07T01:19:39.0611529Z", "http.server.request.duration", 1, - 0.001328, - 0.001328, - 0.001328, + 0.0011645, + 0.0011645, + 0.0011645, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"http.route\":\"/\",\"network.protocol.version\":\"1.1\",\"url.scheme\":\"http\"}", "", "", @@ -906,7 +906,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -924,8 +924,8 @@ "Authorization": "Sanitized", "Content-Length": "190", "Content-Type": "application/json", - "traceparent": "00-7539b0d83b6fc701e8014d28ca676f97-c9ceb717d75dbb72-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-b58941039ec725b0fc3f4dc75cbad0b0-867bc2e853239419-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -938,12 +938,12 @@ "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", "Connection": "keep-alive", - "Content-Length": "2084", + "Content-Length": "2077", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:22 GMT", + "Date": "Fri, 07 Mar 2025 01:22:53 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-pr7n7", + "Via": "1.1 draft-oms-6cfc5ccf95-gqwmm", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -1091,14 +1091,14 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6802073Z", + "2025-03-07T01:19:38.9555907Z", "Message via ILogger", 1, "{\"CategoryName\":\"CustomCategoryName\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "52206518d825c398", + "8d5e93834e23e29beb875e59f6b6a234", + "698ab381008e2667", "", "", "", @@ -1117,7 +1117,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -1134,7 +1134,7 @@ "Variables": { "CONNECTION_STRING": "InstrumentationKey=53e1f7f0-9975-4995-830a-414a26e9450a;IngestionEndpoint=https://westus-0.in.applicationinsights.azure.com/;LiveEndpoint=https://westus.livediagnostics.monitor.azure.com/;ApplicationId=a98f261a-124b-425a-931e-8dc00af2e65c", "LOGS_ENDPOINT": "https://api.loganalytics.io", - "RandomSeed": "1221586940", + "RandomSeed": "269931651", "WORKSPACE_ID": "33d8a320-00c3-4ec8-a6a4-8692b07a6841" } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifySendingToTwoResources_UsingDistroWithExporter.json b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifySendingToTwoResources_UsingDistroWithExporter.json index f6028288ce4d..abd0de8528d6 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifySendingToTwoResources_UsingDistroWithExporter.json +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifySendingToTwoResources_UsingDistroWithExporter.json @@ -8,8 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "196", "Content-Type": "application/json", - "traceparent": "00-3ae412bd8ebb6506bff25c9d648b2613-9d75fdf0a8042c33-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-2e72794c025805b4ca8b2d9362902047-97dde185b04a4a82-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -21,14 +21,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "8", + "Age": "5", "Connection": "keep-alive", - "Content-Length": "2545", + "Content-Length": "2538", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:24 GMT", + "Date": "Fri, 07 Mar 2025 01:22:55 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-jm622", + "Via": "1.1 draft-oms-6cfc5ccf95-l7wd4", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -204,21 +204,21 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6771397Z", - "a8dbe2f47de9520d", + "2025-03-07T01:19:38.9522404Z", + "6a420c81763b04b3", "localhost:9998", "HTTP", "GET /", "http://localhost:9998/", true, "200", - 3.3064, + 3.5791, "<250ms", "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", + "8d5e93834e23e29beb875e59f6b6a234", "", "", "", @@ -237,7 +237,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -258,8 +258,8 @@ "Authorization": "Sanitized", "Content-Length": "191", "Content-Type": "application/json", - "traceparent": "00-a5c64eb9fb29a791706fddbf386ba8c5-1ee44845634cfecb-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-a42115b5a33a49bd9b3501424fd4cbb2-e61641504856ab49-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -271,14 +271,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "7", + "Age": "5", "Connection": "keep-alive", - "Content-Length": "2514", + "Content-Length": "2507", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:24 GMT", + "Date": "Fri, 07 Mar 2025 01:22:55 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-qbmtf", + "Via": "1.1 draft-oms-6cfc5ccf95-dlx87", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -454,21 +454,21 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6790279Z", - "52206518d825c398", + "2025-03-07T01:19:38.9545441Z", + "698ab381008e2667", "", "GET /", "http://localhost:9998/", true, "200", - 1.3723, + 1.1879, "<250ms", "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "GET /", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", null, - "a8dbe2f47de9520d", + "6a420c81763b04b3", "", "", "", @@ -487,7 +487,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -508,8 +508,8 @@ "Authorization": "Sanitized", "Content-Length": "270", "Content-Type": "application/json", - "traceparent": "00-f6e7f95abc19f1976c26f8b0faa4a780-0d9f531bcc0f95ea-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-d19a9d9d3f9aeb4c8d19721cf56ff244-7700fa9701fbd436-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -521,14 +521,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "7", + "Age": "4", "Connection": "keep-alive", - "Content-Length": "2131", + "Content-Length": "2124", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:24 GMT", + "Date": "Fri, 07 Mar 2025 01:22:55 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-49vks", + "Via": "1.1 draft-oms-6cfc5ccf95-68b8f", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -672,12 +672,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171598Z", + "2025-03-07T01:19:39.0608449Z", "http.client.request.duration", 1, - 0.0035298, - 0.0035298, - 0.0035298, + 0.0033847, + 0.0033847, + 0.0033847, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"network.protocol.version\":\"1.1\",\"server.address\":\"localhost\",\"server.port\":\"9998\",\"url.scheme\":\"http\"}", "", "", @@ -700,7 +700,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -718,8 +718,8 @@ "Authorization": "Sanitized", "Content-Length": "197", "Content-Type": "application/json", - "traceparent": "00-80cc168fcbe9b3d45e3c2060f2bce480-4822cb5291c52d10-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-ea0ba1ee06fa3add6b1d374b9d6508a7-ad6a0a8e026f9f37-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -731,14 +731,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "3", + "Age": "2", "Connection": "keep-alive", - "Content-Length": "2091", + "Content-Length": "2087", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:24 GMT", + "Date": "Fri, 07 Mar 2025 01:22:55 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-hwbkx", + "Via": "1.1 draft-oms-6cfc5ccf95-25wwf", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -882,12 +882,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171643Z", + "2025-03-07T01:19:39.0611529Z", "http.server.request.duration", 1, - 0.001328, - 0.001328, - 0.001328, + 0.0011645, + 0.0011645, + 0.0011645, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"http.route\":\"/\",\"network.protocol.version\":\"1.1\",\"url.scheme\":\"http\"}", "", "", @@ -910,7 +910,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -928,8 +928,8 @@ "Authorization": "Sanitized", "Content-Length": "190", "Content-Type": "application/json", - "traceparent": "00-69987d034e04ab4f523f80a3436b76ec-d2ada63df61a97fe-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-786afb536f763ec772a61d5d55eacd36-ac6524acf19eac5e-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -943,12 +943,12 @@ "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", "Age": "2", "Connection": "keep-alive", - "Content-Length": "2084", + "Content-Length": "2077", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:24 GMT", + "Date": "Fri, 07 Mar 2025 01:22:55 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-v7lz4", + "Via": "1.1 draft-oms-6cfc5ccf95-6sz7r", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -1096,14 +1096,14 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6802073Z", + "2025-03-07T01:19:38.9555907Z", "Message via ILogger", 1, "{\"CategoryName\":\"CustomCategoryName\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "52206518d825c398", + "8d5e93834e23e29beb875e59f6b6a234", + "698ab381008e2667", "", "", "", @@ -1122,7 +1122,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -1143,8 +1143,8 @@ "Authorization": "Sanitized", "Content-Length": "196", "Content-Type": "application/json", - "traceparent": "00-b7f47f8e3bb356f1b0edf92ef9893072-75fae55d8ab53562-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-7386fd3a21ef6ebf1641655f9917a395-3ea6a5302c9a33ff-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -1157,12 +1157,12 @@ "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", "Connection": "keep-alive", - "Content-Length": "2545", + "Content-Length": "2538", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:25 GMT", + "Date": "Fri, 07 Mar 2025 01:22:55 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-whk54", + "Via": "1.1 draft-oms-6cfc5ccf95-dj7lr", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -1338,21 +1338,21 @@ "rows": [ [ "e1407f81-4e84-4943-843a-0494dd4700e5", - "2024-09-11T19:08:05.6771397Z", - "a8dbe2f47de9520d", + "2025-03-07T01:19:38.9522404Z", + "6a420c81763b04b3", "localhost:9998", "HTTP", "GET /", "http://localhost:9998/", true, "200", - 3.3064, + 3.5791, "<250ms", - "{\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\",\"CustomProperty1\":\"Value1\",\"network.protocol.version\":\"1.1\"}", + "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", + "8d5e93834e23e29beb875e59f6b6a234", "", "", "", @@ -1371,7 +1371,7 @@ "Other", "d64e2b0b-7f11-41ec-b85e-5bd69ee688e2", "3f8e759a-2c28-4cc7-b260-9b343fb2a3ff", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -1392,8 +1392,8 @@ "Authorization": "Sanitized", "Content-Length": "191", "Content-Type": "application/json", - "traceparent": "00-ddcc58cdcfe24e8b3344d7d4ea70c024-7c2d279573d8238e-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-3425a6e4019bc345cd9089bac73d8fb4-a7ead4b13b5fd3f9-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -1405,14 +1405,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "9", + "Age": "5", "Connection": "keep-alive", - "Content-Length": "2514", + "Content-Length": "2507", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:25 GMT", + "Date": "Fri, 07 Mar 2025 01:22:55 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-kmpvj", + "Via": "1.1 draft-oms-6cfc5ccf95-d86g7", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -1588,21 +1588,21 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6790279Z", - "52206518d825c398", + "2025-03-07T01:19:38.9545441Z", + "698ab381008e2667", "", "GET /", "http://localhost:9998/", true, "200", - 1.3723, + 1.1879, "<250ms", "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "GET /", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", null, - "a8dbe2f47de9520d", + "6a420c81763b04b3", "", "", "", @@ -1621,7 +1621,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -1642,8 +1642,8 @@ "Authorization": "Sanitized", "Content-Length": "270", "Content-Type": "application/json", - "traceparent": "00-f7541db6b3665056412da39aa2cd1f9f-24e3201d75ba3794-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-eaf36ecaf1f8a85420d1e284734bd727-fcf08a5cdb001207-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -1655,14 +1655,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "8", + "Age": "5", "Connection": "keep-alive", - "Content-Length": "2131", + "Content-Length": "2124", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:25 GMT", + "Date": "Fri, 07 Mar 2025 01:22:56 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-tl6t8", + "Via": "1.1 draft-oms-6cfc5ccf95-vm5fx", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -1806,12 +1806,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171598Z", + "2025-03-07T01:19:39.0608449Z", "http.client.request.duration", 1, - 0.0035298, - 0.0035298, - 0.0035298, + 0.0033847, + 0.0033847, + 0.0033847, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"network.protocol.version\":\"1.1\",\"server.address\":\"localhost\",\"server.port\":\"9998\",\"url.scheme\":\"http\"}", "", "", @@ -1834,7 +1834,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -1852,8 +1852,8 @@ "Authorization": "Sanitized", "Content-Length": "197", "Content-Type": "application/json", - "traceparent": "00-08a698dae895a3116afd3c5deff388c2-28212195495a291e-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-1601e39faffad2dda999542efce9b8e8-d5854b2bdaa8cbe4-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -1865,14 +1865,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "5", + "Age": "3", "Connection": "keep-alive", - "Content-Length": "2091", + "Content-Length": "2087", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:26 GMT", + "Date": "Fri, 07 Mar 2025 01:22:56 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-qnp28", + "Via": "1.1 draft-oms-6cfc5ccf95-74866", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -2016,12 +2016,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171643Z", + "2025-03-07T01:19:39.0611529Z", "http.server.request.duration", 1, - 0.001328, - 0.001328, - 0.001328, + 0.0011645, + 0.0011645, + 0.0011645, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"http.route\":\"/\",\"network.protocol.version\":\"1.1\",\"url.scheme\":\"http\"}", "", "", @@ -2044,7 +2044,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -2062,8 +2062,8 @@ "Authorization": "Sanitized", "Content-Length": "190", "Content-Type": "application/json", - "traceparent": "00-7749a334a7e850d2155e124088e74928-217f0dc0ad1a17bd-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-73820aa0b316edbf8f79780426bf994b-716c1bb7809c3f3a-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -2077,12 +2077,12 @@ "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", "Age": "3", "Connection": "keep-alive", - "Content-Length": "2084", + "Content-Length": "2077", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:26 GMT", + "Date": "Fri, 07 Mar 2025 01:22:56 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-hmmfq", + "Via": "1.1 draft-oms-6cfc5ccf95-zvk82", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -2230,14 +2230,14 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6802073Z", + "2025-03-07T01:19:38.9555907Z", "Message via ILogger", 1, "{\"CategoryName\":\"CustomCategoryName\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "52206518d825c398", + "8d5e93834e23e29beb875e59f6b6a234", + "698ab381008e2667", "", "", "", @@ -2256,7 +2256,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -2273,7 +2273,7 @@ "Variables": { "CONNECTION_STRING": "InstrumentationKey=53e1f7f0-9975-4995-830a-414a26e9450a;IngestionEndpoint=https://westus-0.in.applicationinsights.azure.com/;LiveEndpoint=https://westus.livediagnostics.monitor.azure.com/;ApplicationId=a98f261a-124b-425a-931e-8dc00af2e65c", "LOGS_ENDPOINT": "https://api.loganalytics.io", - "RandomSeed": "2118970434", + "RandomSeed": "501135779", "SECONDARY_CONNECTION_STRING": "InstrumentationKey=3f8e759a-2c28-4cc7-b260-9b343fb2a3ff;IngestionEndpoint=https://westus-0.in.applicationinsights.azure.com/;LiveEndpoint=https://westus.livediagnostics.monitor.azure.com/;ApplicationId=d64e2b0b-7f11-41ec-b85e-5bd69ee688e2", "SECONDARY_WORKSPACE_ID": "e1407f81-4e84-4943-843a-0494dd4700e5", "WORKSPACE_ID": "33d8a320-00c3-4ec8-a6a4-8692b07a6841" diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifySendingToTwoResources_UsingExporter.json b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifySendingToTwoResources_UsingExporter.json index 998a6b394424..11ca692371ac 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifySendingToTwoResources_UsingExporter.json +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Integration.Tests/SessionRecords/DistroWebAppLiveTests/VerifySendingToTwoResources_UsingExporter.json @@ -8,8 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "196", "Content-Type": "application/json", - "traceparent": "00-49e90db7b6f20921acfcad908131dd07-9f340111adfcf981-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-d503905fa00a35b8c4474fac67967c2c-75fc7e021229d955-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -21,14 +21,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "13", + "Age": "8", "Connection": "keep-alive", - "Content-Length": "2545", + "Content-Length": "2538", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:28 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-c5rds", + "Via": "1.1 draft-oms-6cfc5ccf95-zll4s", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -204,21 +204,21 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6771397Z", - "a8dbe2f47de9520d", + "2025-03-07T01:19:38.9522404Z", + "6a420c81763b04b3", "localhost:9998", "HTTP", "GET /", "http://localhost:9998/", true, "200", - 3.3064, + 3.5791, "<250ms", "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", + "8d5e93834e23e29beb875e59f6b6a234", "", "", "", @@ -237,7 +237,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -258,8 +258,8 @@ "Authorization": "Sanitized", "Content-Length": "191", "Content-Type": "application/json", - "traceparent": "00-69a3d352fa6c6f76be2b2a85e21b627b-8589378c6ef81010-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-cd8fefd97c147060b4b7f2fbf7b69452-266ea8acea28878f-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -271,14 +271,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "11", + "Age": "8", "Connection": "keep-alive", - "Content-Length": "2514", + "Content-Length": "2507", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:28 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-mxkjz", + "Via": "1.1 draft-oms-6cfc5ccf95-2zsmh", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -454,21 +454,21 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6790279Z", - "52206518d825c398", + "2025-03-07T01:19:38.9545441Z", + "698ab381008e2667", "", "GET /", "http://localhost:9998/", true, "200", - 1.3723, + 1.1879, "<250ms", "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "GET /", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", null, - "a8dbe2f47de9520d", + "6a420c81763b04b3", "", "", "", @@ -487,7 +487,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -508,8 +508,8 @@ "Authorization": "Sanitized", "Content-Length": "270", "Content-Type": "application/json", - "traceparent": "00-4f36d5a22019124861edef50bd47fa74-cd1118b297fc4580-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-51a546a72deb9ccc21d8eb32db6a03ce-e9a241fea3f8ab43-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -521,14 +521,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "11", + "Age": "8", "Connection": "keep-alive", - "Content-Length": "2131", + "Content-Length": "2124", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:28 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-zw9pf", + "Via": "1.1 draft-oms-6cfc5ccf95-rk2bj", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -672,12 +672,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171598Z", + "2025-03-07T01:19:39.0608449Z", "http.client.request.duration", 1, - 0.0035298, - 0.0035298, - 0.0035298, + 0.0033847, + 0.0033847, + 0.0033847, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"network.protocol.version\":\"1.1\",\"server.address\":\"localhost\",\"server.port\":\"9998\",\"url.scheme\":\"http\"}", "", "", @@ -700,7 +700,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -718,8 +718,8 @@ "Authorization": "Sanitized", "Content-Length": "197", "Content-Type": "application/json", - "traceparent": "00-ba2b58cca8feefc3eb88a89e7aa6cada-b49a557e4a10f642-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-eb501e44c3473182923aedecd8bbf41c-29e192eacaf9d85a-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -731,14 +731,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "8", + "Age": "5", "Connection": "keep-alive", - "Content-Length": "2091", + "Content-Length": "2087", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:28 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-jjhz5", + "Via": "1.1 draft-oms-6cfc5ccf95-8hbrr", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -882,12 +882,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171643Z", + "2025-03-07T01:19:39.0611529Z", "http.server.request.duration", 1, - 0.001328, - 0.001328, - 0.001328, + 0.0011645, + 0.0011645, + 0.0011645, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"http.route\":\"/\",\"network.protocol.version\":\"1.1\",\"url.scheme\":\"http\"}", "", "", @@ -910,7 +910,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -928,8 +928,8 @@ "Authorization": "Sanitized", "Content-Length": "190", "Content-Type": "application/json", - "traceparent": "00-0afb66b5bb014533293598e2bb9b65f6-80348c5114fdc6bd-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-276151622463f33bd08b2a848e818dc8-9ad1695bc13b6404-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -941,14 +941,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "7", + "Age": "5", "Connection": "keep-alive", - "Content-Length": "2084", + "Content-Length": "2077", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:29 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-n8sk5", + "Via": "1.1 draft-oms-6cfc5ccf95-v7vvw", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -1096,14 +1096,14 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6802073Z", + "2025-03-07T01:19:38.9555907Z", "Message via ILogger", 1, "{\"CategoryName\":\"CustomCategoryName\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "52206518d825c398", + "8d5e93834e23e29beb875e59f6b6a234", + "698ab381008e2667", "", "", "", @@ -1122,7 +1122,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -1143,8 +1143,8 @@ "Authorization": "Sanitized", "Content-Length": "196", "Content-Type": "application/json", - "traceparent": "00-49650c730e56e214c023820cb9d414e8-b7e33980ef566fbb-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-a55e1a17a6aef2194297da93860ac5ba-73ce5c0f4426a57d-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -1156,14 +1156,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "4", + "Age": "2", "Connection": "keep-alive", - "Content-Length": "2545", + "Content-Length": "2538", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:29 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-x5zbt", + "Via": "1.1 draft-oms-6cfc5ccf95-d5z9q", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -1339,21 +1339,21 @@ "rows": [ [ "e1407f81-4e84-4943-843a-0494dd4700e5", - "2024-09-11T19:08:05.6771397Z", - "a8dbe2f47de9520d", + "2025-03-07T01:19:38.9522404Z", + "6a420c81763b04b3", "localhost:9998", "HTTP", "GET /", "http://localhost:9998/", true, "200", - 3.3064, + 3.5791, "<250ms", - "{\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\",\"CustomProperty1\":\"Value1\",\"network.protocol.version\":\"1.1\"}", + "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", + "8d5e93834e23e29beb875e59f6b6a234", "", "", "", @@ -1372,7 +1372,7 @@ "Other", "d64e2b0b-7f11-41ec-b85e-5bd69ee688e2", "3f8e759a-2c28-4cc7-b260-9b343fb2a3ff", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -1393,8 +1393,8 @@ "Authorization": "Sanitized", "Content-Length": "191", "Content-Type": "application/json", - "traceparent": "00-543a4c2008d6f002366ba3499796788a-e9861fc916c88b4b-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-9201a5463ac24e0963b617bbf4edd13a-dbcae3f5187f290f-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -1406,14 +1406,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "12", + "Age": "8", "Connection": "keep-alive", - "Content-Length": "2514", + "Content-Length": "2507", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:29 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-p2nbm", + "Via": "1.1 draft-oms-6cfc5ccf95-9787m", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -1589,21 +1589,21 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6790279Z", - "52206518d825c398", + "2025-03-07T01:19:38.9545441Z", + "698ab381008e2667", "", "GET /", "http://localhost:9998/", true, "200", - 1.3723, + 1.1879, "<250ms", "{\"network.protocol.version\":\"1.1\",\"CustomProperty1\":\"Value1\",\"_MS.ProcessedByMetricExtractors\":\"(Name: X,Ver:'1.1')\"}", null, "GET /", - "afdfc0a94e8f58a9101da682a3462054", + "8d5e93834e23e29beb875e59f6b6a234", null, - "a8dbe2f47de9520d", + "6a420c81763b04b3", "", "", "", @@ -1622,7 +1622,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -1643,8 +1643,8 @@ "Authorization": "Sanitized", "Content-Length": "270", "Content-Type": "application/json", - "traceparent": "00-06a15fc15e62ba3d98d09b243b9b218c-b983dcd4895e899b-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-45e822e5ca9a06cf104d2232ce212480-8efcd06a75bb2e02-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -1656,14 +1656,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "13", + "Age": "8", "Connection": "keep-alive", - "Content-Length": "2131", + "Content-Length": "2124", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:30 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-wt758", + "Via": "1.1 draft-oms-6cfc5ccf95-pj2lh", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -1807,12 +1807,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171598Z", + "2025-03-07T01:19:39.0608449Z", "http.client.request.duration", 1, - 0.0035298, - 0.0035298, - 0.0035298, + 0.0033847, + 0.0033847, + 0.0033847, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"network.protocol.version\":\"1.1\",\"server.address\":\"localhost\",\"server.port\":\"9998\",\"url.scheme\":\"http\"}", "", "", @@ -1835,7 +1835,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -1853,8 +1853,8 @@ "Authorization": "Sanitized", "Content-Length": "197", "Content-Type": "application/json", - "traceparent": "00-c95b401466bb65b8d45e28c88b5a85e5-190049be63942e1c-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-bb1d7c9ea6fa338a50530ed82a36cc89-5fce20b5bcea4f7b-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -1866,14 +1866,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "9", + "Age": "5", "Connection": "keep-alive", - "Content-Length": "2091", + "Content-Length": "2087", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:30 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-6xpm7", + "Via": "1.1 draft-oms-6cfc5ccf95-nlcbn", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -2017,12 +2017,12 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.8171643Z", + "2025-03-07T01:19:39.0611529Z", "http.server.request.duration", 1, - 0.001328, - 0.001328, - 0.001328, + 0.0011645, + 0.0011645, + 0.0011645, "{\"http.request.method\":\"GET\",\"http.response.status_code\":\"200\",\"http.route\":\"/\",\"network.protocol.version\":\"1.1\",\"url.scheme\":\"http\"}", "", "", @@ -2045,7 +2045,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", "Azure", "AppMetrics", "/subscriptions/65b2f83e-7bf1-4be3-bafc-3a4163265a52/resourcegroups/tileetest06201346/providers/microsoft.insights/components/te3fca6a3c26958b8-ai-1" @@ -2063,8 +2063,8 @@ "Authorization": "Sanitized", "Content-Length": "190", "Content-Type": "application/json", - "traceparent": "00-6231a54d94bc28f157aea03553b34d8a-cdd187d63a208946-00", - "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 8.0.8; Microsoft Windows 10.0.22631)", + "traceparent": "00-726f2ed0f095fe9c1d084d3b6857bfb1-24e2760be84c1af5-00", + "User-Agent": "azsdk-net-Monitor.Query/1.1.0 (.NET 9.0.2; Microsoft Windows 10.0.26100)", "x-ms-client-request-id": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -2076,14 +2076,14 @@ "ResponseHeaders": { "Access-Control-Allow-Origin": "*", "Access-Control-Expose-Headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location", - "Age": "8", + "Age": "5", "Connection": "keep-alive", - "Content-Length": "2084", + "Content-Length": "2077", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Sep 2024 19:11:30 GMT", + "Date": "Fri, 07 Mar 2025 01:22:58 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains", "Vary": "Accept-Encoding", - "Via": "1.1 draft-oms-6ddbddd5f9-7lzqk", + "Via": "1.1 draft-oms-6cfc5ccf95-pvsf7", "X-Content-Type-Options": "nosniff" }, "ResponseBody": { @@ -2231,14 +2231,14 @@ "rows": [ [ "33d8a320-00c3-4ec8-a6a4-8692b07a6841", - "2024-09-11T19:08:05.6802073Z", + "2025-03-07T01:19:38.9555907Z", "Message via ILogger", 1, "{\"CategoryName\":\"CustomCategoryName\"}", null, "", - "afdfc0a94e8f58a9101da682a3462054", - "52206518d825c398", + "8d5e93834e23e29beb875e59f6b6a234", + "698ab381008e2667", "", "", "", @@ -2257,7 +2257,7 @@ "Other", "a98f261a-124b-425a-931e-8dc00af2e65c", "53e1f7f0-9975-4995-830a-414a26e9450a", - "dotnet8.0.8:otel1.9.0:ext1.4.0-alpha.20240911-d", + "dotnet9.0.2:otel1.11.2:ext1.4.0-beta.2-d", 1, "", "", @@ -2274,7 +2274,7 @@ "Variables": { "CONNECTION_STRING": "InstrumentationKey=53e1f7f0-9975-4995-830a-414a26e9450a;IngestionEndpoint=https://westus-0.in.applicationinsights.azure.com/;LiveEndpoint=https://westus.livediagnostics.monitor.azure.com/;ApplicationId=a98f261a-124b-425a-931e-8dc00af2e65c", "LOGS_ENDPOINT": "https://api.loganalytics.io", - "RandomSeed": "701551544", + "RandomSeed": "253611803", "SECONDARY_CONNECTION_STRING": "InstrumentationKey=3f8e759a-2c28-4cc7-b260-9b343fb2a3ff;IngestionEndpoint=https://westus-0.in.applicationinsights.azure.com/;LiveEndpoint=https://westus.livediagnostics.monitor.azure.com/;ApplicationId=d64e2b0b-7f11-41ec-b85e-5bd69ee688e2", "SECONDARY_WORKSPACE_ID": "e1407f81-4e84-4943-843a-0494dd4700e5", "WORKSPACE_ID": "33d8a320-00c3-4ec8-a6a4-8692b07a6841" diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/E2ETests/HttpClientInstrumentationTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/E2ETests/HttpClientInstrumentationTests.cs index 3c98af3dce8b..eb26bb73d525 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/E2ETests/HttpClientInstrumentationTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/E2ETests/HttpClientInstrumentationTests.cs @@ -56,9 +56,6 @@ public async Task HttpRequestsAreCapturedCorrectly(string? queryString, int expe var activities = new List(); var serviceCollection = new ServiceCollection(); - // This shouldn't be needed but Http Instrumentation library was performing redaction without it. - serviceCollection.AddEnvironmentVariables(new Dictionary { { "OTEL_DOTNET_EXPERIMENTAL_HTTPCLIENT_DISABLE_URL_QUERY_REDACTION", "true" } }); - serviceCollection.AddOpenTelemetry() .UseAzureMonitor(x => x.ConnectionString = testConnectionString) .WithTracing(x => x.AddInMemoryExporter(activities)) @@ -87,6 +84,18 @@ public async Task HttpRequestsAreCapturedCorrectly(string? queryString, int expe string url = queryString is null ? path : path + queryString; + + // TODO: THIS NEEDS TO BE INVETIGATED. DISTRO SHOULD BE DISABLING REDACTION. + string expectedQueryString = queryString is null + ? string.Empty +#if NET9_0_OR_GREATER //Starting with .NET 9, HttpClient library performs redaction by default + : "?*"; +#else // For all older frameworks, the Instrumentation Library performs redaction by default + : "?key=Redacted"; +#endif + + string urlForValidation = path + expectedQueryString; + var httpclient = new HttpClient(); try @@ -111,9 +120,9 @@ public async Task HttpRequestsAreCapturedCorrectly(string? queryString, int expe VerifyTelemetryItem( isSuccessfulRequest: expectedStatusCode == 200, hasException: shouldThrowException, - expectedUrl: url, + expectedUrl: urlForValidation, operationName: $"GET {path}", - expectedData: baseAddress + path + (queryString ?? ""), + expectedData: baseAddress + path + expectedQueryString, expectedTarget: $"{host}:{port}", statusCode: expectedStatusCode.ToString(), telemetryItem: telemetryItem, diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/LiveMetrics/DocumentTests/ActivityEventTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/LiveMetrics/DocumentTests/ActivityEventTests.cs index f235b2964ce5..2a0a98948f73 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/LiveMetrics/DocumentTests/ActivityEventTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/LiveMetrics/DocumentTests/ActivityEventTests.cs @@ -47,7 +47,7 @@ public void VerifyActivityWithExceptions() catch (System.Exception ex) { activity.SetStatus(ActivityStatusCode.Error); - activity.RecordException(ex, new TagList + activity.AddException(ex, new TagList { {"customKey1", "customValue1"}, {"customKey2", "customValue2"}, diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.LiveMetrics.Demo/Program.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.LiveMetrics.Demo/Program.cs index 2ae9fd09f9b4..8764206d2469 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.LiveMetrics.Demo/Program.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.LiveMetrics.Demo/Program.cs @@ -98,7 +98,7 @@ private static async Task GenerateTelemetry() catch (Exception ex) { activity?.SetStatus(ActivityStatusCode.Error); - activity?.RecordException(ex, new TagList { { "customKey1", "customValue1" } }); + activity?.AddException(ex, new TagList { { "customKey1", "customValue1" } }); } } else @@ -127,7 +127,7 @@ private static async Task GenerateTelemetry() catch (Exception ex) { activity?.SetStatus(ActivityStatusCode.Error); - activity?.RecordException(ex, new TagList { { "customKey1", "customValue1" } }); + activity?.AddException(ex, new TagList { { "customKey1", "customValue1" } }); } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/CHANGELOG.md b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/CHANGELOG.md index 875f2eb78dce..933e45bf2034 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/CHANGELOG.md +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/CHANGELOG.md @@ -16,6 +16,11 @@ ### Other Changes +* Update OpenTelemetry dependencies + ([#48574](https://github.com/Azure/azure-sdk-for-net/pull/48574)) + - OpenTelemetry 1.11.2 + - OpenTelemetry.PersistentStorage.FileSystem 1.0.1 + ## 1.4.0-beta.2 (2024-10-11) ### Bugs Fixed diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/perf/Scenarios/ActivityKindClient.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/perf/Scenarios/ActivityKindClient.cs index 210f2c053fe6..6968153c36f3 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/perf/Scenarios/ActivityKindClient.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/perf/Scenarios/ActivityKindClient.cs @@ -52,7 +52,7 @@ public ActivityKindClient(PerfOptions options) : base(options) parentContext: new ActivityContext(ActivityTraceId.CreateRandom(), ActivitySpanId.CreateRandom(), ActivityTraceFlags.Recorded), startTime: DateTime.UtcNow); - activity?.SetStatus(Status.Ok); + activity?.SetStatus(ActivityStatusCode.Ok); activity?.SetTag(SemanticConventions.AttributeHttpScheme, "https"); activity?.SetTag(SemanticConventions.AttributeHttpMethod, "POST"); activity?.SetTag(SemanticConventions.AttributeHttpTarget, "api/123"); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/perf/Scenarios/ActivityKindServer.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/perf/Scenarios/ActivityKindServer.cs index f4ef1769b06e..cba2f2c55e78 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/perf/Scenarios/ActivityKindServer.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/perf/Scenarios/ActivityKindServer.cs @@ -52,7 +52,7 @@ public ActivityKindServer(PerfOptions options) : base(options) parentContext: new ActivityContext(ActivityTraceId.CreateRandom(), ActivitySpanId.CreateRandom(), ActivityTraceFlags.Recorded), startTime: DateTime.UtcNow); - activity?.SetStatus(Status.Ok); + activity?.SetStatus(ActivityStatusCode.Ok); activity?.SetTag(SemanticConventions.AttributeHttpMethod, "Get"); activity?.SetTag(SemanticConventions.AttributeHttpScheme, "https"); activity?.SetTag(SemanticConventions.AttributeHttpTarget, "api/123"); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs index 6ec78d04a0f1..d586d547dca2 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs @@ -316,7 +316,7 @@ private static void AddTelemetryFromActivityEvents(Activity activity, TelemetryI } } - if (exceptionMessage == null || exceptionType == null) + if (string.IsNullOrEmpty(exceptionMessage) || exceptionType == null) { return null; } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Demo/Traces/TraceDemo.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Demo/Traces/TraceDemo.cs index 61136d052043..4753ac0fb7a1 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Demo/Traces/TraceDemo.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Demo/Traces/TraceDemo.cs @@ -74,7 +74,7 @@ public void GenerateTraces() catch (Exception ex) { activity?.SetStatus(ActivityStatusCode.Error); - activity?.RecordException(ex); + activity?.AddException(ex); } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/TracesTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/TracesTests.cs index 98c934a505d3..8753b235aa0d 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/TracesTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/TracesTests.cs @@ -171,7 +171,7 @@ public void VerifyExceptionWithinActivity() catch (Exception ex) { activity?.SetStatus(ActivityStatusCode.Error); - activity?.RecordException(ex, new TagList + activity?.AddException(ex, new TagList { { "someKey", "someValue" }, }); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RemoteDependencyDataNewTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RemoteDependencyDataNewTests.cs index c0e6d570948d..ebd1cb5d0619 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RemoteDependencyDataNewTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RemoteDependencyDataNewTests.cs @@ -78,7 +78,7 @@ public void ValidateHttpRemoteDependencyData() activity.Stop(); var httpUrl = "https://www.foo.bar/search"; - activity.SetStatus(Status.Ok); + activity.SetStatus(ActivityStatusCode.Ok); activity.SetTag(SemanticConventions.AttributeHttpRequestMethod, "GET"); activity.SetTag(SemanticConventions.AttributeUrlFull, httpUrl); activity.SetTag(SemanticConventions.AttributeServerAddress, "www.foo.bar"); @@ -94,7 +94,7 @@ public void ValidateHttpRemoteDependencyData() Assert.Equal("www.foo.bar", remoteDependencyData.Target); Assert.Equal("200", remoteDependencyData.ResultCode); Assert.Equal(activity.Duration.ToString("c", CultureInfo.InvariantCulture), remoteDependencyData.Duration); - Assert.Equal(activity.GetStatus() != Status.Error, remoteDependencyData.Success); + Assert.Equal(activity.Status != ActivityStatusCode.Error, remoteDependencyData.Success); Assert.True(remoteDependencyData.Properties.Count == 0); Assert.True(remoteDependencyData.Measurements.Count == 0); } @@ -135,7 +135,7 @@ public void ValidateMessagingRemoteDependencyData() Assert.NotNull(activity); activity.Stop(); - activity.SetStatus(Status.Ok); + activity.SetStatus(ActivityStatusCode.Ok); activity.SetTag(SemanticConventions.AttributeMessagingSystem, "servicebus"); activity.SetTag(SemanticConventions.AttributeServerAddress, "my.servicebus.windows.net"); activity.SetTag(SemanticConventions.AttributeMessagingDestinationName, "queueName"); @@ -150,7 +150,7 @@ public void ValidateMessagingRemoteDependencyData() Assert.Null(remoteDependencyData.ResultCode); Assert.Equal(activity.Duration.ToString("c", CultureInfo.InvariantCulture), remoteDependencyData.Duration); Assert.Equal("my.servicebus.windows.net/queueName", remoteDependencyData.Target); - Assert.Equal(activity.GetStatus() != Status.Error, remoteDependencyData.Success); + Assert.Equal(activity.Status != ActivityStatusCode.Error, remoteDependencyData.Success); Assert.True(remoteDependencyData.Properties.Count == 0); Assert.True(remoteDependencyData.Measurements.Count == 0); } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RemoteDependencyDataTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RemoteDependencyDataTests.cs index f2108aa0af22..a9ff8b9873a0 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RemoteDependencyDataTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RemoteDependencyDataTests.cs @@ -114,7 +114,7 @@ public void ValidateHttpRemoteDependencyData() activity.Stop(); var httpUrl = "https://www.foo.bar/search"; - activity.SetStatus(Status.Ok); + activity.SetStatus(ActivityStatusCode.Ok); activity.SetTag(SemanticConventions.AttributeHttpMethod, "GET"); activity.SetTag(SemanticConventions.AttributeHttpUrl, httpUrl); // only adding test via http.url. all possible combinations are covered in AzMonListExtensionsTests. activity.SetTag(SemanticConventions.AttributeHttpHost, "www.foo.bar"); @@ -130,7 +130,7 @@ public void ValidateHttpRemoteDependencyData() Assert.Equal("www.foo.bar", remoteDependencyData.Target); Assert.Equal("200", remoteDependencyData.ResultCode); Assert.Equal(activity.Duration.ToString("c", CultureInfo.InvariantCulture), remoteDependencyData.Duration); - Assert.Equal(activity.GetStatus() != Status.Error, remoteDependencyData.Success); + Assert.Equal(activity.Status != ActivityStatusCode.Error, remoteDependencyData.Success); Assert.True(remoteDependencyData.Properties.Count == 0); Assert.True(remoteDependencyData.Measurements.Count == 0); } @@ -147,7 +147,7 @@ public void ValidateDbRemoteDependencyData() Assert.NotNull(activity); activity.Stop(); - activity.SetStatus(Status.Ok); + activity.SetStatus(ActivityStatusCode.Ok); activity.SetTag(SemanticConventions.AttributeDbName, "mysqlserver"); activity.SetTag(SemanticConventions.AttributeDbSystem, "mssql"); activity.SetTag(SemanticConventions.AttributePeerService, "localhost"); // only adding test via peer.service. all possible combinations are covered in AzMonListExtensionsTests. @@ -163,7 +163,7 @@ public void ValidateDbRemoteDependencyData() Assert.Equal("localhost | mysqlserver", remoteDependencyData.Target); Assert.Null(remoteDependencyData.ResultCode); Assert.Equal(activity.Duration.ToString("c", CultureInfo.InvariantCulture), remoteDependencyData.Duration); - Assert.Equal(activity.GetStatus() != Status.Error, remoteDependencyData.Success); + Assert.Equal(activity.Status != ActivityStatusCode.Error, remoteDependencyData.Success); Assert.True(remoteDependencyData.Properties.Count == 1); Assert.True(remoteDependencyData.Properties.Contains(new KeyValuePair(SemanticConventions.AttributeDbName, "mysqlserver" ))); Assert.True(remoteDependencyData.Measurements.Count == 0); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RequestDataNewTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RequestDataNewTests.cs index f2ef70838e35..c56ef5a8b587 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RequestDataNewTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RequestDataNewTests.cs @@ -32,7 +32,7 @@ public void ValidateHttpRequestData() activity.Stop(); var httpUrl = "https://www.foo.bar/search"; - activity.SetStatus(Status.Ok); + activity.SetStatus(ActivityStatusCode.Ok); activity.SetTag(SemanticConventions.AttributeHttpRequestMethod, "GET"); activity.SetTag(SemanticConventions.AttributeHttpRoute, "/search"); activity.SetTag(SemanticConventions.AttributeUrlScheme, "https"); @@ -51,7 +51,7 @@ public void ValidateHttpRequestData() Assert.Equal(httpUrl, requestData.Url); Assert.Equal("0", requestData.ResponseCode); Assert.Equal(activity.Duration.ToString("c", CultureInfo.InvariantCulture), requestData.Duration); - Assert.False(requestData.Success); + Assert.True(requestData.Success); Assert.Null(requestData.Source); Assert.True(requestData.Properties.Count == 1); Assert.Equal("bar", requestData.Properties["foo"]); @@ -236,7 +236,7 @@ public void ValidateMessagingRequestData() Assert.NotNull(activity); activity.Stop(); - activity.SetStatus(Status.Ok); + activity.SetStatus(ActivityStatusCode.Ok); activity.SetTag(SemanticConventions.AttributeMessagingSystem, "servicebus"); activity.SetTag(SemanticConventions.AttributeServerAddress, "my.servicebus.windows.net"); activity.SetTag(SemanticConventions.AttributeMessagingDestinationName, "queueName"); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RequestDataTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RequestDataTests.cs index f8711b05b99e..51d61aaa7368 100755 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RequestDataTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/RequestDataTests.cs @@ -46,7 +46,7 @@ public void ValidateHttpRequestData() activity.Stop(); var httpUrl = "https://www.foo.bar/search"; - activity.SetStatus(Status.Ok); + activity.SetStatus(ActivityStatusCode.Ok); activity.SetTag(SemanticConventions.AttributeHttpMethod, "GET"); activity.SetTag(SemanticConventions.AttributeHttpRoute, "/search"); activity.SetTag(SemanticConventions.AttributeHttpUrl, httpUrl); // only adding test via http.url. all possible combinations are covered in AzMonListExtensionsTests. diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TraceHelperTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TraceHelperTests.cs index b327957579c1..d30bd55a7d8e 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TraceHelperTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TraceHelperTests.cs @@ -237,7 +237,7 @@ public void ActivityWithExceptionEventCreatesExceptionTelemetry() ActivityKind.Server); Assert.NotNull(activity); - activity.RecordException(new Exception(exceptionMessage)); + activity.AddException(new Exception(exceptionMessage)); Activity[] activityList = new Activity[1]; activityList[0] = activity; @@ -307,7 +307,7 @@ public void ActivityWithExceptionEventDoesNotCreateExceptionTelemetryWhenExcepti // Checking with empty string here as OTel // adds the exception only if it non-null and non-empty. // https://github.com/open-telemetry/opentelemetry-dotnet/blob/872a52f5291804c7af19e90307b5cc097b2da709/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs#L102-L104 - activity.RecordException(new Exception("")); + activity.AddException(new Exception("")); Activity[] activityList = new Activity[1]; activityList[0] = activity;