1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-25 22:41:46 +02:00

Unify api/label and api/kv in new label package (#1060)

* Move `api/label` to `label`

* Move `api/kv` package contents into `label` package

* Unify label package name

* Move `api/internal/rawhelpers.go` to `internal`

* Propagate replacing `api/kv` with `label` pkg

* golint

* Fix over-aggressive change

* Update Changelog
This commit is contained in:
Tyler Yahn
2020-08-17 20:25:03 -07:00
committed by GitHub
parent e44c9dee78
commit f995380e58
112 changed files with 1582 additions and 1611 deletions

View File

@@ -18,8 +18,8 @@ import (
"encoding/binary"
"fmt"
"go.opentelemetry.io/otel/api/kv"
api "go.opentelemetry.io/otel/api/trace"
"go.opentelemetry.io/otel/label"
)
// Sampler decides whether a trace should be sampled and exported.
@@ -35,7 +35,7 @@ type SamplingParameters struct {
Name string
HasRemoteParent bool
Kind api.SpanKind
Attributes []kv.KeyValue
Attributes []label.KeyValue
Links []api.Link
}
@@ -52,7 +52,7 @@ const (
// SamplingResult conveys a SamplingDecision and a set of Attributes.
type SamplingResult struct {
Decision SamplingDecision
Attributes []kv.KeyValue
Attributes []label.KeyValue
}
type probabilitySampler struct {