"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isOtelMetricsEndpointEnabled = isOtelMetricsEndpointEnabled;
const env_1 = require("../../env");
const helpers_1 = require("./helpers");
function isOtelMetricsEndpointEnabled() {
    if (helpers_1.OtelState.metricsEndpointPreference !== undefined)
        return helpers_1.OtelState.metricsEndpointPreference;
    const value = env_1.Env.OTEL_METRICS_ENDPOINT_ENABLED;
    if (value === 'true' || value === '1')
        return true;
    if (value === 'false' || value === '0')
        return false;
    return helpers_1.OtelState.metricsEndpointEnabled;
}
//# sourceMappingURL=metrics.js.map