feat: exclude OTEL instrumentation via build tag (#770)
* feat: exclude OTEL instrumentation via build tag * add readme
This commit is contained in:
parent
d09a952410
commit
21e830e275
5 changed files with 46 additions and 3 deletions
12
internal/otel/otel.go
Normal file
12
internal/otel/otel.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
//go:build !no_otel
|
||||
|
||||
package otel
|
||||
|
||||
import (
|
||||
"go.opentelemetry.io/otel"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
|
||||
func Tracer(name string) trace.Tracer {
|
||||
return otel.Tracer(name)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue