Files
klz-cables.com/.pnpm-store/v10/files/86/c7367e5275c6bad75b45a3f766362d78802af05e67d245c427cda85e877f20e05d6c4528ff770a503c6d0c1fa055f5c3b226d056b878adf681962e5966b125
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

44 lines
1.4 KiB
Plaintext

import { AttributeValue } from '@opentelemetry/api';
import { ResourceDetectionConfig } from './config';
/**
* Interface for a Resource Detector.
* A resource detector returns a set of detected resource attributes.
* A detected resource attribute may be an {@link AttributeValue} or a Promise of an AttributeValue.
*/
export interface ResourceDetector {
/**
* Detect resource attributes.
*
* @returns a {@link DetectedResource} object containing detected resource attributes
*/
detect(config?: ResourceDetectionConfig): DetectedResource;
}
export type DetectedResource = {
/**
* Detected resource attributes.
*/
attributes?: DetectedResourceAttributes;
};
/**
* An object representing detected resource attributes.
* Value may be {@link AttributeValue}s, a promise to an {@link AttributeValue}, or undefined.
*/
type DetectedResourceAttributeValue = MaybePromise<AttributeValue | undefined>;
/**
* An object representing detected resource attributes.
* Values may be {@link AttributeValue}s or a promise to an {@link AttributeValue}.
*/
export type DetectedResourceAttributes = Record<string, DetectedResourceAttributeValue>;
export type MaybePromise<T> = T | Promise<T>;
export type RawResourceAttribute = [
string,
MaybePromise<AttributeValue | undefined>
];
/**
* Options for creating a {@link Resource}.
*/
export type ResourceOptions = {
schemaUrl?: string;
};
export {};
//# sourceMappingURL=types.d.ts.map