Shutdown the TracerProvider instead of just closing the tracer

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • N&O 2026-08-03
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This stops the trace exporter thread as well, preventing potential issues from the exporter thread running after tracing itself has been shutdown. This was found while investigating [BF-44775](https://jira.mongodb.org/browse/BF-44775), and theoretically could be the cause but I tried reproducing it in an integration test but wasn't successful. However, this change still makes the code more correct and robust.

            Assignee:
            Michael Nugent
            Reporter:
            Michael Nugent
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: