export

package
Version: v0.0.0-...-aeb71b5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 17 Imported by: 3

Documentation

Overview

Package export provides telemetry exporters for various providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TracerShutdown

type TracerShutdown func()

TracerShutdown is returned by exporter setup functions. This is called to shutdown the exporter.

func InstallJaegerExporter

func InstallJaegerExporter(serviceName string, tpOpts ...sdktrace.TracerProviderOption) (TracerShutdown, error)

InstallJaegerExporter installs opentelemetry exporter for Jaeger with the given service name. The returned TracerShutdown can be called to perform a flush of the exporter. This sets up a no-op provider by default. Set DISABLE_TRACING=false and OTEL_EXPORTER_JAEGER_ENDPOINT=http://<service-address>:14268/api/traces environment variables to enable a functional tracer provider. For details about configuring jaeger using otel environment variables, refer https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#jaeger-exporter

func InstallOTLPExporter

func InstallOTLPExporter(serviceName string, driverOpts ...otlpgrpc.Option) (TracerShutdown, error)

InstallOTLPExporter installs opentelemetry exporter for OTLP collector with the given service name. The returned TracerShutdown can be called to perform a flush of the exporter. TODO: Make it more configurable and document usage.

Jump to

Keyboard shortcuts

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