mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
21 lines
271 B
Go
21 lines
271 B
Go
package tracing
|
|
|
|
var (
|
|
_ Tracer = NopTracer{}
|
|
_ Span = nopSpan{}
|
|
)
|
|
|
|
type NopTracer struct{}
|
|
|
|
func (n NopTracer) StartSpan(_ string) Span {
|
|
return nopSpan{}
|
|
}
|
|
|
|
type nopSpan struct{}
|
|
|
|
func (n nopSpan) SetBaggageItem(_ string, _ any) {
|
|
}
|
|
|
|
func (n nopSpan) Finish() {
|
|
}
|