Replies: 4 comments 6 replies
-
Mostly agree with everything here. My recommendation:
|
Beta Was this translation helpful? Give feedback.
-
Adding my two cents that any span that looks like this is effectively useless and confusing to me: |
Beta Was this translation helpful? Give feedback.
-
I was about to raise a separate discussion for this exact point! There is a small list of semantic attributes added by NextJS. I'm really missing |
Beta Was this translation helpful? Give feedback.
-
In case anybody was trying to figure out why |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
We are trying to adopt OpenTelemetry, however, there is a lot of potential to improve the data that is produced by Next.js telemetry. Currently, Next.js generates a lot of noise, and in some situations even wrong data.
What is the status quo?
GET /api/content
.GET /api/content/route
to requests toGET /api/content
orGET /api/content/error
when there was an error during the request.res.end()
is called.Proposal
I propose the following. Of course, this is up for discussion 😄:
/route
or/error
.res.end()
was called.fetch
API is instrumented whilehttp.request()
orhttp.get()
aren't.Beta Was this translation helpful? Give feedback.
All reactions