How do I integrate NextJS' OpenTelemetry support with .Net Aspire? #5304
Unanswered
KennethHoff
asked this question in
Q&A
Replies: 1 comment 17 replies
-
You might need to make the default OTLP endpoint http based to make these scenarios work more seamlessly. |
Beta Was this translation helpful? Give feedback.
17 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've tried implementing support for OpenTelemetry w/ NextJS using .Net Aspire. I spent a fair number of hours yesterday looking through NextJS' docs (https://nextjs.org/docs/app/building-your-application/optimizing/open-telemetry) as well as yours (https://github.com/dotnet/aspire-samples/tree/b013f64e063dce2a4c72b840eab83d43991a5d22/samples/AspireWithNode), but no matter what I do, I am unable to see anything pop up in the
traces
panel.There are so many moving pieces that it's near-impossible to figure out what is going from; All the environment variables are there, and according to NextJS' docs, this is all you should have to do to follow the standard systems:
This is my Aspire code:
As you can see in this image, the traces selector doesn't even include the service.
Beta Was this translation helpful? Give feedback.
All reactions