Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry pushing salesforce chatbot component inside shadow dom #9129

Open
3 tasks done
Skgtouch opened this issue Sep 27, 2023 · 18 comments
Open
3 tasks done

Sentry pushing salesforce chatbot component inside shadow dom #9129

Skgtouch opened this issue Sep 27, 2023 · 18 comments
Labels
Package: react Issues related to the Sentry React SDK Package: replay Issues related to the Sentry Replay SDK Stale Type: Bug Waiting for: Community

Comments

@Skgtouch
Copy link

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/react

SDK Version

7.72.0

Framework Version

React 16.8.6

Link to Sentry event

No response

SDK Setup

 let config = {
      dsn: dsnKey,
      integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()],
      // Performance Monitoring
      tracesSampleRate: 0.1, // Capture 100% of the transactions, reduce in production!
      // Session Replay
      replaysSessionSampleRate: 0.1, // You may want to change it to 100% while in development and then sample at a lower rate in production.
      replaysOnErrorSampleRate: 1.0,
    };
    if (environment) config.environment = environment;
    Sentry.init(config);

Steps to Reproduce

  1. Without sentry or with sentry older version salesforce(SF)chat bot is rendering properly and after doing inspect element we can see the SF Chat components are rendering normally.
  2. But after adding latest sentry SF chat is breaking because sentry is forcing the SF chat components inside shadow dom, which why css is not applying and style is breaking
Screenshot 2023-09-27 at 7 04 14 PM

Expected Result

Sentry should not force SF components to render inside shadow dom

Actual Result

Sentry forcing SF component inside shadow dom

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Sep 27, 2023
@github-actions github-actions bot added the Package: react Issues related to the Sentry React SDK label Sep 27, 2023
@AbhiPrasad
Copy link
Member

Hey @Skgtouch, thanks for writing in! If you remove Session replay by removing new Sentry.Replay() from the integrations array, does this problem still happen?

@Skgtouch
Copy link
Author

Skgtouch commented Sep 27, 2023

Hey @Skgtouch, thanks for writing in! If you remove Session replay by removing new Sentry.Replay() from the integrations array, does this problem still happen?

@AbhiPrasad After removing new Sentry.Replay(), its working properly. But how can we do with replay functionality ?

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Sep 27, 2023
@AbhiPrasad AbhiPrasad added the Package: replay Issues related to the Sentry Replay SDK label Sep 27, 2023
@billyvg
Copy link
Member

billyvg commented Sep 27, 2023

@Skgtouch can you try installing version 7.70.0-beta.1 and see if that fixes the issue?

@Skgtouch
Copy link
Author

@Skgtouch can you try installing version 7.70.0-beta.1 and see if that fixes the issue?

Thanks @billyvg using this version 7.70.0-beta.1 works, can we add the working changes in stable version ?

@billyvg
Copy link
Member

billyvg commented Sep 27, 2023

Great to hear, it'll these changes will be in our next release

@Skgtouch
Copy link
Author

@billyvg @AbhiPrasad - This works with first session of sf chatbot, after closing chat window (ending the conversation ) and re-initiating the new session creating same problem again

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Sep 28, 2023
@billyvg
Copy link
Member

billyvg commented Sep 28, 2023

@Skgtouch I'm assuming this is happening on the beta version? Just to confirm this is that SF chat bot you're using? https://www.salesforce.com/products/customer-service-chatbot/

@Skgtouch
Copy link
Author

@Skgtouch I'm assuming this is happening on the beta version? Just to confirm this is that SF chat bot you're using? https://www.salesforce.com/products/customer-service-chatbot/

Yes @billyvg, It's happening with beta version, and yes using the same SF chat bot

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Sep 29, 2023
@billyvg
Copy link
Member

billyvg commented Oct 3, 2023

@Skgtouch we'll investigate this further, in the mean-time you should be able to add the component to the sdk block list

@getsantry getsantry bot removed the status in GitHub Issues with 👀 Oct 3, 2023
@Skgtouch
Copy link
Author

@billyvg Thanks for the suggestion, but putting class="sentry-block" on parent div of chat window does not solves the issue.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Oct 13, 2023
@Skgtouch
Copy link
Author

Skgtouch commented Oct 13, 2023

@billyvg For now I have disabled the replay functionality to fix the issue, plesae update us once you found any solution.
Thanks!

@billyvg
Copy link
Member

billyvg commented Oct 13, 2023

@Skgtouch When you have a chance, can you test if 7.74.0 fixes the issue?

@bruno-garcia
Copy link
Member

bruno-garcia commented Oct 24, 2023

@Skgtouch We're eager to know if this addressed your issue, as we believed we have gotten a fix out on 7.74.0
If somehow you have issues, feel free to reopen

@Skgtouch
Copy link
Author

@bruno-garcia I tried upgrading to version 7.74.0, but still getting same issue.

@bruno-garcia bruno-garcia reopened this Nov 27, 2023
@bruno-garcia
Copy link
Member

Not sure what it could be to be honest. Not sure if others in the thread have more ideas

@heidi-tom
Copy link

Hi, We see this issue with latest version of Sentry 8.32. Can you please let us know if there is a fix for this other than disabling the sentry replays

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Sep 27, 2024
@billyvg
Copy link
Member

billyvg commented Oct 1, 2024

If someone could provide us with a sandbox with the salesforce chatbot enabled, then we can take a look at it. Otherwise it's a bit difficult for us to reproduce.

@getsantry
Copy link

getsantry bot commented Jan 1, 2025

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: react Issues related to the Sentry React SDK Package: replay Issues related to the Sentry Replay SDK Stale Type: Bug Waiting for: Community
Projects
Archived in project
Status: Waiting for: Community
Development

No branches or pull requests

6 participants