Documentation ¶
Index ¶
- Constants
- func EndSegment(v interface{})
- func FromContext(ctx *fasthttp.RequestCtx) *newrelic.Transaction
- func Middleware(app *newrelic.Application, f fasthttp.RequestHandler) fasthttp.RequestHandler
- func NewDataStoreSegment(ctx *fasthttp.RequestCtx, tableName, operation string) *newrelic.DatastoreSegment
- func NewExternalSegment(ctx *fasthttp.RequestCtx, request *fasthttp.Request) *newrelic.ExternalSegment
- func NewSegment(ctx *fasthttp.RequestCtx, name string) *newrelic.Segment
Constants ¶
View Source
const NewRelicTransaction = "__newrelic_txn_fasthttp__"
NewRelicTransaction - key context transaction newrelic
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContext(ctx *fasthttp.RequestCtx) *newrelic.Transaction
FromContext - newrelic from context
func Middleware ¶
func Middleware(app *newrelic.Application, f fasthttp.RequestHandler) fasthttp.RequestHandler
Middleware - middleware para fasthpp new relic
func NewDataStoreSegment ¶ added in v1.0.1
func NewDataStoreSegment(ctx *fasthttp.RequestCtx, tableName, operation string) *newrelic.DatastoreSegment
NewDataStoreSegment - Newrelic datasource
func NewExternalSegment ¶ added in v1.0.1
func NewExternalSegment(ctx *fasthttp.RequestCtx, request *fasthttp.Request) *newrelic.ExternalSegment
NewExternalSegment - external segment
func NewSegment ¶ added in v1.0.1
func NewSegment(ctx *fasthttp.RequestCtx, name string) *newrelic.Segment
NewSegment - simple segment
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.