We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39cad37 commit 2d7b5f1Copy full SHA for 2d7b5f1
detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsLambdaDetectorSync.ts
@@ -19,6 +19,7 @@ import {
19
IResource,
20
Resource,
21
ResourceAttributes,
22
+ ResourceDetectionConfig,
23
} from '@opentelemetry/resources';
24
25
/**
@@ -27,7 +28,7 @@ import {
27
28
* Returns an empty Resource if detection fails.
29
*/
30
export class AwsLambdaDetectorSync implements DetectorSync {
- detect(): IResource {
31
+ detect(_config?: ResourceDetectionConfig): IResource {
32
const functionName = process.env.AWS_LAMBDA_FUNCTION_NAME;
33
if (!functionName) {
34
return Resource.empty();
0 commit comments