Skip to content

Commit 0584a66

Browse files
committed
add docstring for set remote environment method
1 parent 2d85020 commit 0584a66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/src/aws-metric-attribute-generator.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ export class AwsMetricAttributeGenerator implements MetricAttributeGenerator {
512512
}
513513
}
514514

515+
/**
516+
* Remote environment is used to identify the environment of downstream services. Currently only
517+
* set to "lambda:default" for Lambda Invoke operations when aws-api system is detected.
518+
*/
515519
private static setRemoteEnvironment(span: ReadableSpan, attributes: Attributes): void {
516520
// We want to treat downstream Lambdas as a service rather than a resource because
517521
// Application Signals topology map gets disconnected due to conflicting Lambda Entity

0 commit comments

Comments
 (0)