gitlab.com/gitlab-org/labkit@v1.21.0/tracing/impl/null_tracer.go (about)

     1  // +build !tracer_static
     2  
     3  package impl
     4  
     5  import (
     6  	"fmt"
     7  	"io"
     8  
     9  	opentracing "github.com/opentracing/opentracing-go"
    10  )
    11  
    12  // New will instantiate a new instance of the tracer, given the driver and configuration
    13  func New(driverName string, config map[string]string) (opentracing.Tracer, io.Closer, error) {
    14  	return nil, nil, fmt.Errorf("tracer: binary compiled without tracer support: cannot load driver %s", driverName)
    15  }