mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
chore: refactor set in collection package (#5016)
This commit is contained in:
@@ -29,8 +29,8 @@ func TraceHandler(serviceName, path string, opts ...TraceOption) func(http.Handl
|
||||
opt(&options)
|
||||
}
|
||||
|
||||
ignorePaths := collection.NewSet()
|
||||
ignorePaths.AddStr(options.traceIgnorePaths...)
|
||||
ignorePaths := collection.NewSet[string]()
|
||||
ignorePaths.Add(options.traceIgnorePaths...)
|
||||
|
||||
return func(next http.Handler) http.Handler {
|
||||
tracer := otel.Tracer(trace.TraceName)
|
||||
|
||||
Reference in New Issue
Block a user