You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1555 introduced a bug when using pymongo sessions, the instrumentor now outputs the message
Invalid type dict in attribute value sequence. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or None
while exiting the session.
After some debugging, I realized that this id triggered by the "endSessions" command, that triggers the CommandStartedEvent with a SON command like this:
#1555 introduced a bug when using pymongo sessions, the instrumentor now outputs the message
while exiting the session.
After some debugging, I realized that this id triggered by the "endSessions" command, that triggers the CommandStartedEvent with a SON command like this:
and the
collection
variable becomes a list of dictionaries instead of the expected string.Describe your environment
Steps to reproduce
What is the expected behavior?
span.set_attribute(SpanAttributes.DB_MONGODB_COLLECTION)
should not be called if thecollection
variable is not a stringWhat is the actual behavior?
The
set_attribute
method is called and the message above is output in the console.Additional context
Another solution would be to check for the pymongo command names that doesn't have/need a collection name
The text was updated successfully, but these errors were encountered: