import { ResourceDetectionConfig } from "../config.cjs"; import { DetectedResource, ResourceDetector } from "../types.cjs"; import { Attributes } from "@opentelemetry/api"; //#region src/detectors/ResourceAttributesEnvDetector.d.ts /** * A detector that reads attributes from the OTEL_RESOURCE_ATTRIBUTES * environment variable. */ declare class ResourceAttributesEnvDetector implements ResourceDetector { private readonly _MAX_LENGTH; private readonly _COMMA_SEPARATOR; private readonly _LABEL_KEY_VALUE_SPLITTER; detect(_config?: ResourceDetectionConfig): DetectedResource; /** * Creates an attribute map from the OTEL_RESOURCE_ATTRIBUTES environment * variable. * * OTEL_RESOURCE_ATTRIBUTES: A comma-separated list of attributes in the * format "key1=value1,key2=value2". The ',' and '=' characters in keys * and values MUST be percent-encoded. Other characters MAY be percent-encoded. * * Per the spec, on any error (e.g., decoding failure), the entire environment * variable value is discarded. * * @param rawEnvAttributes The resource attributes as a comma-separated list * of key/value pairs. * @returns The parsed resource attributes. * @throws Error if parsing fails (caller handles by discarding all attributes) */ protected _parseResourceAttributes(rawEnvAttributes?: string): Attributes; } declare const resourceAttributesEnvDetector: ResourceAttributesEnvDetector; //#endregion export { ResourceAttributesEnvDetector, resourceAttributesEnvDetector }; //# sourceMappingURL=ResourceAttributesEnvDetector.d.cts.map