Documentation ¶
Overview ¶
Package exporter defines the interfaces required to implement in order to add additional exporters.
Index ¶
- func CreateOTLPExporters(ctx context.Context, otlpConfs []config.OTLPExporter) (map[string]MetricReader, map[string]SpanExporter, error)
- func CreatePrometheusExporters(ctx context.Context, promConfs []config.PrometheusExporter) (map[string]MetricReader, error)
- func GetGlobalExporterInstances() (map[string]MetricReader, map[string]SpanExporter)
- func Instances(ctx context.Context, cfg *config.Config) (map[string]MetricReader, map[string]SpanExporter, error)
- func SetGlobalExporterInstances(m map[string]MetricReader, t map[string]SpanExporter)
- type MetricReader
- type SpanExporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOTLPExporters ¶
func CreateOTLPExporters(ctx context.Context, otlpConfs []config.OTLPExporter) (map[string]MetricReader, map[string]SpanExporter, error)
func CreatePrometheusExporters ¶
func CreatePrometheusExporters(ctx context.Context, promConfs []config.PrometheusExporter) (map[string]MetricReader, error)
func GetGlobalExporterInstances ¶
func GetGlobalExporterInstances() (map[string]MetricReader, map[string]SpanExporter)
GetGlobalExporterInstances gets the global metrics and traces exporters
func Instances ¶
func Instances(ctx context.Context, cfg *config.Config) (map[string]MetricReader, map[string]SpanExporter, error)
Instances create instances for a given configuration.
func SetGlobalExporterInstances ¶
func SetGlobalExporterInstances(m map[string]MetricReader, t map[string]SpanExporter)
SetGlobalExporterInstances sets the provided metric and traces as global defaults.
Types ¶
type MetricReader ¶
type MetricReader interface { MetricReader(reportingPeriod time.Duration) sdkmetric.Reader MetricDefaultReporting() bool }
MetricReader is the interface required in order to export metrics.
func GlobalMetricInstance ¶
func GlobalMetricInstance(name string) (MetricReader, error)
GlobalMetricInstance get a global metrics exporter by name
type SpanExporter ¶
type SpanExporter interface { SpanExporter() sdktrace.SpanExporter TraceDefaultReporting() bool }
SpanExporter is the interface required in order to export traces.
func GlobalTraceInstance ¶
func GlobalTraceInstance(name string) (SpanExporter, error)
GlobalTraceInstance gets a global trace exporter by name
Directories ¶
Path | Synopsis |
---|---|
Package otelcollector implements the Open Telemetry exporter.
|
Package otelcollector implements the Open Telemetry exporter. |
Package prometheus implements a Prometheus metrics exporter.
|
Package prometheus implements a Prometheus metrics exporter. |
Click to show internal directories.
Click to hide internal directories.