OpenTelemetry.Logs.OpenTelemetryLoggerOptions
Contains OpenTelemetry logging options.
Gets or sets a value indicating whether or not formatted log message
should be included on generated LogRecords. Default
value: false.
Gets or sets a value indicating whether or not log scopes should be
included on generated LogRecords. Default value:
false.
Gets or sets a value indicating whether or not log state should be
parsed into Attributes on generated LogRecords. Default value: false.
public OpenTelemetryLoggerOptions()
Adds processor to the options.
public OpenTelemetryLoggerOptions AddProcessor(Func<IServiceProvider, BaseProcessor<LogRecord>> implementationFactory)
Adds a processor to the provider which will be retrieved using dependency injection.
Sets the ResourceBuilder from which the Resource associated with
this provider is built from. Overwrites currently set ResourceBuilder.