From 561abc137070b96c02a8d495f6b66fea0003e322 Mon Sep 17 00:00:00 2001 From: Alex Hemsath Date: Fri, 27 Oct 2023 15:42:06 -0700 Subject: [PATCH] Updated 7x instrumentation with version ranges Not quite working, integration tests are failing for StartBus with v7.0.0 due to transaction scope oddness --- .../MassTransitLegacy/Instrumentation.xml | 16 +++++++++++----- .../MassTransit/MassTransitTests.cs | 1 + .../MultiFunctionApplicationHelpers.csproj | 13 +++++++------ 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/MassTransitLegacy/Instrumentation.xml b/src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/MassTransitLegacy/Instrumentation.xml index cf00b0a35c..723b48e201 100644 --- a/src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/MassTransitLegacy/Instrumentation.xml +++ b/src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/MassTransitLegacy/Instrumentation.xml @@ -9,16 +9,22 @@ SPDX-License-Identifier: Apache-2.0 - - + + + + - - + - + + + + + + diff --git a/tests/Agent/IntegrationTests/IntegrationTests/MassTransit/MassTransitTests.cs b/tests/Agent/IntegrationTests/IntegrationTests/MassTransit/MassTransitTests.cs index 1e1075b3b4..f8ee122780 100644 --- a/tests/Agent/IntegrationTests/IntegrationTests/MassTransit/MassTransitTests.cs +++ b/tests/Agent/IntegrationTests/IntegrationTests/MassTransit/MassTransitTests.cs @@ -71,6 +71,7 @@ public void Test() var massTransitConsumeMetricNameRegex = massTransitMetricNameRegexBase + @"Consume\/" + queueNameRegex; var metrics = _fixture.AgentLog.GetMetrics().ToList(); + //Metric named MessageBroker\/MassTransit\/Queue\/Consume\/Named\/(.{26}) scoped to OtherTransaction\/Message\/MassTransit\/Queue\/Named\/(.{26}) was not found in the metric payload var expectedMetrics = new List { diff --git a/tests/Agent/IntegrationTests/SharedApplications/Common/MultiFunctionApplicationHelpers/MultiFunctionApplicationHelpers.csproj b/tests/Agent/IntegrationTests/SharedApplications/Common/MultiFunctionApplicationHelpers/MultiFunctionApplicationHelpers.csproj index 691dddac80..197216b2e8 100644 --- a/tests/Agent/IntegrationTests/SharedApplications/Common/MultiFunctionApplicationHelpers/MultiFunctionApplicationHelpers.csproj +++ b/tests/Agent/IntegrationTests/SharedApplications/Common/MultiFunctionApplicationHelpers/MultiFunctionApplicationHelpers.csproj @@ -263,21 +263,22 @@ + - - + + - - + + - - + +