type go.opentelemetry.io/otel/trace/internal/telemetry.Attr
44 uses
go.opentelemetry.io/otel/trace/internal/telemetry (current package)
attr.go#L7: type Attr struct {
attr.go#L13: func String(key, value string) Attr {
attr.go#L14: return Attr{key, StringValue(value)}
attr.go#L18: func Int64(key string, value int64) Attr {
attr.go#L19: return Attr{key, Int64Value(value)}
attr.go#L23: func Int(key string, value int) Attr {
attr.go#L28: func Float64(key string, value float64) Attr {
attr.go#L29: return Attr{key, Float64Value(value)}
attr.go#L33: func Bool(key string, value bool) Attr {
attr.go#L34: return Attr{key, BoolValue(value)}
attr.go#L39: func Bytes(key string, value []byte) Attr {
attr.go#L40: return Attr{key, BytesValue(value)}
attr.go#L45: func Slice(key string, value ...Value) Attr {
attr.go#L46: return Attr{key, SliceValue(value...)}
attr.go#L51: func Map(key string, value ...Attr) Attr {
attr.go#L52: return Attr{key, MapValue(value...)}
attr.go#L56: func (a Attr) Equal(b Attr) bool {
resource.go#L19: Attrs []Attr `json:"attributes,omitempty"`
scope.go#L18: Attrs []Attr `json:"attributes,omitempty"`
span.go#L105: Attrs []Attr `json:"attributes,omitempty"`
span.go#L310: Attrs []Attr `json:"attributes,omitempty"`
span.go#L399: Attrs []Attr `json:"attributes,omitempty"`
value.go#L44: mapptr *Attr
value.go#L133: func MapValue(kvs ...Attr) Value {
value.go#L228: func (v Value) AsMap() []Attr {
value.go#L230: return unsafe.Slice((*Attr)(sp), v.num)
value.go#L238: func (v Value) asMap() []Attr {
value.go#L239: return unsafe.Slice((*Attr)(v.any.(mapptr)), v.num)
value.go#L282: return slices.EqualFunc(sv, sw, Attr.Equal)
value.go#L293: func sortMap(m []Attr) []Attr {
value.go#L294: sm := make([]Attr, len(m))
value.go#L296: slices.SortFunc(sm, func(a, b Attr) int {
value.go#L363: Values []Attr `json:"values"`
value.go#L366: Values []Attr `json:"values"`
value.go#L440: var val struct{ Values []Attr }
go.opentelemetry.io/otel/trace
auto.go#L247: s.span.Attrs[idx] = telemetry.Attr{
auto.go#L252: s.span.Attrs = append(s.span.Attrs, telemetry.Attr{
auto.go#L265: func convCappedAttrs(limit int, attrs []attribute.KeyValue) ([]telemetry.Attr, uint32) {
auto.go#L288: func convAttrs(attrs []attribute.KeyValue) []telemetry.Attr {
auto.go#L294: out := make([]telemetry.Attr, 0, len(attrs))
auto.go#L301: out = append(out, telemetry.Attr{Key: key, Value: val})
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |