mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-07 23:02:15 +02:00
6c2b769f8c
Some code got moved, so reflect that in the README.
27 lines
1.3 KiB
Markdown
27 lines
1.3 KiB
Markdown
# OpenTelemetry-Go
|
|
|
|
[![Circle CI](https://circleci.com/gh/open-telemetry/opentelemetry-go.svg?style=svg)](https://circleci.com/gh/open-telemetry/opentelemetry-go)
|
|
[![Docs](https://godoc.org/github.com/open-telemetry/opentelemetry-go?status.svg)](http://godoc.org/github.com/open-telemetry/opentelemetry-go)
|
|
[![Go Report Card](https://goreportcard.com/badge/github.com/open-telemetry/opentelemetry-go)](https://goreportcard.com/report/github.com/open-telemetry/opentelemetry-go)
|
|
|
|
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
|
|
|
|
To run the examples, first build the stderr tracer plugin (requires Linux or OS X):
|
|
|
|
```console
|
|
(cd ./experimental/streaming/exporter/stdout/plugin && make)
|
|
(cd ./experimental/streaming/exporter/spanlog/plugin && make)
|
|
```
|
|
|
|
Then set the `OPENTELEMETRY_LIB` environment variable to the .so file in that directory, e.g.,
|
|
|
|
```console
|
|
OPENTELEMETRY_LIB=./experimental/streaming/exporter/stderr/plugin/stderr.so go run ./example/http/server/server.go
|
|
```
|
|
|
|
and
|
|
|
|
```console
|
|
OPENTELEMETRY_LIB=./experimental/streaming/exporter/spanlog/plugin/spanlog.so go run ./example/http/client/client.go
|
|
```
|