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