( runId: string, componentRef: string, metadata?: Partial<Omit<ExecutionContextMetadata, 'runId' | 'componentRef'>>, )
| 217 | } |
| 218 | |
| 219 | function createMetadata( |
| 220 | runId: string, |
| 221 | componentRef: string, |
| 222 | metadata?: Partial<Omit<ExecutionContextMetadata, 'runId' | 'componentRef'>>, |
| 223 | ): ExecutionContextMetadata { |
| 224 | const scoped: ExecutionContextMetadata = { |
| 225 | ...metadata, |
| 226 | runId, |
| 227 | componentRef, |
| 228 | }; |
| 229 | |
| 230 | return Object.freeze(scoped); |
| 231 | } |
| 232 | |
| 233 | function createScopedTrace( |
| 234 | trace: ITraceService, |
no outgoing calls
no test coverage detected