newrelic_beego

package module
v0.0.0-...-ebef6b2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

newrelic_beego

newrelic_beego is "plug and play" package for monitoring(APM) beego framework with newrelic offical agent

Support http endpoints

Can Get newrelic_beego.NewrelicAgent for custom monitoring(database,external call, func etc..) Can Get newrelic transaction per request from beego context

txn := ctx.Input.GetData("newrelic_transaction").(newrelic.Transaction)
defer txn.EndDatastore(txn.StartSegment(), datastore.Segment{
    // Product is the datastore type.
    // See the constants in api/datastore/datastore.go.
    Product: datastore.MySQL,
    // Collection is the table or group.
    Collection: "my_table",
    // Operation is the relevant action, e.g. "SELECT" or "GET".
    Operation: "SELECT",
})

Installation

go get github.com/sergeylanzman/newrelic_beego"

Add _ "github.com/sergeylanzman/newrelic_beego" to import in main.go file

Settings

- appname = name of app in newrelic
- newrelic_license = newrelic license

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewrelicAgent newrelic.Application

Functions

func EndTransaction

func EndTransaction(ctx *context.Context)

func NameTransaction

func NameTransaction(ctx *context.Context)

func StartTransaction

func StartTransaction(ctx *context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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