module
Version:
v0.0.0-...-a4c5af9
Opens a new window with list of versions in this module.
Published: Jun 30, 2020
License: Apache-2.0
Opens a new window with license information.
README
¶

Lightstep OpenTelemetry Configuration Layer for Go
NOTE: the code in this repo is currently in alpha and will likely change
This is the Lightstep package for configuring OpenTelemetry
Install
go get github.com/lightstep/otel-go/locl
Minimal setup
import "github.com/lightstep/otel-go/locl"
func main() {
lightstepOtel := locl.ConfigureOpentelemetry(
locl.WithServiceName("service-name"),
locl.WithAccessToken("access-token"),
)
defer lightstepOtel.Shutdown()
}
Additional options
Configuration Options
Config Option |
Env Variable |
Required |
Default |
WithServiceName |
LS_SERVICE_NAME |
y |
- |
WithServiceVersion |
LS_SERVICE_VERSION |
n |
unknown |
WithSatelliteURL |
LS_SATELLITE_URL |
n |
ingest.lightstep.com:443 |
WithMetricsURL |
LS_METRICS_URL |
n |
ingest.lightstep.com:443/metrics |
WithAccessToken |
LS_ACCESS_TOKEN |
n |
- |
WithDebug |
LS_DEBUG |
n |
false |
WithInsecure |
LS_INSECURE |
n |
false |
Directories
¶
Click to show internal directories.
Click to hide internal directories.