import { Attributes, Context } from "@opentelemetry/api"; //#region src/view/AttributesProcessor.d.ts /** * The {@link AttributesProcessor} is responsible for customizing which * attribute(s) are to be reported as metrics dimension(s) and adding * additional dimension(s) from the {@link Context}. */ interface IAttributesProcessor { /** * Process the metric instrument attributes. * * @param incoming The metric instrument attributes. * @param context The active context when the instrument is synchronous. * `undefined` otherwise. */ process: (incoming: Attributes, context?: Context) => Attributes; } /** * Create an {@link IAttributesProcessor} that filters by allowed attribute names and drops any names that are not in the * allow list. */ declare function createAllowListAttributesProcessor(attributeAllowList: string[]): IAttributesProcessor; /** * Create an {@link IAttributesProcessor} that drops attributes based on the names provided in the deny list */ declare function createDenyListAttributesProcessor(attributeDenyList: string[]): IAttributesProcessor; //#endregion export { IAttributesProcessor, createAllowListAttributesProcessor, createDenyListAttributesProcessor }; //# sourceMappingURL=AttributesProcessor.d.mts.map