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,33 @@
import { ObservableResult, Attributes, ValueType, BatchObservableResult, Observable } from '@opentelemetry/api';
import { AttributeHashMap } from './state/HashMap';
import { ObservableInstrument } from './Instruments';
/**
* The class implements {@link ObservableResult} interface.
*/
export declare class ObservableResultImpl implements ObservableResult {
private _instrumentName;
private _valueType;
/**
* @internal
*/
_buffer: AttributeHashMap<number>;
constructor(_instrumentName: string, _valueType: ValueType);
/**
* Observe a measurement of the value associated with the given attributes.
*/
observe(value: number, attributes?: Attributes): void;
}
/**
* The class implements {@link BatchObservableCallback} interface.
*/
export declare class BatchObservableResultImpl implements BatchObservableResult {
/**
* @internal
*/
_buffer: Map<ObservableInstrument, AttributeHashMap<number>>;
/**
* Observe a measurement of the value associated with the given attributes.
*/
observe(metric: Observable, value: number, attributes?: Attributes): void;
}
//# sourceMappingURL=ObservableResult.d.ts.map