generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
164 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace AspireSessionHost.Otel; | ||
|
||
internal static class OtelEndpoints | ||
{ | ||
internal static void MapOtelEndpoints(this IEndpointRouteBuilder routes) | ||
{ | ||
routes.MapGrpcService<OtelLogService>(); | ||
routes.MapGrpcService<OtelMetricService>(); | ||
routes.MapGrpcService<OtelTraceService>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Grpc.Core; | ||
using OpenTelemetry.Proto.Collector.Logs.V1; | ||
|
||
namespace AspireSessionHost.Otel; | ||
|
||
internal sealed class OtelLogService : LogsService.LogsServiceBase | ||
{ | ||
public override Task<ExportLogsServiceResponse> Export( | ||
ExportLogsServiceRequest request, | ||
ServerCallContext context) | ||
{ | ||
return Task.FromResult(new ExportLogsServiceResponse | ||
{ | ||
PartialSuccess = new ExportLogsPartialSuccess | ||
{ | ||
RejectedLogRecords = 0 | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Grpc.Core; | ||
using OpenTelemetry.Proto.Collector.Metrics.V1; | ||
|
||
namespace AspireSessionHost.Otel; | ||
|
||
internal sealed class OtelMetricService : MetricsService.MetricsServiceBase | ||
{ | ||
public override Task<ExportMetricsServiceResponse> Export( | ||
ExportMetricsServiceRequest request, | ||
ServerCallContext context) | ||
{ | ||
return Task.FromResult(new ExportMetricsServiceResponse | ||
{ | ||
PartialSuccess = new ExportMetricsPartialSuccess | ||
{ | ||
RejectedDataPoints = 0 | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Grpc.Core; | ||
using OpenTelemetry.Proto.Collector.Trace.V1; | ||
|
||
namespace AspireSessionHost.Otel; | ||
|
||
internal sealed class OtelTraceService : TraceService.TraceServiceBase | ||
{ | ||
public override Task<ExportTraceServiceResponse> Export( | ||
ExportTraceServiceRequest request, | ||
ServerCallContext context) | ||
{ | ||
return Task.FromResult(new ExportTraceServiceResponse | ||
{ | ||
PartialSuccess = new ExportTracePartialSuccess | ||
{ | ||
RejectedSpans = 0 | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters