Has anyone been able to instrument prisma queries ...
# orm-help
m
Has anyone been able to instrument prisma queries with AWS X-ray? Wondering if there's a place to hook in to queries to add timing (and ideally query being executed metadata) to x-ray segments Here's someone doing it for TypeORM as an example
n
Hey Mischa ๐Ÿ‘‹ This article might be helpful to you. It discusses how to trace SQL queries in Prisma with AWS X-Ray SDK
m
thanks!
I notice that the
params
arg is supposed to be JSON but it doesn't serialize datetimes properly:
"params":"[2022-03-30 11:52:45.302 UTC,\"1.0\",\"0f8b1ad3-8c7a-4da9-bdfd-0f326e061caf\",\"467f19ec-3589-424f-b512-07e62003eee1\"]"
the datetime should be quoted
๐Ÿ‘€ 1
n
Hmm, thatโ€™s true, could you create a GitHub Issue for this? The engineering team should be able to look into this.
m