Skip to content

opentelemetry-instrumentation-aws-lambda silently fails to instrument files with the extension.cjs #1440

@Ankcorn

Description

@Ankcorn

What version of OpenTelemetry are you using?

Will be upgrading to the latest
"@opentelemetry/api": "^1.3.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.34.0",
"@opentelemetry/instrumentation": "^0.34.0",
"@opentelemetry/instrumentation-aws-lambda": "^0.34.0",
"@opentelemetry/instrumentation-aws-sdk": "^0.33.0",
"@opentelemetry/instrumentation-http": "^0.34.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@opentelemetry/sdk-trace-node": "^1.8.0",

What version of Node are you using?

v16.x

What did you do?

https://github.com/baselime/lambda-node-opentelemetry-serverless-stack-v2
Here is a repo reproducing the issue

What did you expect to see?

Traces sent

What did you see instead?

lambda handler is not instrumented

Additional context

issue is this line of code does not handle all possible options supported by lambda node runtime

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:p2Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions