mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-09-16 09:26:25 +02:00
063035e9e0306166362b47d850d4c9b5fcfdd8dd
goimports for import rewritting golangci-lint as the configurable linting swiss army knife. These tools are recorded in [tools.go](https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module). This records them as a dependency to make sure we're all using the same tool versions. To make sure this project's tool's versions don't stomp over versions from other projects, they are installed in ./.tools, which is .gitignored. goimports was run and fixed up a single file: plugin/httptrace/httptrace.go I prefer to group local packages below external packages, hence the use of goimports -local option. .golangci.yml contains nothing but an incomplete set of defaults ATM. I expect those to change over time though. ;-) To use, run: $ make precommit Fixes #15
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
Description
Languages
Go
99.8%
Jinja
0.1%