lwc icon indicating copy to clipboard operation
lwc copied to clipboard

OpenTelemetry sdk for lwc

Open AllanOricil opened this issue 1 year ago • 5 comments

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.

AllanOricil avatar Oct 11 '23 15:10 AllanOricil

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?

nolanlawson avatar Oct 11 '23 16:10 nolanlawson

explains well what is opentelemetry

https://www.nginx.com/resources/glossary/opentelemetry/

AllanOricil avatar Oct 11 '23 18:10 AllanOricil

justify its usage in frontend

https://gethelios.dev/blog/what-can-opentelemetry-do-for-frontend-developers/

AllanOricil avatar Oct 11 '23 18:10 AllanOricil

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.

AllanOricil avatar Oct 21 '23 14:10 AllanOricil

+1

iiq374 avatar Jun 06 '24 02:06 iiq374