github.com/quay/claircore@v1.5.28/libindex/metrics.go (about)

     1  package libindex
     2  
     3  import (
     4  	"go.opentelemetry.io/otel"
     5  	semconv "go.opentelemetry.io/otel/semconv/v1.21.0"
     6  	"go.opentelemetry.io/otel/trace"
     7  )
     8  
     9  var tracer trace.Tracer
    10  
    11  func init() {
    12  	tracer = otel.Tracer("github.com/quay/claircore/libindex",
    13  		trace.WithSchemaURL(semconv.SchemaURL),
    14  	)
    15  }