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

Query-related spans outside of prisma:engine:itx_runner are disconnected from the tree #21402

Open
aqrln opened this issue Oct 6, 2023 · 0 comments · May be fixed by prisma/prisma-engines#4336
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. tech/engines Issue for tech Engines. topic: tracing

Comments

@aqrln
Copy link
Member

aqrln commented Oct 6, 2023

When using interactive transactions, query-related spans that are not children of prisma:engine:itx_runner (for now only prisma:engine:response_json_serialization but more may be added in the future) are disconnected from the tree.

These prisma:engine:response_json_serialization on the screenshots below should be somewhere in the prisma:client:transaction tree, probably as children of prisma:client:operation since response JSON serialization happens outside of the iTX runner task.

image image
@aqrln aqrln added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. tech/engines Issue for tech Engines. team/client Issue for team Client. topic: tracing labels Oct 6, 2023
aqrln added a commit to prisma/prisma-engines that referenced this issue Oct 6, 2023
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Oct 9, 2023
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Oct 18, 2023
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Oct 25, 2023
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Nov 24, 2023
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Nov 28, 2023
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Dec 10, 2023
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Dec 20, 2023
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Dec 20, 2023
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Jan 11, 2024
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Jan 12, 2024
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Jan 18, 2024
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
@aqrln aqrln self-assigned this Jan 19, 2024
@aqrln aqrln added bug/2-confirmed Bug has been reproduced and confirmed. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. labels Jan 19, 2024
aqrln added a commit to prisma/prisma-engines that referenced this issue Feb 5, 2024
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Feb 14, 2024
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
aqrln added a commit to prisma/prisma-engines that referenced this issue Apr 9, 2024
Prevent `prisma:engine:response_json_serialization` span from being
orphan when using interactive transactions.

This check made sense in the past in principle when there were no child
spans outside of the iTX runner, and the `prisma:engine` span didn't
cover the whole `Engine::query` method duration, but now it makes more
sense to always create it.

Fixes: prisma/prisma#21402
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. tech/engines Issue for tech Engines. topic: tracing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant