From ba6c629a4ac61e25f8232dfe971a768afc13c7fa Mon Sep 17 00:00:00 2001 From: houseme Date: Wed, 1 Oct 2025 20:33:15 +0800 Subject: [PATCH] fix --- .golangci.yml | 3 ++- internal/otel/otel_config.go | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 68f1039d1..6a5fae5d6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,7 @@ +version: "2" run: concurrency: 4 - go: "1.24" + go: "1.25" modules-download-mode: readonly issues-exit-code: 2 tests: false diff --git a/internal/otel/otel_config.go b/internal/otel/otel_config.go index 9fd11ec5b..696619f9b 100644 --- a/internal/otel/otel_config.go +++ b/internal/otel/otel_config.go @@ -11,10 +11,8 @@ package otel type Config struct { // TraceSQLEnabled enables OpenTelemetry tracing for SQL operations. TraceSQLEnabled bool `json:"traceSQLEnabled"` - // TraceRequestEnabled enables tracing of HTTP request parameters. TraceRequestEnabled bool `json:"traceRequestEnabled"` - // TraceResponseEnabled enables tracing of HTTP response parameters. TraceResponseEnabled bool `json:"traceResponseEnabled"` } @@ -41,4 +39,4 @@ func (c *Config) IsTracingRequestEnabled() bool { // IsTracingResponseEnabled returns whether HTTP response tracing is enabled. func (c *Config) IsTracingResponseEnabled() bool { return c.TraceResponseEnabled -} \ No newline at end of file +}