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

Make it possible to log arbitrary sentry interfaces #29

Open
flimzy opened this issue Dec 15, 2016 · 0 comments
Open

Make it possible to log arbitrary sentry interfaces #29

flimzy opened this issue Dec 15, 2016 · 0 comments

Comments

@flimzy
Copy link
Contributor

flimzy commented Dec 15, 2016

Sentry supports a wide range of interfaces, but only a small subset of them are supported directly by this plugin (AFAIK, stacktrace, exception, and HTTP).

I wonder if it would be reasonable to add a new 'magic key' that, when present, would be added to the sentry packet, thus allowing the user to specify arbitrary interface(s) to be passed to sentry.

Example:

log.WithFields(log.Fields{
    "interfaces": []raven.Interface{
        raven.NewHttp(req),
        raven.NewWhatever(...),
    },
}).Info("some message")

This might be a case of "too much rope", so I'm submitting it for discussion.

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

1 participant