From 85f656890a37317994b2b83b5cd2a046ff7e1bd1 Mon Sep 17 00:00:00 2001 From: Victor Michel Date: Thu, 18 Apr 2024 18:36:32 +0200 Subject: [PATCH 1/2] Add AddLink method to DummySpan --- tracing/dummy_span.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tracing/dummy_span.go b/tracing/dummy_span.go index 5ab71b9..e8b8cb1 100644 --- a/tracing/dummy_span.go +++ b/tracing/dummy_span.go @@ -67,3 +67,7 @@ func (s *DummySpan) SetAttributes(kv ...attribute.KeyValue) { func (s *DummySpan) TracerProvider() trace.TracerProvider { return s.parentSpan.TracerProvider() } + +func (s *DummySpan) AddLink(trace.Link) { + // no-op +} From cbad4c04a61b0f2930da019a538023a6bd0637da Mon Sep 17 00:00:00 2001 From: Victor Michel Date: Mon, 22 Apr 2024 10:28:28 +0200 Subject: [PATCH 2/2] Fix linting issues --- tracing/dummy_span.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracing/dummy_span.go b/tracing/dummy_span.go index e8b8cb1..508b484 100644 --- a/tracing/dummy_span.go +++ b/tracing/dummy_span.go @@ -69,5 +69,5 @@ func (s *DummySpan) TracerProvider() trace.TracerProvider { } func (s *DummySpan) AddLink(trace.Link) { - // no-op + // no-op }