OTLP exporters: Support instantiating one channel/connection for sending traces, metrics, and logs #2426
Labels
enhancement
New feature or request
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol
Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package
Milestone
Mentioned in this comment.
Probably most applicable to OTLP/gRPC but may also be relevant to think about for OTLP/HTTP.
Currently, instantiating an OTLP/gRPC exporter for traces, metrics and logs will cause a separate gRPC channel to be established for each telemetry signal. Each exporter has a constructor that takes
OtlpExporterOptions
which are use to construct the gRPC channel.One thought is to allow creation of a channel from the
OtlpExporterOptions
and then pass the channel upon construction of the exporters.Psuedo code:
Or maybe the channel becomes a property of the options and we pass the options when configuration the trace/meter providers.
A side note,
OtlpExporterOptions
may be utilized by both OTLP/gRPC and OTLP/HTTP exporters when #2316 lands, so it may make sense to not introduce gRPC specific things toOtlpExporterOptions
or maybe refactor to have anOtlpGrpcExporterOptions
/OtlpHttpExporterOptions
, if we can.The text was updated successfully, but these errors were encountered: