@instana/collector
Version:
The Instana Node.js metrics and trace data collector
35 lines (29 loc) • 1.02 kB
JavaScript
/*
* (c) Copyright IBM Corp. 2021
* (c) Copyright Instana Inc. and contributors 2016
*/
;
// max time spend waiting for an agent response
exports.requestTimeout = 5000;
// @ts-ignore - Cannot redeclare exported variable
exports.host = '127.0.0.1';
// @ts-ignore - Cannot redeclare exported variable
exports.port = 42699;
/** @type {string} */
exports.agentUuid = undefined;
// @ts-ignore - Cannot redeclare exported variable
exports.autoProfile = false;
/** @type {import('@instana/core/src/util/normalizeConfig').AgentConfig} config */
exports.config = {};
/**
* @param {import('../types/collector').CollectorConfig} config
*/
exports.init = function init(config) {
// @ts-ignore - Cannot redeclare exported variable
exports.host = config.agentHost;
// @ts-ignore - Cannot redeclare exported variable
exports.port = config.agentPort;
// TODO: Why is autoProfile part of agentOpts? O_o
// @ts-ignore - Cannot redeclare exported variable
exports.autoProfile = config.autoProfile;
};