Skip to content

Commit

Permalink
fix propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
emmettbutler committed May 1, 2024
1 parent 79272a6 commit 6d85245
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ddtrace/contrib/botocore/services/sqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,16 @@ def _patched_sqs_api_call(parent_ctx, original_func, instance, args, kwargs, fun
else:
call_name = trace_operation

child_of = parent_ctx.get_item("distributed_context")

if should_instrument:
with core.context_with_data(
"botocore.patched_sqs_api_call",
parent=parent_ctx,
span_name=call_name,
service=schematize_service_name("{}.{}".format(pin.service, endpoint_name)),
span_type=SpanTypes.HTTP,
child_of=child_of if child_of is not None else pin.tracer.context_provider.active(),
activate=True,
instance=instance,
args=args,
Expand Down

0 comments on commit 6d85245

Please sign in to comment.