From cd8ce1cc11320db5e6d933e8732d1bb9942a247d Mon Sep 17 00:00:00 2001 From: dmathieu <42@dmathieu.com> Date: Fri, 28 Nov 2025 13:49:54 +0100 Subject: [PATCH 1/3] add linter checking we use the latest semconv version --- .golangci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 6b0eb20e049..539d479a58b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -54,6 +54,14 @@ linters: - pkg: crypto/md5 - pkg: crypto/sha1 - pkg: crypto/**/pkix + semconv: + list-mode: lax + deny: + - pkg: go.opentelemetry.io/otel/semconv + desc: Use go.opentelemetry.io/otel/semconv/v1.37.0 instead. If a newer semconv version has been released, update the depguard rule. + allow: + - go.opentelemetry.io/otel/semconv/v1.21.0 # still used by otelmongo + - go.opentelemetry.io/otel/semconv/v1.37.0 gocritic: disabled-checks: - appendAssign From 13959ef5bcb8a0cb7b7ff9ebb8686d4cea5bf6d8 Mon Sep 17 00:00:00 2001 From: Damien Mathieu <42@dmathieu.com> Date: Sat, 29 Nov 2025 10:29:35 +0100 Subject: [PATCH 2/3] Update .golangci.yml Co-authored-by: James Thompson --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 539d479a58b..816a9a3e69b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -58,7 +58,7 @@ linters: list-mode: lax deny: - pkg: go.opentelemetry.io/otel/semconv - desc: Use go.opentelemetry.io/otel/semconv/v1.37.0 instead. If a newer semconv version has been released, update the depguard rule. + desc: Use go.opentelemetry.io/otel/semconv/v1.38.0 instead. If a newer semconv version has been released, update the depguard rule. allow: - go.opentelemetry.io/otel/semconv/v1.21.0 # still used by otelmongo - go.opentelemetry.io/otel/semconv/v1.37.0 From 655bc527214efcdbba6a21faaf150aaaf2f04053 Mon Sep 17 00:00:00 2001 From: Damien Mathieu <42@dmathieu.com> Date: Sat, 29 Nov 2025 10:29:48 +0100 Subject: [PATCH 3/3] Update .golangci.yml Co-authored-by: James Thompson --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 816a9a3e69b..8f22a6bbffe 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -62,6 +62,7 @@ linters: allow: - go.opentelemetry.io/otel/semconv/v1.21.0 # still used by otelmongo - go.opentelemetry.io/otel/semconv/v1.37.0 + - go.opentelemetry.io/otel/semconv/v1.38.0 gocritic: disabled-checks: - appendAssign