mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-02-01 13:07:51 +02:00
Krzesimir Nowak
a776e95c61
Consolidate AddEvent and Event methods, add FinishOptions (#99)
* Merge two event methods in span API There was an agreement to get rid of the Event interface and consolidate the two methods for adding events into one. See #57. * Eliminate the use of the Event interface There is no need for the SDK to provide the implementation of the Event interface - it is used nowhere. * Drop the Event interface It's dead code now. * Make it possible to override a finish timestamp through options Opentracing to opentelemetry bridge will certainly use this feature. * Obey the start time option * Add tests for events and custom start/end times
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):
(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.,
OPENTELEMETRY_LIB=./experimental/streaming/exporter/stderr/plugin/stderr.so go run ./example/http/server/server.go
and
OPENTELEMETRY_LIB=./experimental/streaming/exporter/spanlog/plugin/spanlog.so go run ./example/http/client/client.go
Description
Languages
Go
99.8%
Makefile
0.1%