tracer: add Context init to NewOptions #323

Merged
vtolstov merged 1 commits from tracerctx into v3 2024-03-11 01:13:02 +03:00

View File

@ -159,7 +159,8 @@ func NewSpanOptions(opts ...SpanOption) SpanOptions {
// NewOptions returns default options
func NewOptions(opts ...Option) Options {
options := Options{
Logger: logger.DefaultLogger,
Logger: logger.DefaultLogger,
Context: context.Background(),
}
for _, o := range opts {
o(&options)