You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py
# NOTE: `force_flush` before function quit in case of Lambda freeze.
379
-
# Assumes we are using the OpenTelemetry SDK implementation of the
380
-
# `MeterProvider`.
381
-
_meter_provider.force_flush(rem)
367
+
_tracer_provider.force_flush(flush_timeout)
382
368
exceptException: # pylint: disable=broad-except
383
-
logger.error(
384
-
"MeterProvider was missing `force_flush` method. This is necessary in case of a Lambda freeze and would exist in the OTel SDK implementation."
369
+
logger.exception(
370
+
f"TracerProvider failed to flush traces"
385
371
)
372
+
else:
373
+
logger.warning("TracerProvider was missing `force_flush` method. This is necessary in case of a Lambda freeze and would exist in the OTel SDK implementation.")
0 commit comments