Skip to content

Commit 9af97b7

Browse files
committed
fix flake8
1 parent 75e5b82 commit 9af97b7

File tree

1 file changed

+6
-3
lines changed
  • lambda-layer/src/opentelemetry/instrumentation/aws_lambda

1 file changed

+6
-3
lines changed

lambda-layer/src/opentelemetry/instrumentation/aws_lambda/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def _default_event_context_extractor(lambda_event: Any) -> Context:
122122
headers = lambda_event["headers"]
123123
except (TypeError, KeyError):
124124
logger.debug(
125-
"Extracting context from Lambda Event failed: either enable X-Ray active tracing or configure API Gateway to trigger this Lambda function as a pure proxy. Otherwise, generated spans will have an invalid (empty) parent context."
125+
"Extracting context from Lambda Event failed: either enable X-Ray active tracing or configure API Gateway to trigger "
126+
"this Lambda function as a pure proxy. Otherwise, generated spans will have an invalid (empty) parent context."
126127
)
127128
if not isinstance(headers, dict):
128129
headers = {}
@@ -356,7 +357,8 @@ def _instrumented_lambda_handler_call( # noqa pylint: disable=too-many-branches
356357
logger.exception("TracerProvider failed to flush traces")
357358
else:
358359
logger.warning(
359-
"TracerProvider was missing `force_flush` method. This is necessary in case of a Lambda freeze and would exist in the OTel SDK implementation."
360+
"TracerProvider was missing `force_flush` method. This is necessary in case of a Lambda freeze and would exist "
361+
"in the OTel SDK implementation."
360362
)
361363

362364
_meter_provider = meter_provider or get_meter_provider()
@@ -370,7 +372,8 @@ def _instrumented_lambda_handler_call( # noqa pylint: disable=too-many-branches
370372
logger.exception("MeterProvider failed to flush metrics")
371373
else:
372374
logger.warning(
373-
"MeterProvider was missing `force_flush` method. This is necessary in case of a Lambda freeze and would exist in the OTel SDK implementation."
375+
"MeterProvider was missing `force_flush` method. This is necessary in case of a Lambda freeze and would exist in"
376+
" the OTel SDK implementation."
374377
)
375378

376379
if exception is not None:

0 commit comments

Comments
 (0)