metricexp

package
v0.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2021 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Overview

metricexp provides metric exporter for OpenTelemetry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallNewPipeline

func InstallNewPipeline(
	ctx context.Context, config *Config, options ...controller.Option,
) (*controller.Controller, error)

InstallNewPipeline instantiates a NewExportPipeline and registers it globally. Typically called as:

pipeline := stdout.InstallNewPipeline(stdout.Config{...})
defer pipeline.Stop()
... Done

func NewExportPipeline

func NewExportPipeline(
	cfg *Config, options ...controller.Option,
) (*controller.Controller, error)

NewExportPipeline sets up a complete export pipeline with the recommended setup, chaining a NewRawExporter into the recommended selectors and integrators.

Types

type Config added in v0.7.7

type Config struct {
	// DSN is a data source name that is used to connect to uptrace.dev.
	// Example: https://<token>@api.uptrace.dev/<project_id>
	// The default is to use UPTRACE_DSN environment var.
	DSN string

	// HTTPClient that is used to send data to Uptrace.
	HTTPClient *http.Client
	// Max number of retries when sending data to Uptrace.
	// The default is 3.
	MaxRetries int

	// Disabled disables the exporter.
	// The default is to use UPTRACE_DISABLED environment var.
	Disabled bool
	// contains filtered or unexported fields
}

Config is the configuration to be used when initializing a client.

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

func NewExporter added in v0.7.7

func NewExporter(cfg *Config) (*Exporter, error)

func (*Exporter) Export

func (e *Exporter) Export(_ context.Context, checkpointSet export.CheckpointSet) error

func (*Exporter) ExportKindFor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL