Obsolete processor options on OtlpExporterOptions when we release support for logs #4527
Labels
enhancement
New feature or request
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol
Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package
traces
Tracing signal related
Milestone
This issue is to track our decision for obsoleting the following options on the
OtlpExporterOptions
classopentelemetry-dotnet/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs
Lines 150 to 158 in a5b14aa
Background
For both traces and metrics it is possible to configure the interval for which telemetry is exported.
The SDK component that controls the export interval differ between traces and metrics. For traces an
ExportProcessor
defines the interval for which it invokes its exporter, and for metrics aMetricReader
defines the interval.We explicitly decided not to add
MetricReader
related options to theOtlpExporterOptions
class to avoid further polluting it with non-exporter related options. However, theExportProcessor
options have caused confusion as they only apply to traces and not metrics (see #2767 and #4026).Additionally, support for logs will be introduced soon. While logs share the notion of an
ExportProcessor
,OtlpExporterOptions.BatchExportProcessorOptions
is typed specifically for tracesBatchExportProcessorOptions<Activity>
. We plan to continue our work related to #2552, so we will not be adding log specific processor settings toOtlpExporterOptions
.I believe, just as we saw with metrics, end users will be confused that the processor related settings on
OtlpExporterOptions
do not control the behavior for logs. Therefore, I think we should mark the processor settings obsolete to communicate this clearly.The text was updated successfully, but these errors were encountered: