Skip to content

Commit 4b51e60

Browse files
authored
fix(instrumentation-aws-lambda): Change endSpan error-logs for forceflush into debug-logs (#2753)
1 parent b520d04 commit 4b51e60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/node/opentelemetry-instrumentation-aws-lambda/src/instrumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,14 +382,14 @@ export class AwsLambdaInstrumentation extends InstrumentationBase<AwsLambdaInstr
382382
if (this._traceForceFlusher) {
383383
flushers.push(this._traceForceFlusher());
384384
} else {
385-
diag.error(
385+
diag.debug(
386386
'Spans may not be exported for the lambda function because we are not force flushing before callback.'
387387
);
388388
}
389389
if (this._metricForceFlusher) {
390390
flushers.push(this._metricForceFlusher());
391391
} else {
392-
diag.error(
392+
diag.debug(
393393
'Metrics may not be exported for the lambda function because we are not force flushing before callback.'
394394
);
395395
}

0 commit comments

Comments
 (0)