remove duplicate var define (#34)

This commit is contained in:
thinkerou
2019-07-01 11:25:40 -07:00
committed by rghetia
parent 6d798e3a2f
commit c0a5fd12a5
2 changed files with 8 additions and 10 deletions
+8 -8
View File
@@ -29,6 +29,9 @@ import (
)
type Tracer interface {
// ScopeID returns the resource scope of this tracer.
scope.Scope
Start(context.Context, string, ...SpanOption) (context.Context, Span)
// WithSpan wraps the execution of the function body with a span.
@@ -50,9 +53,6 @@ type Tracer interface {
// Note: see https://github.com/opentracing/opentracing-go/issues/127
Inject(context.Context, Span, Injector)
// ScopeID returns the resource scope of this tracer.
scope.Scope
}
type Span interface {
@@ -111,6 +111,11 @@ type Reference struct {
type RelationshipType int
const (
ChildOfRelationship RelationshipType = iota
FollowsFromRelationship
)
var (
// The process global tracer could have process-wide resource
// tags applied directly, or we can have a SetGlobal tracer to
@@ -121,11 +126,6 @@ var (
nt = &noopTracer{}
)
const (
ChildOfRelationship RelationshipType = iota
FollowsFromRelationship
)
// GlobalTracer return tracer registered with global registry.
// If no tracer is registered then an instance of noop Tracer is returned.
func GlobalTracer() Tracer {
-2
View File
@@ -27,8 +27,6 @@ type noopTracer struct {
var _ Tracer = (*noopTracer)(nil)
var t = &noopTracer{}
// ScopeID returns an empty instance of ScopeID
func (t *noopTracer) ScopeID() core.ScopeID {
return t.resources.Scope()