Skip to content

Commit

Permalink
test: Disable event listener sampler for NetCoreAsyncTests to help st…
Browse files Browse the repository at this point in the history
…abilize ci runs. (#2237)
  • Loading branch information
tippmar-nr authored Feb 9, 2024
1 parent 71c4ea3 commit 5c7a37a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public NetCoreAsyncTests(NetCoreAsyncTestsFixture fixture, ITestOutputHelper out

CommonUtils.AddCustomInstrumentation(instrumentationFilePath, "NetCoreAsyncApplication", "NetCoreAsyncApplication.AsyncUseCases", "TaskRunBackgroundMethod", "NewRelic.Providers.Wrapper.CustomInstrumentationAsync.DefaultWrapperAsync", "TaskRunBackgroundMethod");
CommonUtils.AddCustomInstrumentation(instrumentationFilePath, "NetCoreAsyncApplication", "NetCoreAsyncApplication.AsyncUseCases", "TaskFactoryStartNewBackgroundMethod", "NewRelic.Providers.Wrapper.CustomInstrumentationAsync.DefaultWrapperAsync", "TaskFactoryStartNewBackgroundMethod");

var configPath = fixture.DestinationNewRelicConfigFilePath;
var configModifier = new NewRelicConfigModifier(configPath);
configModifier.DisableEventListenerSamplers(); // Required for .NET 8 to pass.
}
);
_fixture.Initialize();
Expand Down

0 comments on commit 5c7a37a

Please sign in to comment.