instrumentation

package module
v0.0.0-...-43889e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2017 License: BSD-3-Clause Imports: 2 Imported by: 0

README

go-instrumentation

New Relic instrumentation for porthos-go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplication

func NewApplication(name, key string) (newrelic.Application, error)

func WrapHandler

func WrapHandler(app newrelic.Application, method string, handler porthos.MethodHandler) (string, porthos.MethodHandler)

Types

type TxRequest

type TxRequest struct {
	newrelic.Transaction
	porthos.Request
}

type TxResponse

type TxResponse struct {
	newrelic.Transaction
	porthos.Response
}

func (*TxResponse) Empty

func (r *TxResponse) Empty(statusCode int32)

func (*TxResponse) JSON

func (r *TxResponse) JSON(statusCode int32, body interface{})

func (*TxResponse) Raw

func (r *TxResponse) Raw(statusCode int32, contentType string, body []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL