Documentation ¶
Index ¶
- Constants
- func Do(client Client, txn newrelic.Transaction, req *fasthttp.Request, ...) error
- func DoDeadline(client Client, txn newrelic.Transaction, req *fasthttp.Request, ...) error
- func DoTimeout(client Client, txn newrelic.Transaction, req *fasthttp.Request, ...) error
- func GetTransaction(ctx *fasthttp.RequestCtx) newrelic.Transaction
- func StartExternalSegment(txn newrelic.Transaction, req *fasthttp.Request) newrelic.ExternalSegment
- func StartTransaction(app newrelic.Application, name string, ctx *fasthttp.RequestCtx) newrelic.Transaction
- func WrapHandler(app newrelic.Application, name string, handler fasthttp.RequestHandler) fasthttp.RequestHandler
- type Client
- type Request
- type RequestHeader
- type Response
- type ResponseHeader
Constants ¶
View Source
const NewRelicTransaction = "__newrelic_transaction__"
UserValue name used to store newrelic.Transaction on fasthttp.RequestCtx
Variables ¶
This section is empty.
Functions ¶
func DoDeadline ¶
func GetTransaction ¶
func GetTransaction(ctx *fasthttp.RequestCtx) newrelic.Transaction
func StartExternalSegment ¶
func StartTransaction ¶
func StartTransaction(app newrelic.Application, name string, ctx *fasthttp.RequestCtx) newrelic.Transaction
func WrapHandler ¶
func WrapHandler(app newrelic.Application, name string, handler fasthttp.RequestHandler) fasthttp.RequestHandler
Types ¶
type RequestHeader ¶
type RequestHeader struct {
*fasthttp.RequestHeader
}
func (RequestHeader) Get ¶
func (r RequestHeader) Get(name string) string
type ResponseHeader ¶
type ResponseHeader struct {
*fasthttp.ResponseHeader
}
func (ResponseHeader) Add ¶
func (r ResponseHeader) Add(name, value string)
func (ResponseHeader) Get ¶
func (r ResponseHeader) Get(name string) string
Click to show internal directories.
Click to hide internal directories.