feat(client): Adjust some of the tracing spans and add more internal spans(#19139)

Merging
feat/inventory-spans
into
main
-2%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
4
NEW
0
DROPPED
0

Benchmarks

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
-1%
9.4 s
9.5 s
typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
-6%
99.2 ms
105 ms
client generation 100 models with relations
packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts::typescript::client generation 100 models with relations
0%
54.3 s
54.4 s
getPlatform
packages/get-platform/bench/get-platform.bench.ts::get-platform::getPlatform
-1%
71.4 ms
72.5 ms

Commits

Click on a commit to change the comparison range
fix(clientExtensions): Include composites into default selection (#19517) * fix(clientExtensions): Include composites into default selection Only scalars were included into the default selection when extensions are on. Fixed by adding a separate section for composites in a payload type and changing default selection to `scalars & composites`. After fixing that, another problem with composites got uncovered: when client extensions are enabled, delegate types for composites are broken. Since fluent api does not work for composites (and was not inteded too), generating delegate types was a mistake to begin with. Fixed by removing delegate types and fluent getters for composites. I will not call it a breaking change since again, this never worked and our types were just incorrect. Fix #17388 * Snapshots * Restore original formatting
base
00fc89a
6 months ago by SevInf
+22%
feat(client): Adjust some of the tracing spans and add more internal spans Adjust `connect` span to include the time spent waiting for the library loading. Adds following internal spans: - `instantiateLibrary` - overarching span over resolving openssl version, looking up and loading library and isntantiatiating engine isntance. - `getPlatform` - OS/openssl version detection - `engineConstructor` - creation of engine instaance after library have been loaded. - `dmmf` - overarching span for all dmmf loading routines - `getDmmf` - `getDmmf` call, as measured from the client - `parseDmmf` - parsing dmmf string - `processDmmf` - constructing `DMMFHelper` class - `processResults` - unpacking/deserializing engine response after we got it from the engine.
3bc520c
8 months ago by SevInf
-24%
feat(client): Adjust some of the tracing spans and add more internal spans Adjust `connect` span to include the time spent waiting for the library loading. Adds following internal spans: - `instantiateLibrary` - overarching span over resolving openssl version, looking up and loading library and isntantiatiating engine isntance. - `getPlatform` - OS/openssl version detection - `engineConstructor` - creation of engine instaance after library have been loaded. - `dmmf` - overarching span for all dmmf loading routines - `getDmmf` - `getDmmf` call, as measured from the client - `parseDmmf` - parsing dmmf string - `processDmmf` - constructing `DMMFHelper` class - `processResults` - unpacking/deserializing engine response after we got it from the engine.
2b366f4
8 months ago by SevInf
ResourcesHomePricingDocsBlogGitHub
Copyright © 2023 CodSpeed Technology SAS. All rights reserved.