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: updated prisma instrumentation to parse prisma datamodel with internal package #1765

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

bizob2828
Copy link
Member

Description

We had issues in the past with parsing the prisma connection string and provider. In #1634 I moved it to parsing the schema with a 3rd party DSL parser. I reached out to the prisma contributors and asked to re-expose getConfig. But they mentioned just trying out the wasm package. I made this dep optional because not everyone uses prisma and it requires your build system to be configured to build node packages.

@mrickard mrickard self-assigned this Aug 28, 2023
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Merging #1765 (6e1d5cf) into main (25f2bd8) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1765      +/-   ##
==========================================
- Coverage   96.83%   96.83%   -0.01%     
==========================================
  Files         198      198              
  Lines       38789    38766      -23     
==========================================
- Hits        37562    37539      -23     
  Misses       1227     1227              
Flag Coverage Δ
integration-tests-16.x 79.05% <ø> (ø)
integration-tests-18.x 79.05% <ø> (+<0.01%) ⬆️
integration-tests-20.x 79.06% <ø> (+0.01%) ⬆️
unit-tests-16.x 91.39% <100.00%> (-0.01%) ⬇️
unit-tests-18.x 91.37% <100.00%> (-0.01%) ⬇️
unit-tests-20.x 91.37% <100.00%> (-0.01%) ⬇️
versioned-tests-16.x 75.59% <100.00%> (-0.06%) ⬇️
versioned-tests-18.x 75.59% <100.00%> (-0.06%) ⬇️
versioned-tests-20.x 75.60% <100.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
lib/instrumentation/@prisma/client.js 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bizob2828 bizob2828 merged commit 48079b3 into main Aug 28, 2023
42 checks passed
@bizob2828 bizob2828 deleted the prisma-instrumentation-fix branch August 28, 2023 17:09
@github-actions github-actions bot mentioned this pull request Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants