Skip to content

Commit 4cafe6b

Browse files
authored
Fix typo in aws-lambda plugin (open-telemetry#1300)
1 parent a0003e7 commit 4cafe6b

File tree

1 file changed

+3
-3
lines changed
  • plugins/node/opentelemetry-instrumentation-aws-lambda

1 file changed

+3
-3
lines changed

plugins/node/opentelemetry-instrumentation-aws-lambda/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ const { AwsLambdaInstrumentation } = require('@opentelemetry/instrumentation-aws
6060

6161
new AwsLambdaInstrumentation({
6262
requestHook: (span, { event, context }) => {
63-
span.setAttributes('faas.name', context.functionName);
63+
span.setAttribute('faas.name', context.functionName);
6464
},
6565
responseHook: (span, { err, res }) => {
66-
if (err instanceof Error) span.setAttributes('faas.error', err.message);
67-
if (res) span.setAttributes('faas.res', res);
66+
if (err instanceof Error) span.setAttribute('faas.error', err.message);
67+
if (res) span.setAttribute('faas.res', res);
6868
}
6969
})
7070
```

0 commit comments

Comments
 (0)