Class ConfigExtensions
Implements extension methods used for configuring Neon.Diagnostics related exporters and processors.
Namespace: Neon.Diagnostics
Assembly: Neon.Common.dll
Syntax
public static class ConfigExtensions
Methods
AddConsoleJsonExporter(OpenTelemetryLoggerOptions, Action<ConsoleJsonLogExporterOptions>)
Adds a ConsoleJsonLogExporter to a OpenTelemetryLoggerOptions instance when configuring a OpenTelemetry pipeline.
Declaration
public static OpenTelemetryLoggerOptions AddConsoleJsonExporter(this OpenTelemetryLoggerOptions loggerOptions, Action<ConsoleJsonLogExporterOptions> configure = null)
Parameters
Type | Name | Description |
---|---|---|
OpenTelemetryLoggerOptions | loggerOptions | The OpenTelemetryLoggerOptions options to where the exporter will be added. |
Action<ConsoleJsonLogExporterOptions> | configure | Exporter configuration options. |
Returns
Type | Description |
---|---|
OpenTelemetryLoggerOptions | The |
AddConsoleTextExporter(OpenTelemetryLoggerOptions, Action<ConsoleTextLogExporterOptions>)
Adds a ConsoleTextLogExporter to a OpenTelemetryLoggerOptions instance when configuring a OpenTelemetry pipeline.
Declaration
public static OpenTelemetryLoggerOptions AddConsoleTextExporter(this OpenTelemetryLoggerOptions loggerOptions, Action<ConsoleTextLogExporterOptions> configure = null)
Parameters
Type | Name | Description |
---|---|---|
OpenTelemetryLoggerOptions | loggerOptions | The OpenTelemetryLoggerOptions options to where the exporter will be added. |
Action<ConsoleTextLogExporterOptions> | configure | Exporter configuration options. |
Returns
Type | Description |
---|---|
OpenTelemetryLoggerOptions | The |
AddFileExporter(OpenTelemetryLoggerOptions, Action<FileLogExporterOptions>)
Adds a FileLogExporter to a OpenTelemetryLoggerOptions instance when configuring a OpenTelemetry pipeline.
Declaration
public static OpenTelemetryLoggerOptions AddFileExporter(this OpenTelemetryLoggerOptions loggerOptions, Action<FileLogExporterOptions> configure = null)
Parameters
Type | Name | Description |
---|---|---|
OpenTelemetryLoggerOptions | loggerOptions | The OpenTelemetryLoggerOptions options to where the exporter will be added. |
Action<FileLogExporterOptions> | configure | Exporter configuration options. |
Returns
Type | Description |
---|---|
OpenTelemetryLoggerOptions | The |
AddLogAsTraceProcessor(OpenTelemetryLoggerOptions, Action<LogAsTraceProcessorOptions>)
Adds a ConsoleJsonLogExporter to a OpenTelemetryLoggerOptions instance when configuring a OpenTelemetry pipeline.
Declaration
public static OpenTelemetryLoggerOptions AddLogAsTraceProcessor(this OpenTelemetryLoggerOptions loggerOptions, Action<LogAsTraceProcessorOptions> configure = null)
Parameters
Type | Name | Description |
---|---|---|
OpenTelemetryLoggerOptions | loggerOptions | The OpenTelemetryLoggerOptions options to where the exporter will be added. |
Action<LogAsTraceProcessorOptions> | configure | Exporter configuration options. |
Returns
Type | Description |
---|---|
OpenTelemetryLoggerOptions | The |