otel-go

module
v0.0.0-...-a4c5af9 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0

README

build status Docs Go Report Card

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
Configure

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

Path Synopsis

Jump to

Keyboard shortcuts

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