You've already forked opentelemetry-go
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user