Documentation
¶
Overview ¶
Package sentry provides OpenCensus traces exporter for Sentry.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is an implementation of trace.Exporter that uploads spans to Jaeger.
func NewExporter ¶
func NewExporter() *Exporter
NewExporter creates Sentry Trace Exporter.
Example ¶
// Initialize Sentry. err := sen.Init(sen.ClientOptions{ Dsn: "https://abc123abc123abc123abc123@o123456.ingest.sentry.io/1234567", ServerName: "my-service", Release: "v1.2.3", }) if err != nil { log.Fatal(err) } defer func() { sen.Flush(time.Second) }() // Setup OC sampling. trace.ApplyConfig(trace.Config{ DefaultSampler: trace.ProbabilitySampler(0.01), }) // Enable Sentry exporter. trace.RegisterExporter(sentry.NewExporter())
Output:
func (*Exporter) ExportSpan ¶
ExportSpan exports SpanData to Sentry.
Click to show internal directories.
Click to hide internal directories.