Skip to content

Commit 0754c73

Browse files
committed
changed log messages
1 parent 0d63014 commit 0754c73

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,15 +322,15 @@ def _customize_exporter(span_exporter: SpanExporter, resource: Resource) -> Span
322322
if is_xray_otlp_endpoint(os.environ.get(OTEL_EXPORTER_OTLP_TRACES_ENDPOINT)):
323323
# TODO: Change this url once doc writer has added a section for using SigV4 without collector
324324
_logger.info(
325-
"Detected using AWS OTLP XRay Endpoint. Please ensure you've followed the documentation to properly setup your environment to export traces to XRay. See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-OpenTelemetry-Sections.html"
325+
"Detected using AWS OTLP XRay Endpoint."
326326
)
327327

328328
if isinstance(span_exporter, OTLPSpanExporter):
329329
span_exporter = OTLPAwsSpanExporter(endpoint=os.getenv(OTEL_EXPORTER_OTLP_TRACES_ENDPOINT))
330330

331331
else:
332332
_logger.info(
333-
"Improper configuration see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-OpenTelemetry-Sections.html"
333+
"Improper configuration see: please export/set OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf and OTEL_TRACES_EXPORTER=otlp"
334334
)
335335

336336
if not _is_application_signals_enabled():

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ def _export(self, serialized_data: bytes):
9595
except Exception as signing_error: # pylint: disable=broad-except
9696
_logger.error("Failed to sign request: %s", signing_error)
9797
else:
98-
_logger.error("SigV4 authentication headers not injected to export spans to %s endpoint.", self._endpoint)
98+
_logger.debug("botocore is not installed. Failed to sign request to export traces to: %s", self._endpoint)
9999

100100
return super()._export(serialized_data)

0 commit comments

Comments
 (0)