Merge pull request 'tracer: add Context init to NewOptions' (#323) from tracerctx into v3

Reviewed-on: #323
This commit is contained in:
Василий Толстов 2024-03-11 01:13:01 +03:00
commit f29a346434

View File

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