colinhacks / zod

TypeScript-first schema validation with static type inference
https://zod.dev
MIT License
31.53k stars 1.09k forks source link

OpenTelemetry support #3370

Open SwagiWagi opened 2 months ago

SwagiWagi commented 2 months ago

Hi, is there an opentelemetry instrumentation for the library? Specially spans for parse and transform.

colinhacks commented 2 months ago

There is not, though I'll leave this issue open to gauge interest in some system of "hooks" that could be used to support OpenTelemetry.

SwagiWagi commented 2 months ago

Thanks @colinhacks, will be appreciated. Once you build such a system I can add a PR to support OpenTelemetry spans.

extradosages commented 2 months ago

@colinhacks That sounds like a great API to add to the system 👍.