Skip to content

Commit 9efab76

Browse files
style: fix black formatting for ALB lint CI
Collapse http_url assignment and reformat TestAlbInferredSpanWrapper tests so check_format.sh passes. FRSLES-851 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 6986c3a commit 9efab76

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

datadog_lambda/tracing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -978,9 +978,7 @@ def create_inferred_span_from_alb_event(event, context):
978978
# fall back to it when DD_TRACE_AWS_SERVICE_REPRESENTATION_ENABLED is on.
979979
service_name = determine_service_name(service_mapping, host, "lambda_alb", host)
980980

981-
http_url = (
982-
"%s://%s%s" % (proto, host, path) if host and path is not None else None
983-
)
981+
http_url = "%s://%s%s" % (proto, host, path) if host and path is not None else None
984982
if method and path is not None:
985983
resource = f"{method} {path}"
986984
else:

tests/test_wrapper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,9 @@ def setUp(self):
10101010
patch("ddtrace.internal.remoteconfig.worker.RemoteConfigPoller").start()
10111011
wrapper.datadog_lambda_wrapper._force_wrap = True
10121012

1013-
patcher = patch("datadog.threadstats.reporters.HttpReporter.flush_distributions")
1013+
patcher = patch(
1014+
"datadog.threadstats.reporters.HttpReporter.flush_distributions"
1015+
)
10141016
self.mock_flush_distributions = patcher.start()
10151017
self.addCleanup(patcher.stop)
10161018

0 commit comments

Comments
 (0)