2019-08-05 22:58:24 +02:00
# OpenTelemetry-Go
2019-07-03 16:43:54 +02:00
[![Circle CI ](https://circleci.com/gh/open-telemetry/opentelemetry-go.svg?style=svg )](https://circleci.com/gh/open-telemetry/opentelemetry-go)
2019-07-03 01:22:54 +02:00
[![Docs ](https://godoc.org/github.com/open-telemetry/opentelemetry-go?status.svg )](http://godoc.org/github.com/open-telemetry/opentelemetry-go)
2019-07-17 06:52:48 +02:00
[![Go Report Card ](https://goreportcard.com/badge/github.com/open-telemetry/opentelemetry-go )](https://goreportcard.com/report/github.com/open-telemetry/opentelemetry-go)
2019-07-03 01:22:54 +02:00
2019-08-05 22:58:24 +02:00
This is a prototype *intended to be modified* into the opentelemetry-go implementation. The `api` directory here should be used as a starting point to introduce a new OpenTelemetry exporter, whereas the existing `exporter/observer` streaming model should be help verify the api
2019-06-14 20:37:05 +02:00
To run the examples, first build the stderr tracer plugin (requires Linux or OS X):
2019-08-05 22:58:24 +02:00
```console
2019-08-13 00:46:56 +02:00
(cd ./experimental/streaming/exporter/stdout/plugin & & make)
(cd ./experimental/streaming/exporter/spanlog/plugin & & make)
2019-06-14 20:37:05 +02:00
```
2019-08-05 22:58:24 +02:00
Then set the `OPENTELEMETRY_LIB` environment variable to the .so file in that directory, e.g.,
2019-06-14 20:37:05 +02:00
2019-08-05 22:58:24 +02:00
```console
2019-08-13 00:46:56 +02:00
OPENTELEMETRY_LIB=./experimental/streaming/exporter/stderr/plugin/stderr.so go run ./example/http/server/server.go
2019-06-14 20:37:05 +02:00
```
and
2019-08-05 22:58:24 +02:00
```console
2019-08-13 00:46:56 +02:00
OPENTELEMETRY_LIB=./experimental/streaming/exporter/spanlog/plugin/spanlog.so go run ./example/http/client/client.go
2019-06-14 20:37:05 +02:00
```