Skip to content

Commit 95ab514

Browse files
committed
add docstring for set remote environment method
1 parent d3b7e6b commit 95ab514

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ def _set_remote_type_and_identifier(span: ReadableSpan, attributes: BoundedAttri
499499

500500

501501
def _set_remote_environment(span: ReadableSpan, attributes: BoundedAttributes) -> None:
502+
"""
503+
Remote environment is used to identify the environment of downstream services. Currently only
504+
set to "lambda:default" for Lambda Invoke operations when aws-api system is detected.
505+
"""
502506
# We want to treat downstream Lambdas as a service rather than a resource because
503507
# Application Signals topology map gets disconnected due to conflicting Lambda Entity
504508
# definitions

0 commit comments

Comments
 (0)