"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildImpactMetricContext = void 0;
const environment_resolver_1 = require("./environment-resolver");
const buildImpactMetricContext = (customHeaders, staticContext) => {
    const metricsContext = { ...staticContext };
    if (customHeaders) {
        const environment = (0, environment_resolver_1.extractEnvironmentFromCustomHeaders)(customHeaders);
        if (environment) {
            metricsContext.environment = environment;
        }
    }
    return metricsContext;
};
exports.buildImpactMetricContext = buildImpactMetricContext;//# sourceMappingURL=https://cdn.windsurf.com/sourcemaps/c46c49e94b4d3f41181204d59809d8f1b2c48d68/node_modules/unleash-client/lib/impact-metrics/context.js.map