Skip to content

ext/pymongo instrumentation sets Status description to a dictionary instead of a string #641

Closed
@codeboten

Description

@codeboten

Describe your environment
Python 3.8.2 Docker container environment

Steps to reproduce

  1. setup opentelemetry collector
  2. run pymongo example configured to export to opentelemetry collector

What is the expected behavior?
Spans are exported to my opentelemetry collector

What is the actual behavior?
No spans were reported and no error was visible

Additional context
The pymongo instrumentation sets the description argument to a dict here:

span.set_status(Status(StatusCanonicalCode.OK, event.reply))

This causes the otcollector exporter throws an exception on, which has been addressed in #640

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions