tracer: add Context init to NewOptions
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
2afcb51440
commit
3d6df76dd5
@ -171,7 +171,8 @@ func NewEventOptions(opts ...options.Option) EventOptions {
|
||||
// NewOptions returns default options
|
||||
func NewOptions(opts ...options.Option) Options {
|
||||
options := Options{
|
||||
Logger: logger.DefaultLogger,
|
||||
Logger: logger.DefaultLogger,
|
||||
Context: context.Background(),
|
||||
}
|
||||
for _, o := range opts {
|
||||
o(&options)
|
||||
|
Loading…
Reference in New Issue
Block a user