(
spanType: SpanType,
customAttributes: Record<string, string | number | boolean> = {},
)
| 154 | } |
| 155 | |
| 156 | function createSpanAttributes( |
| 157 | spanType: SpanType, |
| 158 | customAttributes: Record<string, string | number | boolean> = {}, |
| 159 | ): Record<string, string | number | boolean> { |
| 160 | const baseAttributes = getTelemetryAttributes() |
| 161 | |
| 162 | const attributes: Record<string, string | number | boolean> = { |
| 163 | ...baseAttributes, |
| 164 | 'span.type': spanType, |
| 165 | ...customAttributes, |
| 166 | } |
| 167 | |
| 168 | return attributes |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * Start an interaction span. This wraps a user request -> Claude response cycle. |
no test coverage detected