Skip to content

Emit a Postgres style JSON plan via db.query.plan #25

Closed

Description

@adriangb

Is your feature request related to a problem or challenge?

This is something we do internally with our tracing / instrumentation and it is super helpful: there's lots of tools for visualizing this plan format, including DataDog (I think).

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. geoffreyclaude commented on Oct 10, 2025

    @geoffreyclaude
    Collaborator

    @adriangb I'm not sure I fully understand: do you want to tag the root span with the JSON plan?
    Would you mind sharing an example of what you do internally so its clearer?

  2. geoffreyclaude commented on May 29, 2026

    @geoffreyclaude
    Collaborator

    Implementation on going in upstream DataFusion in apache/datafusion#21767

  3. adriangb commented on May 29, 2026

    @adriangb
    Author

    I still think it would be datafusion-tracings responsibility to get the pgjson from the executed plan and add it as an attribute to the top level span.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions