sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

Document policy violation: js-profiling is not allowed in this document in reactjs application

Open e-kibet opened this issue 1 year ago • 5 comments

Steps to Reproduce

  1. Create the reactjs application

  2. Create the project on the sentry dashboard and configure the project including the profiling

  3. Set the document policy on the backend i.e. if you are using expresjs you can set as app.use((_req, res, next) => { res.set("Document-Policy", "js-profiling"); next(); });

  4. reload the project to see if the profiling has been set up on the sentry -> project-> profiling section, then check the browser console.

Expected Result

  • With the clear instructions on the https://docs.sentry.io/platforms/javascript/guides/react/profiling/ i would expect the profiling to work on reactjs project

Actual Result

Document policy violation: js-profiling is not allowed in this document in reactjs application

Additional Info

No response

e-kibet avatar Apr 16 '24 07:04 e-kibet

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Apr 16 '24 07:04 getsantry[bot]

@AbhiPrasad would really appreciate it if you could take a look.

lizokm avatar Apr 16 '24 17:04 lizokm

Routing to @getsentry/product-owners-sdks-web-frontend for triage ⏲️

getsantry[bot] avatar Apr 16 '24 17:04 getsantry[bot]

Hey @e-kibet thanks for writing up an issue!

This error occurs because the js-profiling document policy was not set properly. Could you check your chrome dev tools and make sure the header is being set?

image

AbhiPrasad avatar Apr 16 '24 17:04 AbhiPrasad

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[bot] avatar Jul 02 '24 07:07 getsantry[bot]