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,28 @@
import { Context, HrTime, Attributes } from '@opentelemetry/api';
import { Maybe } from '../utils';
import { Accumulation, Aggregator } from '../aggregator/types';
import { AttributeHashMap } from './HashMap';
/**
* Internal interface.
*
* Allows synchronous collection of metrics. This processor should allow
* allocation of new aggregation cells for metrics and convert cumulative
* recording to delta data points.
*/
export declare class DeltaMetricProcessor<T extends Maybe<Accumulation>> {
private _aggregator;
private _activeCollectionStorage;
private _cumulativeMemoStorage;
private _cardinalityLimit;
private _overflowAttributes;
private _overflowHashCode;
constructor(_aggregator: Aggregator<T>, aggregationCardinalityLimit?: number);
record(value: number, attributes: Attributes, _context: Context, collectionTime: HrTime): void;
batchCumulate(measurements: AttributeHashMap<number>, collectionTime: HrTime): void;
/**
* Returns a collection of delta metrics. Start time is the when first
* time event collected.
*/
collect(): AttributeHashMap<T>;
}
//# sourceMappingURL=DeltaMetricProcessor.d.ts.map