Class GrpcLogExporter
Implements a trace exporter that forwards log batches to the neon-desktop-service which then handles the transmission to the headend.
Namespace: Neon.Kube
Assembly: Neon.Kube.GrpcProto.dll
Syntax
public class GrpcLogExporter : BaseExporter<LogRecord>
Constructors
GrpcLogExporter(IGrpcDesktopService)
Default constructor.
Declaration
public GrpcLogExporter(IGrpcDesktopService desktopService)
Parameters
| Type | Name | Description |
|---|---|---|
| IGrpcDesktopService | desktopService | Specifies the gRPC client for the neon-desktop-service. |
Methods
Export(in Batch<LogRecord>)
Exports a batch of telemetry objects.
Declaration
public override ExportResult Export(in Batch<LogRecord> batch)
Parameters
| Type | Name | Description |
|---|---|---|
| Batch<LogRecord> | batch | Batch of telemetry objects to export. |
Returns
| Type | Description |
|---|---|
| ExportResult | Result of the export operation. |
Overrides
OpenTelemetry.BaseExporter<OpenTelemetry.Logs.LogRecord>.Export(in OpenTelemetry.Batch<OpenTelemetry.Logs.LogRecord>)