Documentation ¶
Overview ¶
Package opentelemetry provides a set of utilities for assisting with telemetry data
Package opentelemetry provides a set of utilities for assisting with telemetry data
Index ¶
- func Init(ctx context.Context, spanExporter sdktrace.SpanExporter, ...) io.Closer
- func InitOPTLMetricExporter(ctx context.Context, exporterURL string, exportInterval time.Duration) sdkmetric.Reader
- func InitPrometheusMetricExporter(ctx context.Context) sdkmetric.Reader
- func InitSpanExporter(ctx context.Context, exporterURL string) trace.SpanExporter
- func IsEnabled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(ctx context.Context, spanExporter sdktrace.SpanExporter, metricReader sdkmetric.Reader, service string) io.Closer
Init - creates opentelemetry tracer and meter providers
func InitOPTLMetricExporter ¶ added in v1.11.0
func InitOPTLMetricExporter(ctx context.Context, exporterURL string, exportInterval time.Duration) sdkmetric.Reader
InitOPTLMetricExporter - returns an instance of OpenTelemetry Metric Exporter.
func InitPrometheusMetricExporter ¶ added in v1.11.0
InitPrometheusMetricExporter - returns an instance of Prometheus Metric Exporter.
func InitSpanExporter ¶
func InitSpanExporter(ctx context.Context, exporterURL string) trace.SpanExporter
InitSpanExporter - returns an instance of OpenTelemetry Span Exporter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.