Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(client): Stop bundling @opentelemetry packages (#19039)
Removes all @opentelemetry packages from client bundle. Client would now interact with OTEL throgh type-only `TracingHelper` dependency. Actual implementation is provided by `@prisma/instrumentation` package. Technically it works like this: - `@prisma/internals` package contains type definition for `TracingHelper` interface. This interface describes all OTEL functions client might need. `runInChildSpan`, `getTraceParent` and `createSpan` functions moved there. - `@prisma/client` contains no-op `TracingHelper` implementation. It will be used if tracing is not active (either through disabled preview feature or through absence of instrumentation package). - `@prisma/instrumentation` contains active implementation of `TracingHelper`. It is set on a global `PRISMA_INSTRUMENTATION` instead of the config. When active, client will use that implementation instead of no-op one. Close prisma/client-planning#340
- Loading branch information
Showing
25 changed files
with
1,008 additions
and
852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.