Add support for Open Telemetry/Micrometer Tracing

XMLWordPrintableJSON

    • Type: Epic
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Add support for Micrometer Tracing to MongoDB Java Driver
    • Java Drivers
    • None
    • Hide
      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?
      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • To Do
    • 7
    • 7
    • 0
    • 100
    • 0
    • None
    • Hide

      Engineer(s): Nabil Hachicha
      2025-06-23: Updated end date to 2025-07-04

      Rationale for any project delays/change in end date/etc, if applicable

      What was accomplished since the last update?

      What's the focus over the next two weeks?


      Engineer(s): Nabil Hachicha
      2025-06-09:

      • Draft PR in review, validating concepts to add tracing spans for Transactions, Operations and Commands.
      • Using unified test format for tracing Spans assertions
      • Design review for OTel spec, we want the Java integration of Micrometer to adhere to the upcoming spec and become the second reference implementation

      What's the focus over the next two weeks?


      Show
      Engineer(s): Nabil Hachicha 2025-06-23: Updated end date to 2025-07-04 Rationale for any project delays/change in end date/etc, if applicable What was accomplished since the last update? Finalising design review ( completed ) Adding Tracing Spans for transactions in https://github.com/mongodb/mongo-java-driver/pull/1695 . What's the focus over the next two weeks? Working on https://jira.mongodb.org/browse/DRIVERS-3201 (update unified test runner to be used for tracing tests) Engineer(s): Nabil Hachicha 2025-06-09: Draft PR in review, validating concepts to add tracing spans for Transactions, Operations and Commands. Using unified test format for tracing Spans assertions Design review for OTel spec, we want the Java integration of Micrometer to adhere to the upcoming spec and become the second reference implementation What's the focus over the next two weeks? Work on https://jira.mongodb.org/browse/DRIVERS-3201 before starting to add tracing Spans for every operation (and subsequent commands)
    • 6
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In DRIVERS-719, we plan to support client-side tracing in line with the standards defined by OpenTelemetry. Separately, we have heard from users that there is a desire for Micrometer support. Some are coming from Spring environments, and likely to use Micrometer. Our goal is to support both Micrometer and OpenTelemetry for Java users, as both are in use today.

      Micrometer Tracing is a facade over the OpenTelemetry tracer, and is meant to add little to no overhead to the tracing collection activity. There is a bridge to ship spans to OpenTelemetry – micrometer-tracing-bridge-otel – that we can possibly build off of for OpenTelemetry support down the line.

            Assignee:
            Nabil Hachicha
            Reporter:
            Alex Bevilacqua
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              12 weeks, 1 day
              None