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

Function attributesToMap

coderd/tracing/slog_test.go:203–210  ·  view source on GitHub ↗
(attrs []attribute.KeyValue)

Source from the content-addressed store, hash-verified

201}
202
203func attributesToMap(attrs []attribute.KeyValue) map[string]interface{} {
204 m := make(map[string]interface{}, len(attrs))
205 for _, attr := range attrs {
206 m[string(attr.Key)] = attr.Value.AsInterface()
207 }
208
209 return m
210}

Callers 1

Test_SlogSinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected