Class OtelConfigExtensions
Implements extension methods used for configuring Neon.Diagnostics related exporters and processors.
Namespace: Neon.Service
Assembly: Neon.Service.dll
Syntax
public static class OtelConfigExtensions
Methods
AddLogMetricsProcessor(OpenTelemetryLoggerOptions)
Adds a LogMetricsProcessor to a OpenTelemetry.Logs.OpenTelemetryLoggerOptions instance that counts the number of logged events by LogLevel using the neonsdk_log_events_total metrics counter.
Declaration
public static OpenTelemetryLoggerOptions AddLogMetricsProcessor(this OpenTelemetryLoggerOptions loggerOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| OpenTelemetryLoggerOptions | loggerOptions | The OpenTelemetry.Logs.OpenTelemetryLoggerOptions options to where the exporter will be added. |
Returns
| Type | Description |
|---|---|
| OpenTelemetryLoggerOptions | The |