This commit is contained in:
houseme
2025-10-01 20:33:15 +08:00
parent 7b67ce4c68
commit ba6c629a4a
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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
}
}