Skip to content

Commit 9660137

Browse files
committed
Fix endpoint for mock collector profiles
1 parent 49643db commit 9660137

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

test/IntegrationTests/Helpers/MockProfilesCollector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public MockProfilesCollector(ITestOutputHelper output, string host = "localhost"
2828
{
2929
_output = output;
3030
#if NETFRAMEWORK
31-
_listener = new(output, HandleHttpRequests, host, "/v1/metrics/");
31+
_listener = new(output, HandleHttpRequests, host, "/v1development/profiles");
3232
#else
3333
_listener = new(output, nameof(MockProfilesCollector), new PathHandler(HandleHttpRequests, "/v1development/profiles"));
3434
#endif

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

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

21-
#if NETFRAMEWORK
22-
private readonly string _endpoint = Environment.GetEnvironmentVariable("OTEL_EXPORTER_OTLP_ENDPOINT") + "/v1/metrics";
23-
#else
2421
private readonly string _endpoint = Environment.GetEnvironmentVariable("OTEL_EXPORTER_OTLP_ENDPOINT") + "/v1development/profiles";
25-
#endif
2622
private readonly HttpClient _httpClient = new();
2723
private readonly long cpuPeriod;
2824

0 commit comments

Comments
 (0)