Documentation
¶
Index ¶
- func BeginTrxFromContext(ctx context.Context) *newrelic.Transaction
- func Init()
- func InitNewRelic(opts ...NewRelicOpts) *newRelic
- func InitOTelSDK(ctx context.Context, cfg OTelConfig) (*sdktrace.TracerProvider, error)
- func IsOTelActive() bool
- func NewContext(parentCtx context.Context, txn *newrelic.Transaction) context.Context
- func OTelHTTPMiddleware(serviceName string) func(http.Handler) http.Handler
- func SetProvider(p Provider)
- type NewRelicOpts
- type NewRelics
- type OTelConfig
- type Provider
- type Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginTrxFromContext ¶ added in v2.21.0
func BeginTrxFromContext(ctx context.Context) *newrelic.Transaction
func InitNewRelic ¶
func InitNewRelic(opts ...NewRelicOpts) *newRelic
func InitOTelSDK ¶ added in v2.41.0
func InitOTelSDK(ctx context.Context, cfg OTelConfig) (*sdktrace.TracerProvider, error)
func IsOTelActive ¶ added in v2.41.0
func IsOTelActive() bool
func NewContext ¶ added in v2.21.0
func OTelHTTPMiddleware ¶ added in v2.41.0
func SetProvider ¶ added in v2.41.7
func SetProvider(p Provider)
Types ¶
type NewRelicOpts ¶
type NewRelicOpts func(relics *newRelic)
func WithAppName ¶
func WithAppName(appName string) NewRelicOpts
func WithLicenseKey ¶
func WithLicenseKey(licenseKey string) NewRelicOpts
type OTelConfig ¶ added in v2.41.0
type Provider ¶ added in v2.41.7
func ActiveProvider ¶ added in v2.41.7
func ActiveProvider() Provider
Click to show internal directories.
Click to hide internal directories.