Adding OpenTelemetry to an Angular Application #253
Replies: 13 comments 6 replies
-
Just so you know, your blogpost made at least one happy devops ;) |
Beta Was this translation helpful? Give feedback.
-
That's great to hear, thanks for the feedback @Jonathan-w6d ! |
Beta Was this translation helpful? Give feedback.
-
hi, in angular universal I get an error Cannot find name 'Task' and Cannot find name 'Zone' |
Beta Was this translation helpful? Give feedback.
-
I want to make loading lazy, for this I put the loading logic init of openTelemetry in a separate file and load it at the start of the application through import. everything is fine, but the assembly for the ssr is not going to |
Beta Was this translation helpful? Give feedback.
-
Hey @DvDruzhkov , sorry but I don't really have SSR experience with Angular. |
Beta Was this translation helpful? Give feedback.
-
this problem occurs during the build, I will try to solve it |
Beta Was this translation helpful? Give feedback.
-
i did it instead of library @opentelemetry/auto-instrumentations-web I used @opentelemetry/instrumentation @opentelemetry/instrumentation-xml-http-request registerInstrumentations({ |
Beta Was this translation helpful? Give feedback.
-
after these settings the build for web and ssr works |
Beta Was this translation helpful? Give feedback.
-
Hello, That's a great post! It saved my day. with that solution is it possible to also send messages logged to console global object of my browser? |
Beta Was this translation helpful? Give feedback.
-
hi very interesting tutorial, Im learning about code instrumentation and I have already deployed another observability platform. Do you think that I can follow this tutorial and linked with SigNoz for exemple ? |
Beta Was this translation helpful? Give feedback.
-
Hi Tim!! i want to integrate this solution with an Angular v17 application, but when trying to install the @opentelemetry/auto-instrumentations-web package, I get a dependency conflict error, because the this package has [email protected] in its peerDeps and my project uses zone.js@ 0.14.6, I have managed to install it using the --peer-deps flag, but I would like not to do it that way. Did this happen to you? |
Beta Was this translation helpful? Give feedback.
-
Looking forward to "how to make this code more "Angulary", include more information in our traces to make it easier to monitor, how to log errors, and more." Any update on this? |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing, great post! |
Beta Was this translation helpful? Give feedback.
-
Adding OpenTelemetry to an Angular Application - Tim Deschryver
How to register the OpenTelemetry web packages to automatically create traces and send them to a backend. The result is a helpful dashboard containing insights about the Angular application.
https://timdeschryver.dev/blog/adding-opentelemetry-to-an-angular-application
Beta Was this translation helpful? Give feedback.
All reactions