Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #532 +/- ##
==========================================
+ Coverage 83.41% 83.49% +0.07%
==========================================
Files 37 37
Lines 1797 1805 +8
==========================================
+ Hits 1499 1507 +8
Misses 298 298 ☔ View full report in Codecov by Sentry. |
|
@EduardMcfly thanks for addressing the previous feedback! Can you please take a look at the failing workflows? |
|
looks like this PR has stalled for 2 years now, any chance this can be brought back up? can we rerun the checks to see what is the issue? |
I'm going to update my contribution, this version has worked great for me over the years. |
This commit adds a new package dependency for integrating AWS X-Ray with Prisma. Specifically, it adds the package "aws-xray-sdk-prisma" and sets its version to 3.5.0 in the package-lock.json file. Additionally, in the "capturePrisma" function in the "sdk_contrib/prisma/src/capturePrisma.ts" file, an error message is logged if no segment is provided in manual mode. In the unit tests for the "capturePrisma" function in the "sdk_contrib/prisma/test/unit/prisma.test.js" file, the Prisma client is now initialized with a segment, and the absence of a segment is properly handled and logged as an error. These changes ensure proper integration of AWS X-Ray with Prisma and improve error handling when manual mode is used without a segment.
* bumped typescript version * fixed ts errors
…elAction enum in utils.ts
…@prisma/client in package.json and package-lock.json
…support - Updated `.gitignore` to exclude test database files. - Modified ESLint configuration to disable quotes rule. - Refactored `captureActions` to handle empty model keys and improve segment naming. - Enhanced `capturePrisma` to support capturing actions for client methods starting with `$`. - Added SQLite support with a new Prisma schema for testing. - Updated unit tests to validate new functionality, including action capturing and database interactions.
…risma CLI and modify test script - Added Prisma CLI as a devDependency in both package.json and package-lock.json. - Updated the test script to include a database reset step before running tests.
…@prisma/client in package.json and package-lock.json
Add X-Ray plugin for Prisma
Add typing, unit tests, examples with automatic mode and manual mode
The package was published in @cosva-lab/aws-xray-sdk-prisma and its correct operation was verified.
Example timeline
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.