Documentation ¶
Index ¶
- Constants
- Variables
- type Exporter
- type Option
- func WithAccessToken(accessToken string) Option
- func WithComponentName(componentName string) Option
- func WithInsecure(insecure bool) Option
- func WithMetaEventReportingEnabled(metaEventReportingEnabled bool) Option
- func WithSatelliteHost(satelliteHost string) Option
- func WithSatellitePort(satellitePort int) Option
Constants ¶
View Source
const ( DefaultSatelliteHost = "localhost" DefaultSatellitePort = 8360 )
By default, the exporter will attempt to connect to a local satellite
Variables ¶
View Source
var (
ErrFailedToCreateExporter = errors.New("lightstep: failed to create exporter")
)
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
func (Exporter) ExportSpan ¶
type Option ¶
type Option func(*config)
Option provides configuration for the Exporter
func WithAccessToken ¶
WithAccessToken sets an access token for communicating with LightStep
func WithComponentName ¶
WithComponentName overrides the component (service) name that will be used in LightStep
func WithInsecure ¶
WithInsecure prevents the Exporter from communicating over TLS with the satellite, i.e., the connection will run over HTTP instead of HTTPS
func WithMetaEventReportingEnabled ¶
WithMetaEventReportingEnabled configures the tracer to send meta events, e.g., events for span creation
func WithSatelliteHost ¶
WithSatelliteHost sets the satellite host to which spans will be sent
func WithSatellitePort ¶
WithSatellitePort sets the satellite port to which spans will be sent
Click to show internal directories.
Click to hide internal directories.