Documentation
¶
Overview ¶
Package raven is allows correlation information to be added to raven requests.
Deprecated: Use gitlab.com/gitlab-org/labkit/errortracking instead.
Example ¶
package main
import (
"context"
"fmt"
raven "github.com/getsentry/raven-go"
correlation "gitlab.com/gitlab-org/labkit/correlation/raven"
)
func main() {
// In reality, this would be passed into the function
ctx := context.Background()
err := fmt.Errorf("An error occurred")
client := raven.DefaultClient
extra := correlation.SetExtra(ctx, nil)
packet := raven.NewPacketWithExtra(fmt.Sprintf("error: %v", err), extra)
client.Capture(packet, nil)
}
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetExtra
deprecated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.