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 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 WithPlainText ¶ added in v0.1.5
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 ¶ added in v0.4.2
WithServiceVersion sets the service version used to identify a service's version in the LightStep application.
func WithSystemMetricMeasurementFrequency ¶ added in v0.4.2
WithSystemMetricMeasurementFrequency sets the tineout duration for sending metrics reports to the LightStep application.
func WithSystemMetricTimeout ¶ added in v0.4.2
WithSystemMetricTimeout sets the tineout duration for sending metrics reports to the LightStep application.
func WithSystemMetricsDisabled ¶ added in v0.4.2
WithSystemMetricsDisabled determines if system metrics are disabled or not. Default is false.