Skip to content

Commit 877e87f

Browse files
authored
fix protocol priority (#71)
*Issue #, if available:* This PR fix the SMP exporter transport protocol as priority: 1. OTEL_EXPORTER_OTLP_METRICS_PROTOCOL 2. OTEL_EXPORTER_OTLP_PROTOCOL By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
2 parents 5a37897 + 35a5f97 commit 877e87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def __new__(cls, *args, **kwargs):
228228
# pylint: disable=no-self-use
229229
def create_exporter(self):
230230
protocol = os.environ.get(
231-
OTEL_EXPORTER_OTLP_PROTOCOL, os.environ.get(OTEL_EXPORTER_OTLP_METRICS_PROTOCOL, "grpc")
231+
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL, os.environ.get(OTEL_EXPORTER_OTLP_PROTOCOL, "grpc")
232232
)
233233
_logger.debug("AppSignals export protocol: %s", protocol)
234234

0 commit comments

Comments
 (0)