Documentation
¶
Overview ¶
Package performance provides helpers to get sentry performance monitoring working fast.
Index ¶
- func Refresh()
- type Span
- func CreateSpan(transactionName string, operation string) *Span
- func CreateTransaction(name string, operation string) *Span
- func CreateTransactionWithContext(name string, operation string, ctx context.Context) *Span
- func GetSpan(transactionName string, operation string) *Span
- func GetTransaction(name string) *Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Span ¶
Span wraps a sentry.Span and cleans up map references on Finish.
func CreateSpan ¶
CreateSpan creates a span and attaches it to a transaction specified by its name. If the transaction doesn't exist, it is created automatically.
func CreateTransaction ¶
CreateTransaction creates a transaction that can be attached additional spans.
func CreateTransactionWithContext ¶
CreateTransactionWithContext creates a transaction that can be attached additional spans and sets an existing context.
func GetSpan ¶
GetSpan returns a span by its transaction name and operation (or nil if none exists).
func GetTransaction ¶
GetTransaction returns a transaction by its name (or nil if none exists).