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

Fix tracing of close cursor #14

Merged
merged 1 commit into from
May 7, 2024
Merged

Fix tracing of close cursor #14

merged 1 commit into from
May 7, 2024

Conversation

bonnefoa
Copy link
Collaborator

@bonnefoa bonnefoa commented May 7, 2024

What does this PR do?

Closing a cursor will directly call ExecutorFinish. We need to create the top span for those cases.

Also, as ExecutorEnd will be called, we will try to generate spans from planstate. However, traced planstates won't be available and representing planstate spans for cursor execution doesn't fit our current model. To fix this, we disable full query instrumentation for cursors.

Fixes #10

Closing a cursor will directly call ExecutorFinish. We need to create
the top span for those cases.

Also, as ExecutorEnd will be called, we will try to generate spans from
planstate. However, traced planstates won't be available and representing
planstate spans for cursor execution doesn't fit our current model. To
fix this, we disable full query instrumentation for cursors.

Fixes #10
@bonnefoa bonnefoa merged commit fef1d1b into main May 7, 2024
3 checks passed
@bonnefoa bonnefoa deleted the fix-cursor-close branch May 7, 2024 15:14
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.

Assertion failure with cursor
1 participant