This commit is contained in:
Rafael Muñoz
2023-03-16 12:38:13 +01:00
committed by GitHub
parent 88783f9632
commit fbec281553

View File

@ -101,7 +101,7 @@ class Boto3SQSInstrumentor(BaseInstrumentor):
class ContextableList(list):
"""
Since the classic way to process SQS messages is using a `for` loop, without a well defined scope like a
callback - we are doing something similar to the instrumentaiton of Kafka-python and instrumenting the
callback - we are doing something similar to the instrumentation of Kafka-python and instrumenting the
`__iter__` functions and the `__getitem__` functions to set the span context of the addressed message. Since
the return value from an `SQS.ReceiveMessage` returns a builtin list, we cannot wrap it and change all of the
calls for `list.__iter__` and `list.__getitem__` - therefore we use ContextableList. It is bound to the