1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-17 01:12:45 +02:00

Initial opentracing bridge (#98)

* Allow specifying custom timestamps for events

Adding event with timestamp is not yet a part of the OpenTelemetry
specification, but this function will come in handy when implementing
the OpenTracing bridge.

* Add opentracing bridge, wrapper tracer and migration interfaces

There are some features missing - setting up links and span kind;
context propagation will only work between two OpenTracing bridges.

* Add some tests for the opentracing bridge

The tests mostly check various aspects of the cooperation between
OpenTracing and OpenTelemetry APIs.
This commit is contained in:
Krzesimir Nowak
2019-09-25 08:12:22 +02:00
committed by rghetia
parent 8af7978f42
commit 339ca2d974
20 changed files with 1946 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package trace_test
import (
"context"
"testing"
"time"
"google.golang.org/grpc/codes"
@ -108,6 +109,10 @@ func (mockSpan) Tracer() trace.Tracer {
func (mockSpan) AddEvent(ctx context.Context, msg string, attrs ...core.KeyValue) {
}
// AddEventWithTimestamp does nothing.
func (mockSpan) AddEventWithTimestamp(ctx context.Context, timestamp time.Time, msg string, attrs ...core.KeyValue) {
}
// AddLink does nothing.
func (mockSpan) AddLink(link trace.Link) {
}