Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Merge pull request lightstep#29 from lightstep/kay/deprecate
Browse files Browse the repository at this point in the history
Mark repository as deprecated
  • Loading branch information
kayousterhout authored Aug 28, 2020
2 parents bc84e97 + c42607b commit 338f356
Showing 1 changed file with 1 addition and 49 deletions.
50 changes: 1 addition & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,3 @@
# Lightstep OpenTelemetry Golang Exporter

This is a Lightstep exporter for opentelemetry-go.

## Initialize

This example connects to Lightstep and sends a single span.

```go
package main

import (
"context"
"log"

"github.com/lightstep/opentelemetry-exporter-go/lightstep"
"go.opentelemetry.io/otel/api/global"
sdktrace "go.opentelemetry.io/otel/sdk/trace"
)

func main() {
exporter, err := lightstep.NewExporter(
lightstep.WithAccessToken("<ACCESS_TOKEN>"),
lightstep.WithServiceName("my-service"),
)
if err != nil {
log.Fatalf("Failed to initialize Lightstep exporter: %v", err)
}
defer exporter.Close()

tp, err := sdktrace.NewProvider(
sdktrace.WithConfig(sdktrace.Config{
DefaultSampler: sdktrace.AlwaysSample()}),
sdktrace.WithSyncer(exporter))
global.SetTraceProvider(tp)

ctx := context.Background()
_, span := global.Tracer("example").Start(ctx, "hello")
span.End()

exporter.Flush()
}
```

## Release

To make a release, do these steps
1. Run `make ver=X.Y.Z version`
1. Update CHANGELOG.md
1. Merge changes
1. Run `make release_tag`
This exporter is now deprecated. Lightstep can receive OpenTelemetry data via the OpenTelemetry Protocol (OTLP) Exporter. The easiest way to configure it is using the [OpenTelemetry Launcher](https://github.com/lightstep/otel-launcher-go/)

0 comments on commit 338f356

Please sign in to comment.