What's the advantage of using this plugin? #163
-
Hello, and thank you so much for the huge amount of work you put into this plugin! I was wondering, besides tracking/identifying logged in users, what are the advantages of using this plugin VS using the PHP+JS SDKs? I'm asking because for me it's hard to get bits of config/filters from Sentry's documentation and convert them into a format the plugin can digest (through WP hooks etc), so I was wondering what I'd lose if I switched to normal PHP+JS integration without the plugin :) Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi Alessandro, I'm assuming you already looked through the code so you know exactly what you'll miss :) Nothing much, this is a thin wrapper around the PHP/JS SDK's which does some auto-configuration to make the installation as simple as plugin installation and setting the DSN in the settings. In addition some extra configuration helpers to configure the SDK's more easily "the WordPress way". Not sure if that answers the question but there is nog magic WordPress things going on that you won't be able to replicate without the plugin 😉 Having said that, I'm very open to ideas and improvements to help ease the problems you are seeing and why you are considering not using the plugin at all, maybe there is room for improvement here that I'm missing and you can help me identify, so if you have the time I'd appreciate some of your insights on what you are trying to do and why it's not easy or convienient for your use case! But no hard feelings if you decide to implement your own ways of using the PHP/JS SDK's, if you are at that point or need that much configuration it might be best to have all the control! |
Beta Was this translation helpful? Give feedback.
Ah, yes the JavaScript options especially are a PITA and I don't have a good way to fix that so especially for the browser SDK it indeed might be better to include your own integration to solve that. But surprisingly the ChatGPT answer looks pretty decent but haven't tested it.
Eventually it might be worth keeping the plugin around for the PHP integration since I do plan on having performance tracing integrated which would be a lot of work to do yourself, but that is not yet implemented but maybe the prospect of that is worth of keeping the PHP side of this plugin around. The browser version taking in-house makes total sense to me and is something I have suggested to numerous people in th…