From 78f873f083be4a11166318403695bc636ef9861b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 3 Jul 2025 14:48:26 +0200 Subject: [PATCH] sdk/trace: ReadOnlySpan.InstrumentationLibrary: fix deprecation comment (#6960) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 575e1bb27025c73fd76f1e6b9dc2727b85867fdc deprecated the Library type in favor of Scope, but did not add an empty line before the deprecation comment. Go's formatting rules require an empty line; omitting the empty line can cause some tools to not detect the deprecation. Signed-off-by: Sebastiaan van Stijn Co-authored-by: Robert PajÄ…k --- sdk/trace/span.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/trace/span.go b/sdk/trace/span.go index 1785a4bbb..549533ff9 100644 --- a/sdk/trace/span.go +++ b/sdk/trace/span.go @@ -61,6 +61,7 @@ type ReadOnlySpan interface { InstrumentationScope() instrumentation.Scope // InstrumentationLibrary returns information about the instrumentation // library that created the span. + // // Deprecated: please use InstrumentationScope instead. InstrumentationLibrary() instrumentation.Library //nolint:staticcheck // This method needs to be define for backwards compatibility // Resource returns information about the entity that produced the span.