Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(ctx context.Context) ([]grpc.DialOption, []grpc.CallOption)
Register registers a new newrelic plugin for grpc client.
Types ¶
type Newrelic ¶
type Newrelic struct {
// contains filtered or unexported fields
}
Newrelic represents newrelic plugin for grpc client.
func NewNewrelic ¶
func NewNewrelic() *Newrelic
NewNewrelic returns a new newrelic plugin with default options.
func NewNewrelicWithConfigPath ¶
NewNewrelicWithConfigPath returns a new newrelic plugin with options from config path.
func NewNewrelicWithOptions ¶
NewNewrelicWithOptions returns a new newrelic plugin with options.
func (*Newrelic) Register ¶
func (i *Newrelic) Register(ctx context.Context) ([]grpc.DialOption, []grpc.CallOption)
Register registers this newrelic plugin for grpc client.
type Options ¶
type Options struct {
Enabled bool
}
Options newrelic plugin for grpc client options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
Click to show internal directories.
Click to hide internal directories.