import { ReadableSpan } from '@opentelemetry/tracing' ; import SpansRepository from './SpansRepository' ; /**
 * A Class that allows access of telemetry from the test run. for example: HTTP GET spans. Mongo db spans, etc.
 *
 * Read more about OpenTelemetry [here] https export class TelemetryRepository { private readonly spansRepository : SpansRepository ; param spans constructor ( spans ) { this . spansRepository = new SpansRepository ( spans ) ; } /**
     * Get the SpansRepository object that allows you to do filtering on the spans. chaining is filters supported.
     */ get spans ( ) { return this . spansRepository ; } } export const initRepository = ( spans ) => new TelemetryRepository ( spans ) ;