mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-01 22:09:57 +02:00
OpenTelemetry Go API and SDK
https://opentelemetry.io/
20b2f718b8
* fix compile errors. * fix lint errors. * add circle-ci job. * rename IDHigh to TraceIDHigh * rename the file. * add go get for goimports and golangci-lint * enable GO111MODULE and remove comments. * remove working dir and update cache name * Add TEST_RESULT env back. * run go mod tidy. * remove go mod download. * add test coverage. * fix TraceID. * fix circlefi config error. * remove install-tools. * remove ALL_TEST_SRC from Makefile. |
||
---|---|---|
.circleci | ||
api | ||
example | ||
exporter | ||
plugin/httptrace | ||
sdk | ||
.gitignore | ||
.golangci.yml | ||
CODEOWNERS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
Makefile | ||
README.md | ||
tools.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, 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