tracer: add Context init to NewOptions #323
| @@ -160,6 +160,7 @@ func NewSpanOptions(opts ...SpanOption) SpanOptions { | ||||
| func NewOptions(opts ...Option) Options { | ||||
| 	options := Options{ | ||||
| 		Logger:  logger.DefaultLogger, | ||||
| 		Context: context.Background(), | ||||
| 	} | ||||
| 	for _, o := range opts { | ||||
| 		o(&options) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user