From 123023be06042fea276bb60ffb43d52d2aaaf0bf Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 1 Sep 2023 16:09:18 +0300 Subject: [PATCH] add missing tag case messaging.operation Signed-off-by: Vasiliy Tolstov --- opentracing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentracing.go b/opentracing.go index 93295a0..d5019e7 100644 --- a/opentracing.go +++ b/opentracing.go @@ -94,7 +94,7 @@ func (os *otSpan) Finish(opts ...options.Option) { os.span.SetTag("x-request-id", os.opts.Labels[idx+1]) case "rpc.call", "rpc.call_type", "rpc.flavor", "rpc.service", "rpc.method", "sdk.database", "db.statement", "db.args", "db.query", "db.method", - "messaging.destination.name", "messaging.source.name": + "messaging.destination.name", "messaging.source.name", "messaging.operation": os.span.SetTag(fmt.Sprintf("%v", os.opts.Labels[idx]), os.opts.Labels[idx+1]) default: os.span.LogKV(os.opts.Labels[idx], os.opts.Labels[idx+1])