Skip to content

Commit

Permalink
fix(instrumentation-lambda): soften "unable to init" message and demo…
Browse files Browse the repository at this point in the history
…te to diag.debug (#1836)


Co-authored-by: Trent Mick <[email protected]>
  • Loading branch information
beggers and trentm authored Dec 1, 2023
1 parent 1c2e8b2 commit fb80783
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export class AwsLambdaInstrumentation extends InstrumentationBase {

// _HANDLER and LAMBDA_TASK_ROOT are always defined in Lambda but guard bail out if in the future this changes.
if (!taskRoot || !handlerDef) {
diag.error(
'Unable to initialize instrumentation for lambda. Cannot identify lambda handler or task root.',
this._diag.debug(
'Skipping lambda instrumentation: no _HANDLER/lambdaHandler or LAMBDA_TASK_ROOT.',
{ taskRoot, handlerDef }
);
return [];
Expand Down

0 comments on commit fb80783

Please sign in to comment.