mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-30 10:10:44 +02:00
a3980c2308
Co-authored-by: Rene Jochum <rene@jochum.dev>
22 lines
334 B
Go
22 lines
334 B
Go
package trace
|
|
|
|
import "context"
|
|
|
|
type noop struct{}
|
|
|
|
func (n *noop) Init(...Option) error {
|
|
return nil
|
|
}
|
|
|
|
func (n *noop) Start(ctx context.Context, name string) (context.Context, *Span) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (n *noop) Finish(*Span) error {
|
|
return nil
|
|
}
|
|
|
|
func (n *noop) Read(...ReadOption) ([]*Span, error) {
|
|
return nil, nil
|
|
}
|