We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are many New... method to create *SentryHook. To scale configuration, add a config struct and use it in New() function.
New...
*SentryHook
New()
For example below,
// something like this type Config struct { Levels []logrus.Level StacktraceConfiguration DSN string Async bool Tags map[string]string Release string Environment string // etc... } func New(conf Config) (*SentryHook, error) { client, err := raven.NewWithTags(conf.DSN, conf.Tags) if err != nil { return nil, err } if conf.Release != "" { client.SetRelease(conf.Release) } if conf.Environment != "" { client.SetEnvironment(conf.Environment) } hook := &SentryHook{ asynchronous: conf.Async, } // etc... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There are many
New...
method to create*SentryHook
.To scale configuration, add a config struct and use it in
New()
function.For example below,
The text was updated successfully, but these errors were encountered: