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(qe-wasm): make traces consistent with node-api engine #5090

Merged
merged 6 commits into from
Dec 17, 2024

Conversation

aqrln
Copy link
Member

@aqrln aqrln commented Dec 16, 2024

  • Expand the scope of the prisma:engine:query span to contain both the request handler and the response serialization, identical to the Node-API engine, preventing prisma:engine:response_json_serialization from being orphaned outside the trace. This is a follow up to fix(query-engine-wasm): add response_json_serialization span #5089.

  • Add missing future instrumentation in start_transaction, commit_transaction, rollback_transaction.

  • Strip traceparents from db.query.text attribute with driver adapters as well, and not only native connectors.

Expand the scope of the `prisma:engine:query` span to contain both the
request handler and the response serialization, identical to the
Node-API engine, preventing `prisma:engine:response_json_serialization`
from being orphaned outside the trace.

This is a follow up to #5089.
@aqrln aqrln requested a review from a team as a code owner December 16, 2024 22:26
@aqrln aqrln requested review from jacek-prisma and removed request for a team December 16, 2024 22:26
@aqrln aqrln added this to the 6.1.0 milestone Dec 16, 2024
Copy link

codspeed-hq bot commented Dec 16, 2024

CodSpeed Performance Report

Merging #5090 will not alter performance

Comparing fixup-wasm-response-json-serialization-span (4573954) with main (40232c9)

Summary

✅ 11 untouched benchmarks

Copy link
Contributor

github-actions bot commented Dec 16, 2024

WASM Query Engine file Size

Engine This PR Base branch Diff
Postgres 2.081MiB 2.080MiB 1.186KiB
Postgres (gzip) 836.457KiB 835.883KiB 587.000B
Mysql 2.045MiB 2.045MiB 558.000B
Mysql (gzip) 822.750KiB 821.810KiB 962.000B
Sqlite 1.943MiB 1.943MiB 685.000B
Sqlite (gzip) 781.841KiB 781.261KiB 594.000B

@aqrln aqrln changed the title fix(query-engine-wasm): expand scope of prisma:engine:query span fix(qe-wasm): make traces consistent with node-api engine Dec 16, 2024
@jkomyno jkomyno merged commit caaf939 into main Dec 17, 2024
380 checks passed
@aqrln aqrln deleted the fixup-wasm-response-json-serialization-span branch December 17, 2024 09:27
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.

2 participants