Skip to content

Conversation

aheuermann
Copy link
Contributor

Hello, I'm creating a custom backend that logs errors to sentry.

Sentry has a method to create a StackTrace struct, which we do at the point the error is first created. We have a custom error type that we use to keep reference to it and then we log the error further up the stack.

From within the custom backend, I'd like to be able to loop through Record.Args and see if any of the args are of this type so the stack can be passed to sentry. I accomplished this by simply making Args public, but if there is preferred way of doing, let me know.

@op
Copy link
Owner

op commented Feb 6, 2016

Thank you! I see. If we expose the args we probably should expose fmt as well. I've been hesitant to expose these but I see your point. Hope it help!

op added a commit that referenced this pull request Feb 6, 2016
Make Record.Args public so can be accessed by backends
@op op merged commit d79b2af into op:master Feb 6, 2016
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

Successfully merging this pull request may close these issues.

2 participants