MCPcopy Index your code
hub / github.com/coder/coder / mapToSlogFields

Function mapToSlogFields

coderd/tracing/slog_test.go:147–154  ·  view source on GitHub ↗
(m map[string]interface{})

Source from the content-addressed store, hash-verified

145}
146
147func mapToSlogFields(m map[string]interface{}) slog.Map {
148 fields := make(slog.Map, 0, len(m))
149 for k, v := range m {
150 fields = append(fields, slog.F(k, v))
151 }
152
153 return fields
154}
155
156func mapToBasicMap(m map[string]interface{}) map[string]interface{} {
157 basic := make(map[string]interface{}, len(m))

Callers 1

Test_SlogSinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected