@@ -135,7 +135,7 @@ func (gc *GHCRCollector) collectSinglePackage(ctx context.Context, name string,
135135
136136 var (
137137 collectorSpan * tracing.CollectorSpan
138- spanCtx context.Context //nolint:contextcheck // Extracting context from span for child operations
138+ spanCtx context.Context
139139 )
140140
141141 if tracer != nil && tracer .IsEnabled () {
@@ -261,7 +261,7 @@ func (gc *GHCRCollector) collectOwnerPackages(ctx context.Context, name string,
261261 attribute .String ("package.owner" , pkg .Owner ),
262262 )
263263
264- spanCtx = collectorSpan .Context () //nolint:contextcheck // Standard OpenTelemetry pattern: extract context from span
264+ spanCtx = collectorSpan .Context ()
265265 defer collectorSpan .End ()
266266 } else {
267267 spanCtx = ctx
@@ -381,7 +381,7 @@ func (gc *GHCRCollector) collectPackageMetrics(ctx context.Context, repo string,
381381 attribute .String ("package.repo" , pkg .Repo ),
382382 )
383383
384- spanCtx = collectorSpan .Context () //nolint:contextcheck // Standard OpenTelemetry pattern: extract context from span
384+ spanCtx = collectorSpan .Context ()
385385 defer collectorSpan .End ()
386386 } else {
387387 spanCtx = ctx
@@ -493,7 +493,7 @@ func (gc *GHCRCollector) getPackageInfo(ctx context.Context, owner, repo, packag
493493 attribute .String ("package.name" , packageName ),
494494 )
495495
496- spanCtx = collectorSpan .Context () //nolint:contextcheck // Standard OpenTelemetry pattern: extract context from span
496+ spanCtx = collectorSpan .Context ()
497497 defer collectorSpan .End ()
498498 } else {
499499 spanCtx = ctx
@@ -562,7 +562,7 @@ func (gc *GHCRCollector) makeGitHubAPIRequest(ctx context.Context, path string)
562562 attribute .String ("api.path" , path ),
563563 )
564564
565- spanCtx = collectorSpan .Context () //nolint:contextcheck // Standard OpenTelemetry pattern: extract context from span
565+ spanCtx = collectorSpan .Context ()
566566 defer collectorSpan .End ()
567567 } else {
568568 spanCtx = ctx
@@ -737,7 +737,7 @@ func (gc *GHCRCollector) getPackageVersions(ctx context.Context, owner, repo, pa
737737 attribute .String ("package.name" , packageName ),
738738 )
739739
740- spanCtx = collectorSpan .Context () //nolint:contextcheck // Standard OpenTelemetry pattern: extract context from span
740+ spanCtx = collectorSpan .Context ()
741741 defer collectorSpan .End ()
742742 } else {
743743 spanCtx = ctx
@@ -807,7 +807,7 @@ func (gc *GHCRCollector) updatePackageMetrics(ctx context.Context, pkg config.Pa
807807 attribute .Int ("versions.count" , len (versions )),
808808 )
809809
810- spanCtx = collectorSpan .Context () //nolint:contextcheck // Standard OpenTelemetry pattern: extract context from span
810+ spanCtx = collectorSpan .Context ()
811811 defer collectorSpan .End ()
812812 } else {
813813 spanCtx = ctx
0 commit comments