MCPcopy Create free account
hub / github.com/dagger/dagger / Attributes

Method Attributes

engine/clientdb/span.go:130–136  ·  view source on GitHub ↗

Attributes returns the attributes of the span

()

Source from the content-addressed store, hash-verified

128
129// Attributes returns the attributes of the span
130func (ros *readOnlySpan) Attributes() []attribute.KeyValue {
131 var attrs []*otlpcommonv1.KeyValue
132 if err := UnmarshalProtoJSONs(ros.DB.Attributes, &otlpcommonv1.KeyValue{}, &attrs); err != nil {
133 slog.Warn("failed to unmarshal attributes", "error", err)
134 }
135 return telemetry.AttributesFromProto(attrs)
136}
137
138// Links returns the links of the span
139func (ros *readOnlySpan) Links() []sdktrace.Link {

Callers 5

recordOTelSpanMethod · 0.80
FindResourceMethod · 0.80
TestGoldenMethod · 0.80
libsecretProviderFunction · 0.80
ExportSpansMethod · 0.80

Calls 2

UnmarshalProtoJSONsFunction · 0.85
WarnMethod · 0.65

Tested by 1

TestGoldenMethod · 0.64