Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReceiver ¶
NewReceiver allows you to create a new receiver in the Sentry using the fastest and easiest way. The Config parameter can be passed as nil if you do not need additional filtration.
func NewReceiverWithCustomRaven ¶
NewReceiverWithCustomRaven allows you to create a new receiver in the Sentry configuring raven.Client by yourself. This can be useful if you need to set additional parameters, such as release and environment, that will be sent with each Packet in the Sentry:
client, err := raven.New("https://some:sentry@dsn.sentry.io/1")
if err != nil { return nil, err }
client.SetRelease("1.3.2") client.SetEnvironment("production") client.SetDefaultLoggerName("sentry-watchdog-receiver")
sentryReceiver, err := sentry.NewReceiverWithCustomRaven(client, &sentry.Config{ MinLevel: "warn", })
The Config parameter allows you to add additional filtering, such as the minimum message level and the exclusion of private parameters. If you do not need additional filtering, nil can passed.