Skip to content

Commit

Permalink
Merge branch 'main' into unittest_attributes_propagating_span_processor
Browse files Browse the repository at this point in the history
  • Loading branch information
XinRanZhAWS committed Jan 31, 2024
2 parents aae7cf8 + 1fae4bb commit b2950c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _is_sqs_receive_message_consumer_span(span: ReadableSpan) -> bool:
instrumentation_scope: InstrumentationScope = span.instrumentation_scope

return (
_SQS_RECEIVE_MESSAGE_SPAN_NAME.casefold() == span.name.casefold()
(span.name is not None and _SQS_RECEIVE_MESSAGE_SPAN_NAME.casefold() == span.name.casefold())
and SpanKind.CONSUMER == span.kind
and instrumentation_scope is not None
and instrumentation_scope.name.startswith(_AWS_SDK_INSTRUMENTATION_SCOPE_PREFIX)
Expand Down

0 comments on commit b2950c2

Please sign in to comment.