lightstep

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OCProtoSpanToOTelSpanData added in v0.1.5

func OCProtoSpanToOTelSpanData(span *tracepb.Span) (*trace.SpanData, error)

OCProtoSpanToOTelSpanData converts an OC Span to an OTel SpanData.

Types

type Exporter

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

Exporter is an implementation of trace.Exporter that sends spans to LightStep.

func NewExporter

func NewExporter(opts ...Option) (*Exporter, error)

NewExporter is an implementation of trace.Exporter that sends spans to LightStep.

func (*Exporter) Close

func (e *Exporter) Close()

Close flushes all spans in the tracer to LightStep and then closes the tracer. You should call Close() before your application exits.

func (*Exporter) ExportSpan

func (e *Exporter) ExportSpan(ctx context.Context, data *trace.SpanData)

ExportSpan exports an OpenTelementry SpanData object to an OpenTracing Span on the LightStep tracer.

func (*Exporter) Flush

func (e *Exporter) Flush()

Flush forces all unflushed to flush. This is normally handled by the exporter. However, you may call this to explicitly flush all spans without closing the exporter.

type Option

type Option func(*config)

Option struct is used to configre the LightStepExpoter options.

func WithAccessToken

func WithAccessToken(accessToken string) Option

WithAccessToken sets the LightStep access token used to authenticate and associate data. with a LightStep project

func WithHost

func WithHost(host string) Option

WithHost sets the URL hostname for sending data to LightStep satellites.

func WithPlainText added in v0.1.5

func WithPlainText(pt bool) Option

WithPlainText indicates if data should be sent in plaintext to the LightStep Satelites. Default is false.

func WithPort

func WithPort(port int) Option

WithPort sets the URL port for sending data to LightStep satellites.

func WithServiceName

func WithServiceName(serviceName string) Option

WithServiceName sets the service name tag used to identify a service in the LightStep application.

func WithServiceVersion added in v0.4.2

func WithServiceVersion(serviceVersion string) Option

WithServiceVersion sets the service version used to identify a service's version in the LightStep application.

func WithSystemMetricMeasurementFrequency added in v0.4.2

func WithSystemMetricMeasurementFrequency(frequency time.Duration) Option

WithSystemMetricMeasurementFrequency sets the tineout duration for sending metrics reports to the LightStep application.

func WithSystemMetricTimeout added in v0.4.2

func WithSystemMetricTimeout(timeout time.Duration) Option

WithSystemMetricTimeout sets the tineout duration for sending metrics reports to the LightStep application.

func WithSystemMetricsDisabled added in v0.4.2

func WithSystemMetricsDisabled(disabled bool) Option

WithSystemMetricsDisabled determines if system metrics are disabled or not. Default is false.

Jump to

Keyboard shortcuts

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