Skip to content

Conversation

@C-Loftus
Copy link
Member

Add open telemetry tracing so we can understand to better optimize pgedr as the codebase grows in size

This integration uses settings that should be relatively well optimized for production

  • the batch span provider sends groups of spans together after an interval, not one at a time
  • the sql queries are compiled and set as span attributes without filling in the interpolated values; it only shows the high level query (i.e. the main structure of the SQL without specific ID values filled in)

Example:
image

@C-Loftus C-Loftus requested a review from webb-ben November 19, 2025 14:41
@C-Loftus C-Loftus linked an issue Nov 19, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add opentelemetry instrumentation

2 participants