mirror of
https://gitee.com/johng/gf
synced 2026-07-06 05:42:20 +08:00
fix
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user