lwc
lwc copied to clipboard
OpenTelemetry sdk for lwc
I could not find any project to enable opentelemetry support for lwc.
It would be nice to be able to observe e2e how external systems integrate with salesforce. At the moment there is no sdk for apex, flows and lwc.
Could you provide more details about what you're looking for in a solution? I'm not too familiar with OpenTelemetry.
E.g., what kinds of questions are you hoping to answer with this system? What problems would it solve for you?
explains well what is opentelemetry
https://www.nginx.com/resources/glossary/opentelemetry/
justify its usage in frontend
https://gethelios.dev/blog/what-can-opentelemetry-do-for-frontend-developers/
Some companies are creating OpenTelemetry SDKs for their tracing tools/frameworks to ease the installation. Salesforce could do the same for lwc and the platform https://opentelemetry.io/docs/instrumentation/js/getting-started/browser/
a new service packaged under @lwc/opentelemetry
could be available for people to add it to their pages/components. For components inside the platform, devs could just do something like import { instrumentation } from "lwc/opentelemetry"
. The package is available as a service out of the box.
+1