Documentation ¶
Index ¶
- func OCProtoSpanToOTelSpanData(span *tracepb.Span) (*trace.SpanData, error)
- type Exporter
- type Option
- func WithAccessToken(accessToken string) Option
- func WithHost(host string) Option
- func WithMaxBufferedSpans(value int) Option
- func WithPlainText(pt bool) Option
- func WithPort(port int) Option
- func WithServiceName(serviceName string) Option
- func WithServiceVersion(serviceVersion string) Option
- func WithSystemMetricMeasurementFrequency(frequency time.Duration) Option
- func WithSystemMetricTimeout(timeout time.Duration) Option
- func WithSystemMetricsDisabled(disabled bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 ¶
ExportSpan exports an OpenTelementry SpanData object to an OpenTracing Span on the LightStep tracer.
type Option ¶
type Option func(*config)
Option struct is used to configre the LightStepExpoter options.
func WithAccessToken ¶
WithAccessToken sets the LightStep access token used to authenticate and associate data. with a LightStep project
func WithMaxBufferedSpans ¶ added in v0.4.5
WithMaxBufferedSpans sets the maximum number of spans that will be buffered before sending them to a collector. Should be used to override the `DefaultMaxSpan` value of 1000.
func WithPlainText ¶
WithPlainText indicates if data should be sent in plaintext to the LightStep Satelites. Default is false.
func WithServiceName ¶
WithServiceName sets the service name tag used to identify a service in the LightStep application.
func WithServiceVersion ¶
WithServiceVersion sets the service version used to identify a service's version in the LightStep application.
func WithSystemMetricMeasurementFrequency ¶
WithSystemMetricMeasurementFrequency sets the tineout duration for sending metrics reports to the LightStep application.
func WithSystemMetricTimeout ¶
WithSystemMetricTimeout sets the tineout duration for sending metrics reports to the LightStep application.
func WithSystemMetricsDisabled ¶
WithSystemMetricsDisabled determines if system metrics are disabled or not. Default is false.