text: package tracing
  
  import (
  	"go.opentelemetry.io/otel/api/core"
  	"go.opentelemetry.io/otel/api/key"
  )
  
  type Attrs map[string]string
  
  // keyValueSlice converts our internal representation of kv pairs to the tracing
  // SDK's kv representation.
  //
  func keyValueSlice(attrs Attrs) []core.KeyValue {
  	var (
  		res = make([]core.KeyValue, len(attrs))
  		idx = 0
  	)
  
  	for k, v := range attrs {
  		res[idx] = key.New(k).String(v)
  		idx++
  	}
  
  	return res
  }
  