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

Access getLastEventID method #11

Open
codyjames opened this issue Nov 13, 2020 · 5 comments
Open

Access getLastEventID method #11

codyjames opened this issue Nov 13, 2020 · 5 comments

Comments

@codyjames
Copy link

I'm trying to figure out how to implement this: https://docs.sentry.io/platforms/php/enriching-events/user-feedback/ but need to get access to the getLastEventID method. Is that accessible via this plugin?

Let me know.
Thanks!

@roelvanhintum
Copy link
Contributor

Currently not, but you could access it via custom module's variable class. This has to be used from a template right? Sentry is accessible anywhere you use Sentry;. :)

@roelvanhintum
Copy link
Contributor

@codyjames, sorry for the late response. Sentry\State\Hub::getCurrent()->getLastEventId(); doesn't seem to work. Maybe outdated docs? I'd be happy to make this available from the plugin itself, but I cannot get getLastEventId to work.

@codyjames
Copy link
Author

Right, I tried a similar approach but was not successful either. Not a big deal for me right now.

@roelvanhintum
Copy link
Contributor

@codyjames does Sentry\State\HubAdapter::getInstance()->getLastEventId() work for you? I didn't get a result, but at least no errors.

@codyjames
Copy link
Author

No, it did not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants