Skip to content

Commit 2e5eb09

Browse files
committed
Fix test
1 parent 4e7ab36 commit 2e5eb09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Elastic.OpenTelemetry/Instrumentation/ContribMetricsInstrumentation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static InstrumentationAssemblyInfo[] GetMetricsInstrumentationAssembliesI
7373

7474
new()
7575
{
76-
Name = "Http",
76+
Name = "HTTP",
7777
Filename = "OpenTelemetry.Instrumentation.Http.dll",
7878
FullyQualifiedType = "OpenTelemetry.Metrics.HttpClientInstrumentationMeterProviderBuilderExtensions",
7979
InstrumentationMethod = "AddHttpClientInstrumentation"

tests/Elastic.OpenTelemetry.Tests/InstrumentationScanningTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public partial class InstrumentationScanningTests(WebApplicationFactory<Program>
2424
private readonly ITestOutputHelper _output = output;
2525

2626
#if NET8_0
27-
[GeneratedRegex(@"^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\]\[\d{6}\]\[-*\]\[Debug\]\s+Added contrib instrumentation 'HTTP' to TracerProviderBuilder.*")]
27+
[GeneratedRegex(@"^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\]\[\d{6}\]\[-*\]\[Debug\]\s+Added contrib instrumentation 'HTTP' to TracerProviderBuilder*")]
2828
private static partial Regex HttpTracerProviderBuilderRegex();
2929

30-
[GeneratedRegex(@"^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\]\[\d{6}\]\[-*\]\[Debug\]\s+Added contrib instrumentation 'HTTP' to MeterProviderBuilder.*")]
30+
[GeneratedRegex(@"^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\]\[\d{6}\]\[-*\]\[Debug\]\s+Added contrib instrumentation 'HTTP' to MeterProviderBuilder*")]
3131
private static partial Regex HttpMeterProviderBuilderRegex();
3232
#elif NET9_0
3333
[GeneratedRegex(@"^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\]\[\d{6}\]\[-*\]\[Debug\]\s+Added 'System.Net.Http' to TracerProviderBuilder.*")]

0 commit comments

Comments
 (0)