Skip to content

Commit ef13d3c

Browse files
authored
exporter/trace: remove unused createKeyValueAttributes (#425)
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
1 parent e64c644 commit ef13d3c

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

exporter/trace/cloudtrace.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -195,22 +195,3 @@ func (e *Exporter) ExportSpans(ctx context.Context, spanData []sdktrace.ReadOnly
195195
func (e *Exporter) Shutdown(ctx context.Context) error {
196196
return e.traceExporter.Shutdown(ctx)
197197
}
198-
199-
func createKeyValueAttributes(attr map[string]interface{}) []attribute.KeyValue {
200-
kv := make([]attribute.KeyValue, 0, len(attr))
201-
202-
for k, v := range attr {
203-
switch val := v.(type) {
204-
case bool:
205-
kv = append(kv, attribute.Bool(k, val))
206-
case int64:
207-
kv = append(kv, attribute.Int64(k, val))
208-
case float64:
209-
kv = append(kv, attribute.Float64(k, val))
210-
case string:
211-
kv = append(kv, attribute.String(k, val))
212-
}
213-
}
214-
215-
return kv
216-
}

0 commit comments

Comments
 (0)