Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify query_id and replace trace_context by direct use of traceparent #20

Merged
merged 9 commits into from
Jun 12, 2024

Conversation

bonnefoa
Copy link
Collaborator

No description provided.

We can grab query_id from Query or PlannedStmt in most cases. The only
place where we need to provide a queryId is for the commit span. Since
it only happens at level 0, we just need to save query_id during
ExecutorFinish to be reused in pg_tracing_xact_callback.
With the removal of query_id, trace_context struct only had traceparent.
We can thus replace all trace_context by traceparent directly.
@bonnefoa bonnefoa merged commit 947dd6f into main Jun 12, 2024
3 checks passed
@bonnefoa bonnefoa deleted the simplify-query-id branch June 12, 2024 07:49
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.

None yet

1 participant