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 41d0d4b commit aa60faeCopy full SHA for aa60fae
plugins/node/opentelemetry-instrumentation-aws-lambda/src/instrumentation.ts
@@ -157,11 +157,16 @@ export class AwsLambdaInstrumentation extends InstrumentationBase<AwsLambdaInstr
157
if (isWrapped(moduleExports[functionName])) {
158
this._unwrap(moduleExports, functionName);
159
}
160
+ // try {
161
this._wrap(
162
moduleExports,
163
functionName,
164
this._getHandler(lambdaStartTime)
165
);
166
+ // } catch (error) {
167
+ // // _wrap is not error safe. We do not want the instrumented lambda to fail if wrapping fails.
168
+ // diag.error('patching handler function failed', error);
169
+ // }
170
return moduleExports;
171
},
172
(moduleExports?: LambdaModule) => {
0 commit comments