Documentation
¶
Index ¶
- Constants
- func ChangeMetrics(changeFunc func(metrics *Metrics))
- func Init(ctx context.Context) error
- func IsEnabled() bool
- func MessageEvent(ctx context.Context, msg string) error
- func NewController(exporter *otlpmetric.Exporter) *controller.Controller
- func NewMetricExporter(url string) (*otlpmetric.Exporter, error)
- func NewTraceExporter(url string) (*otlptrace.Exporter, error)
- func SetupMetricExporter(ctx context.Context, url string) error
- func SetupTraceExporter(ctx context.Context, url string) error
- func Shutdown(ctx context.Context) error
- type Metrics
Constants ¶
View Source
const ( MetricsURL = "http://localhost:4318/v1/metrics" TracesURL = "http://localhost:4318/v1/traces" )
Variables ¶
This section is empty.
Functions ¶
func ChangeMetrics ¶
func ChangeMetrics(changeFunc func(metrics *Metrics))
func NewController ¶
func NewController(exporter *otlpmetric.Exporter) *controller.Controller
func NewMetricExporter ¶ added in v1.2.119
func NewMetricExporter(url string) (*otlpmetric.Exporter, error)
func NewTraceExporter ¶ added in v1.2.119
func SetupMetricExporter ¶ added in v1.2.119
func SetupTraceExporter ¶ added in v1.2.119
Types ¶
Click to show internal directories.
Click to hide internal directories.