sloglint icon indicating copy to clipboard operation
sloglint copied to clipboard

InfoContextContext should be used instead

Open srikanthccv opened this issue 5 months ago • 2 comments

Failed run logs: https://github.com/SigNoz/signoz/actions/runs/16705152820/job/47282143114?pr=8642

>> Linting golang files
Error: pkg/transition/migrate_saved_view.go:35:5: InfoContextContext should be used instead (sloglint)
				m.logger.InfoContext(ctx, "migrated querymap")
				^
Error: pkg/transition/migrate_saved_view.go:39:5: InfoContextContext should be used instead (sloglint)
				m.logger.InfoContext(ctx, "envelope after wrap", "envelope", envelope)
				^

srikanthccv avatar Aug 04 '25 04:08 srikanthccv

I think this is a bug because there is no such thing as InfoContextContext

srikanthccv avatar Aug 04 '25 04:08 srikanthccv

Is it the same on the latest golangci-lint version?

tmzane avatar Aug 04 '25 05:08 tmzane