Twilio Flex Plugin for Sentry #12456
Replies: 3 comments 1 reply
-
@bruno222 it would probably make sense we define some requirements. Like user/agent email which you are already capturing. let me know if the current discussion description makes sense |
Beta Was this translation helpful? Give feedback.
-
@AbhiPrasad thinking of cloud context, would there be away to denote that events are coming from the Twilio Flex SaaS env? Since this is just the react SDK, but it'd be interesting to see if events are coming from this cloud environment |
Beta Was this translation helpful? Give feedback.
-
after discussions with @AbhiPrasad We might need to consider https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/ because there can be multiple integration on the site. But it is not clear, I think the best course is to potentially add other common plugins, one with an error ideally, and ensure that the sentry plugin also captures that errors, which I assume it will. |
Beta Was this translation helpful? Give feedback.
-
Background:
Twilio Provides a frontend solution, which is a "Contact Center as a Service", solution. It is essentially a place where agents can login to manage inbound and outbound calls, and other forms of communication with their respective customers.
The SaaS based offereing of flex allows Twilio developers to modify the site with plugins.
OOTB it does not support Sentry, and since it is a plugin, it means developers do not have access to the source code, or build process.
So how best to introduce Sentry?
Proposal:
This repo, https://github.com/bruno222/flex-sentry/tree/add-sentry provides an example of how to create a plugin using the Sentry React SDK.
Is this the best way to add this instrumentation? Are there any other configurations that should be considered?
src/sentry.ts
Beta Was this translation helpful? Give feedback.
All reactions