From 27db1876c09432e9b5de334bd1dd86cc04085a10 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 11 Mar 2024 01:12:20 +0300 Subject: [PATCH] tracer: add Context init to NewOptions Signed-off-by: Vasiliy Tolstov --- tracer/options.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tracer/options.go b/tracer/options.go index 4c1c0f74..1f7fc7f9 100644 --- a/tracer/options.go +++ b/tracer/options.go @@ -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)