Documentation ¶
Index ¶
- Variables
- func FinishNRTransaction(ctx context.Context, err error)
- func GetHostname() string
- func GetNewRelicTransactionFromContext(ctx context.Context) newrelic.Transaction
- func IgnoreNRTransaction(ctx context.Context) error
- func StartNRTransaction(path string, ctx context.Context, req *http.Request, w http.ResponseWriter) context.Context
- func StoreNewRelicTransactionToContext(ctx context.Context, t newrelic.Transaction) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NewRelicApp is the reference for newrelic application NewRelicApp newrelic.Application )
Functions ¶
func FinishNRTransaction ¶
FinishNRTransaction finishes an existing transaction
func GetNewRelicTransactionFromContext ¶
func GetNewRelicTransactionFromContext(ctx context.Context) newrelic.Transaction
GetNewRelicTransactionFromContext fetches the new relic transaction that is stored in the context
func IgnoreNRTransaction ¶
IgnoreNRTransaction ignores this NR trasaction and prevents it from being reported
func StartNRTransaction ¶
func StartNRTransaction(path string, ctx context.Context, req *http.Request, w http.ResponseWriter) context.Context
StartNRTransaction starts a new newrelic transaction
func StoreNewRelicTransactionToContext ¶
StoreNewRelicTransactionToContext stores a new relic transaction object to context
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package httptripper provides an implementation of http.RoundTripper that provides retries, popluates opentracing span info and hystrix circuit breaker.
|
Package httptripper provides an implementation of http.RoundTripper that provides retries, popluates opentracing span info and hystrix circuit breaker. |
retry
Package retry provides an implementation for retrying http requests with multiple wait strategies
|
Package retry provides an implementation for retrying http requests with multiple wait strategies |
strategy
Package strategy provides strategies for use with retry
|
Package strategy provides strategies for use with retry |
Package log provides a minimal interface for structured logging in services.
|
Package log provides a minimal interface for structured logging in services. |
loggers
Package loggers provides loggers implementation for log package
|
Package loggers provides loggers implementation for log package |
loggers/gokit
Package gokit provides BaseLogger implementation for go-kit/log
|
Package gokit provides BaseLogger implementation for go-kit/log |
loggers/logrus
Package logrus provides a BaseLogger implementation for logrus
|
Package logrus provides a BaseLogger implementation for logrus |
loggers/stdlog
Package stdlog provides a BaseLogger implementation for golang "log" package
|
Package stdlog provides a BaseLogger implementation for golang "log" package |
wrap
Package wrap provides multiple wrap functions to wrap log implementation of other log packages
|
Package wrap provides multiple wrap functions to wrap log implementation of other log packages |
message_queue/mocks
Code generated by mockery v1.0.0.
|
Code generated by mockery v1.0.0. |
Click to show internal directories.
Click to hide internal directories.