Skip to content

Commit 811f045

Browse files
committed
fix flake8
1 parent 9af97b7 commit 811f045

File tree

1 file changed

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

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ 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 "
126-
"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"
126+
" or configure API Gateway to trigger this Lambda function as a pure proxy. "
127+
"Otherwise, generated spans will have an invalid (empty) parent context."
127128
)
128129
if not isinstance(headers, dict):
129130
headers = {}
@@ -357,8 +358,8 @@ def _instrumented_lambda_handler_call( # noqa pylint: disable=too-many-branches
357358
logger.exception("TracerProvider failed to flush traces")
358359
else:
359360
logger.warning(
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."
361+
"TracerProvider was missing `force_flush` method. This is necessary in case of a"
362+
" Lambda freeze and would exist in the OTel SDK implementation."
362363
)
363364

364365
_meter_provider = meter_provider or get_meter_provider()
@@ -372,8 +373,8 @@ def _instrumented_lambda_handler_call( # noqa pylint: disable=too-many-branches
372373
logger.exception("MeterProvider failed to flush metrics")
373374
else:
374375
logger.warning(
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."
376+
"MeterProvider was missing `force_flush` method. This is necessary in"
377+
" case of a Lambda freeze and would exist in the OTel SDK implementation."
377378
)
378379

379380
if exception is not None:

0 commit comments

Comments
 (0)