mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Update Prometheus to v0.307.2 * Update otel collector * Update OTel collector
20 lines
319 B
Go
20 lines
319 B
Go
package config
|
|
|
|
import "strings"
|
|
|
|
func toAuthSchemePreferenceList(cfg string) []string {
|
|
if len(cfg) == 0 {
|
|
return nil
|
|
}
|
|
parts := strings.Split(cfg, ",")
|
|
ids := make([]string, 0, len(parts))
|
|
|
|
for _, p := range parts {
|
|
if id := strings.TrimSpace(p); len(id) > 0 {
|
|
ids = append(ids, id)
|
|
}
|
|
}
|
|
|
|
return ids
|
|
}
|