Update test framework: fix run_tests.py to support all test files, add auto-import-check for test files

This commit is contained in:
qiaoxinjiu
2026-05-09 15:11:30 +08:00
parent eb053a347f
commit eaba8328da
21739 changed files with 2236758 additions and 719 deletions

View File

@@ -0,0 +1,25 @@
import { HrTime, BatchObservableCallback, Observable, ObservableCallback } from '@opentelemetry/api';
import { ObservableInstrument } from '../Instruments';
/**
* An internal interface for managing ObservableCallbacks.
*
* Every registered callback associated with a set of instruments are be evaluated
* exactly once during collection prior to reading data for that instrument.
*/
export declare class ObservableRegistry {
private _callbacks;
private _batchCallbacks;
addCallback(callback: ObservableCallback, instrument: ObservableInstrument): void;
removeCallback(callback: ObservableCallback, instrument: ObservableInstrument): void;
addBatchCallback(callback: BatchObservableCallback, instruments: Observable[]): void;
removeBatchCallback(callback: BatchObservableCallback, instruments: Observable[]): void;
/**
* @returns a promise of rejected reasons for invoking callbacks.
*/
observe(collectionTime: HrTime, timeoutMillis?: number): Promise<unknown[]>;
private _observeCallbacks;
private _observeBatchCallbacks;
private _findCallback;
private _findBatchCallback;
}
//# sourceMappingURL=ObservableRegistry.d.ts.map