Skip to content

Commit e046683

Browse files
committed
move lambda app signals remote environment env var to aws-opentelemetry-configurator.ts
1 parent ec07a04 commit e046683

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import {
3333
SERVICE_METRIC,
3434
} from './metric-attribute-generator';
3535
import { SqsUrlParser } from './sqs-url-parser';
36+
import { LAMBDA_APPLICATION_SIGNALS_REMOTE_ENVIRONMENT } from './aws-opentelemetry-configurator';
3637

3738
// Does not exist in @opentelemetry/semantic-conventions
3839
const _SERVER_SOCKET_ADDRESS: string = 'server.socket.address';
@@ -50,7 +51,6 @@ const _GRAPHQL_OPERATION_TYPE: string = 'graphql.operation.type';
5051
// Special DEPENDENCY attribute value if GRAPHQL_OPERATION_TYPE attribute key is present.
5152
const GRAPHQL: string = 'graphql';
5253

53-
const LAMBDA_APPLICATION_SIGNALS_REMOTE_ENVIRONMENT: string = 'LAMBDA_APPLICATION_SIGNALS_REMOTE_ENVIRONMENT';
5454
const LAMBDA_INVOKE_OPERATION: string = 'Invoke';
5555

5656
// Normalized remote service names for supported AWS services

aws-distro-opentelemetry-node-autoinstrumentation/src/aws-opentelemetry-configurator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const FORMAT_OTEL_UNSAMPLED_TRACES_BINARY_PREFIX = 'T1U';
7575
// Follow Python SDK Impl to set the max span batch size
7676
// which will reduce the chance of UDP package size is larger than 64KB
7777
const LAMBDA_SPAN_EXPORT_BATCH_SIZE = 10;
78+
export const LAMBDA_APPLICATION_SIGNALS_REMOTE_ENVIRONMENT: string = 'LAMBDA_APPLICATION_SIGNALS_REMOTE_ENVIRONMENT';
7879

7980
/**
8081
* Aws Application Signals Config Provider creates a configuration object that can be provided to

0 commit comments

Comments
 (0)