Hey <!everyone> :v: :prisma-cool: We just release...
# prisma-whats-new
a
Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
4.2.0
prisma rainbow ๐Ÿ“ˆ Prisma Client tracing support (Preview) Weโ€™re excited to announce Preview support for tracing in Prisma Client! ๐ŸŽ‰ Tracing allows you to track requests as they flow through your application. This is especially useful for debugging distributed systems where each request can span multiple services. Read more about tracing in our announcement post and learn more in our documentation on how to start working with tracing. Try it out and let us know what you think. ๐ŸŽš๏ธ Isolation levels for interactive transactions We have improved the
interactiveTransactions
Preview feature with the support for defining the isolation level of an interactive transaction. To set the transaction isolation level, use the
isolationLevel
option in the second parameter of the API. For example:
Copy code
await prisma.$transaction(
  async (prisma) => {
    // Your transaction...
  },
  {
    isolationLevel: Prisma.TransactionIsolationLevel.Serializable,
    maxWait: 5000,
    timeout: 10000,
  }
)
Learn more about it in our documentation. Try it out, and let us know what you think in this GitHub issue. โœ๏ธ Renaming of Prisma Client Metrics In this release, weโ€™ve renamed the metrics โ€” counters, gauges, and histograms โ€” returned from
prisma.$metrics()
to make it a little easier to understand at a glance. Give Prisma Client
metrics
a shot, and let us know what you think in this GitHub issue. To learn more, check out our documentation. ๐Ÿ’… Syntax highlighting for raw queries in Prisma Client This release adds syntax highlighting support for raw SQL queries when using `$queryRaw``` and `$executeRaw```. This is made possible using Prismaโ€™s VS Code extension. Note: Syntax highlighting currently doesnโ€™t work with when using parentheses,
()
,
$queryRaw()
,
$executeRaw()
,
$queryRawUnsafe()
, and
$executeRawUnsafe()
. If you are interested in having this supported, let us know in this GitHub issue. ๐Ÿ“š Learn more in the release notes For more info and links to documentation, you can read the release notes. ๐ŸŒŸ Help us spread the word about Prisma ๐ŸŒŸ To help spread the word about Prisma, weโ€™d very much appreciate it if you would star the repo ๐ŸŒŸ And if youโ€™re excited about the features in this weekโ€™s release, then help us and share your excitement on Twitter. ๐Ÿ“ฐ Join us on Thursday for the โ€œWhatโ€™s new in Prismaโ€ livestream This week, @Tasin Ishmam and I will discuss the latest release and other news from the Prisma ecosystem in a

livestream on YouTubeโ–พ

this Thursday at 5 pm Berlin | 8 am San Francisco.
๐Ÿš€ 50
๐Ÿ‘‹ 1
โœ… 1
๐Ÿ‡ง๐Ÿ‡ท 1
๐ŸŒฟ 1
๐Ÿ‡ง๐Ÿ‡ฏ 1
๐Ÿ˜ป 9
๐Ÿ‡บ๐Ÿ‡ฟ 1
๐Ÿฟ๏ธ 4
๐Ÿ‡ฐ๐Ÿ‡ช 2
4๏ธโƒฃ 2
2๏ธโƒฃ 2
๐Ÿ‡ฆ๐Ÿ‡บ 1
๐Ÿ‡ณ๐Ÿ‡ฌ 2
๐Ÿ”ฅ 9
๐ŸŒŸ 8
๐Ÿ’ฅ 6
๐Ÿ”ฎ 6
๐Ÿ€ 9
catjam 4
๐Ÿฉ 2
๐Ÿ‡จ๐Ÿ‡ฑ 1
0๏ธโƒฃ 2
prisma cool 17
๐Ÿค– 9
๐Ÿ‡ฐ๐Ÿ‡ท 11
๐Ÿ 9
โœจ 6
๐Ÿณ๏ธโ€๐ŸŒˆ 7
๐Ÿ‡ณ๐Ÿ‡ด 1
๐ŸŽฉ 3
godmode 1
๐Ÿ‘ 2
๐Ÿ˜ 1
prisma rainbow 15
๐Ÿ“ฝ๏ธ 6
fast parrot 9
๐ŸŽƒ 9
๐Ÿ‡ท๐Ÿ‡ด 7
๐ŸŽŠ 7
america parrot 5
๐Ÿ‡ณ๐Ÿ‡ต 1
๐Ÿ‡ซ๐Ÿ‡ท 2
๐Ÿ‡ฎ๐Ÿ‡ท 1
๐Ÿฆœ 35
โญ 12
๐Ÿ˜Ž 6
๐Ÿ‡ฟ๐Ÿ‡ฒ 1
๐Ÿ‡ฏ๐Ÿ‡ต 9