File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,7 @@ pub(crate) fn otel_tracing_layer<S: Subscriber + for<'span> LookupSpan<'span>>(
34
34
] ,
35
35
) ;
36
36
37
- // This will configure the exporter based on the OTEL_EXPORTER_* environment variables. We
38
- // currently default to using the HTTP exporter but in the future we could select off of the
39
- // combination of OTEL_EXPORTER_OTLP_PROTOCOL and OTEL_EXPORTER_OTLP_TRACES_PROTOCOL to
40
- // determine whether we should use http/protobuf or grpc.
37
+ // This will configure the exporter based on the OTEL_EXPORTER_* environment variables.
41
38
let exporter: SpanExporterBuilder = match OtlpProtocol :: traces_protocol_from_env ( ) {
42
39
OtlpProtocol :: Grpc => opentelemetry_otlp:: new_exporter ( ) . tonic ( ) . into ( ) ,
43
40
OtlpProtocol :: HttpProtobuf => opentelemetry_otlp:: new_exporter ( ) . http ( ) . into ( ) ,
You can’t perform that action at this time.
0 commit comments