Skip to content

Commit

Permalink
Export stackTraceConfiguration struct type
Browse files Browse the repository at this point in the history
  • Loading branch information
stkao05 committed Dec 9, 2015
1 parent e42a087 commit 7ffe97a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7ffe97a

Please sign in to comment.