Documentation ¶
Index ¶
- func IsEnabled() bool
- func NewNewRelic() cloudevents.Middleware
- func TxName() string
- type NewRelic
- func (m *NewRelic) After(parentCtx context.Context, in v2.Event, out *v2.Event, err error) (context.Context, error)
- func (m *NewRelic) Before(parentCtx context.Context, in *v2.Event) (context.Context, error)
- func (m *NewRelic) BeforeAll(ctx context.Context, inout []*cloudevents.InOut) (context.Context, error)
- func (m *NewRelic) Close(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEnabled ¶
func IsEnabled() bool
IsEnabled reports whether the NewRelic middleware is enabled in the configuration.
func NewNewRelic ¶
func NewNewRelic() cloudevents.Middleware
NewNewRelic creates a newrelic agent middleware.
Types ¶
type NewRelic ¶
type NewRelic struct {
cloudevents.UnimplementedMiddleware
}
NewRelic represents a newrelic agent middleware for events.
func (*NewRelic) After ¶
func (m *NewRelic) After(parentCtx context.Context, in v2.Event, out *v2.Event, err error) (context.Context, error)
After checks if the handler has returned any error and notifies via newrelic agent.
func (*NewRelic) Before ¶
Before enables the newrelic transacation for use in multiple goroutines to be used by the handler.
Click to show internal directories.
Click to hide internal directories.