Documentation
¶
Index ¶
- func BeginTrxFromContext(ctx context.Context) *newrelic.Transaction
- 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 StartSpan(ctx context.Context, name string, attrs ...attribute.KeyValue) (context.Context, trace.Span)
- type NewRelicOpts
- type NewRelics
- type OTelConfig
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
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
Click to show internal directories.
Click to hide internal directories.