1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/README.md
Joshua MacDonald e17f4468a6 Golang opentelemetry-go draft API (incomplete) (#9)
* Work in progress from https://github.com/lightstep/opentelemetry-golang-prototype

* Renames

* Rename

* Finish rename

* Rename packages

* README
2019-06-14 11:37:05 -07:00

747 B

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, wherease 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):

(cd ./exporter/stdout/plugin && make)
(cd ./exporter/spanlog/plugin && make)

Then set the OPENTELEMETRY_LIB environment variable to the .so file in that directory, e.g.,

OPENTELEMETRY_LIB=./exporter/stderr/plugin/stderr.so go run ./example/server/server.go

and

OPENTELEMETRY_LIB=./exporter/spanlog/plugin/spanlog.so go run ./example/client/client.go