Skip to content

Commit 59fee1d

Browse files
authored
[ContinuousProfiler] Fix collector-profiles endpoint (#4028)
1 parent d55b247 commit 59fee1d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

test/IntegrationTests/Helpers/MockProfilesCollector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class MockProfilesCollector : IDisposable
2424
public MockProfilesCollector(ITestOutputHelper output)
2525
{
2626
_output = output;
27-
_listener = new(output, new PathHandler(HandleHttpRequests, "/v1/profiles"));
27+
_listener = new(output, new PathHandler(HandleHttpRequests, "/v1development/profiles"));
2828
}
2929

3030
/// <summary>

test/test-applications/integrations/TestApplication.ContinuousProfiler/Exporter/OtlpOverHttpExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class OtlpOverHttpExporter
1818
{
1919
private const string MediaContentType = "application/x-protobuf";
2020

21-
private readonly string _endpoint = Environment.GetEnvironmentVariable("OTEL_EXPORTER_OTLP_ENDPOINT") + "/v1/profiles";
21+
private readonly string _endpoint = Environment.GetEnvironmentVariable("OTEL_EXPORTER_OTLP_ENDPOINT") + "/v1development/profiles";
2222
private readonly HttpClient _httpClient = new();
2323
private readonly long cpuPeriod;
2424

test/test-applications/integrations/TestApplication.ContinuousProfiler/Properties/launchSettings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
"DOTNET_SHARED_STORE": "$(SolutionDir)bin\\tracer-home\\store",
1313
"DOTNET_STARTUP_HOOKS": "$(SolutionDir)bin\\tracer-home\\net\\OpenTelemetry.AutoInstrumentation.StartupHook.dll",
1414
"OTEL_DOTNET_AUTO_HOME": "$(SolutionDir)bin\\tracer-home",
15-
"OTEL_DOTNET_AUTO_PLUGINS": "TestApplication.ContinuousProfiler.ThreadPlugin, TestApplication.ContinuousProfiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", // or "TestApplication.ContinuousProfiler.AllocationPlugin, TestApplication.ContinuousProfiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" for allocation testing purposes
16-
"OTEL_DOTNET_AUTO_TRACES_ADDITIONAL_SOURCES": "TestApplication.ContinuousProfiler"
15+
"OTEL_DOTNET_AUTO_PLUGINS": "TestApplication.ContinuousProfiler.ThreadPlugin, TestApplication.ContinuousProfiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", // or "TestApplication.ContinuousProfiler.AllocationPlugin, TestApplication.ContinuousProfiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" for allocation testing purposes
16+
"OTEL_DOTNET_AUTO_TRACES_ADDITIONAL_SOURCES": "TestApplication.ContinuousProfiler",
17+
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://localhost:4318"
1718
}
1819
}
1920
}

0 commit comments

Comments
 (0)