<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.19.1" />

OpenTelemetry.Logs.OtlpLogExporterHelperExtensions

public static class OtlpLogExporterHelperExtensions
Extension methods to simplify registering of the OpenTelemetry Protocol (OTLP) exporter.
namespace OpenTelemetry.Logs { public static class OtlpLogExporterHelperExtensions { public static OpenTelemetryLoggerOptions AddOtlpExporter(this OpenTelemetryLoggerOptions loggerOptions); public static OpenTelemetryLoggerOptions AddOtlpExporter(this OpenTelemetryLoggerOptions loggerOptions, Action<OtlpExporterOptions> configure); public static OpenTelemetryLoggerOptions AddOtlpExporter(this OpenTelemetryLoggerOptions loggerOptions, string name, Action<OtlpExporterOptions> configure); public static OpenTelemetryLoggerOptions AddOtlpExporter(this OpenTelemetryLoggerOptions loggerOptions, Action<OtlpExporterOptions, LogRecordExportProcessorOptions> configureExporterAndProcessor); public static OpenTelemetryLoggerOptions AddOtlpExporter(this OpenTelemetryLoggerOptions loggerOptions, string name, Action<OtlpExporterOptions, LogRecordExportProcessorOptions> configureExporterAndProcessor); public static LoggerProviderBuilder AddOtlpExporter(this LoggerProviderBuilder builder); public static LoggerProviderBuilder AddOtlpExporter(this LoggerProviderBuilder builder, Action<OtlpExporterOptions> configureExporter); public static LoggerProviderBuilder AddOtlpExporter(this LoggerProviderBuilder builder, Action<OtlpExporterOptions, LogRecordExportProcessorOptions> configureExporterAndProcessor); public static LoggerProviderBuilder AddOtlpExporter(this LoggerProviderBuilder builder, string name, Action<OtlpExporterOptions> configureExporter); public static LoggerProviderBuilder AddOtlpExporter(this LoggerProviderBuilder builder, string name, Action<OtlpExporterOptions, LogRecordExportProcessorOptions> configureExporterAndProcessor); } }