Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record span events for fetch network events #111

Open
bripkens opened this issue Aug 8, 2024 · 0 comments
Open

Record span events for fetch network events #111

bripkens opened this issue Aug 8, 2024 · 0 comments

Comments

@bripkens
Copy link
Contributor

bripkens commented Aug 8, 2024

Why

It can be really helpful to understand what contributes to fetch request times:

  • DNS lookup?
  • Connection establishment/TLS?
  • TTFB?

What

The official OTel fetch instrumentation for the web has the capability to
attach network events to fetch spans. It would be really nice if that
would be supported by @vercel/otel too:

https://github.com/open-telemetry/opentelemetry-js/blob/01cea7caeb130142cc017f77ea74834a35d0e8d6/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts#L112C11-L112C31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant