MCPcopy Create free account
hub / github.com/astercloud/aster / WithAttributes

Function WithAttributes

pkg/telemetry/tracer.go:94–98  ·  view source on GitHub ↗

WithAttributes 设置初始属性

(attrs ...Attribute)

Source from the content-addressed store, hash-verified

92
93// WithAttributes 设置初始属性
94func WithAttributes(attrs ...Attribute) SpanOption {
95 return func(c *SpanConfig) {
96 c.Attributes = append(c.Attributes, attrs...)
97 }
98}
99
100// WithTimestamp 设置开始时间
101func WithTimestamp(t time.Time) SpanOption {

Callers 6

WrapModelCallMethod · 0.92
WrapToolCallMethod · 0.92
agentTracingExampleFunction · 0.92
llmTracingExampleFunction · 0.92
toolTracingExampleFunction · 0.92
ExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected