From 7ffe97a92a6225a507491b22ca5d8e1c542e7d95 Mon Sep 17 00:00:00 2001 From: stkao05 Date: Wed, 9 Dec 2015 17:04:52 +0800 Subject: [PATCH] Export stackTraceConfiguration struct type --- sentry.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sentry.go b/sentry.go index 1f49cea..a024ee1 100644 --- a/sentry.go +++ b/sentry.go @@ -59,14 +59,14 @@ type SentryHook struct { // If this is set to zero the server will not wait for any response and will // consider the message correctly sent Timeout time.Duration - StacktraceConfiguration stacktraceConfiguration + StacktraceConfiguration StackTraceConfiguration client *raven.Client levels []logrus.Level } -// stacktraceConfiguration allows for configuring stacktraces -type stacktraceConfiguration struct { +// StackTraceConfiguration allows for configuring stacktraces +type StackTraceConfiguration struct { // whether stacktraces should be enabled Enable bool // the level at which to start capturing stacktraces @@ -108,7 +108,7 @@ func NewWithTagsSentryHook(DSN string, tags map[string]string, levels []logrus.L func NewWithClientSentryHook(client *raven.Client, levels []logrus.Level) (*SentryHook, error) { return &SentryHook{ Timeout: 100 * time.Millisecond, - StacktraceConfiguration: stacktraceConfiguration{ + StacktraceConfiguration: StackTraceConfiguration{ Enable: false, Level: logrus.ErrorLevel, Skip: 5,