Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should allow setting the agent tags', function() {
var agent = new https.Agent({ keepAlive: true, keepAliveMsecs: 10 });
var l = new BufferedMetricsLogger({
reporter: new reporters.DataDogReporter('yolo', 'yolo', agent),
});
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
dogapi.client.proxy_agent.keepAlive.should.equal(true);
dogapi.client.proxy_agent.keepAliveMsecs.should.equal(10);
// jscs:enable requireCamelCaseOrUpperCaseIdentifiers
});
});
it('should allow setting the agent tags', function() {
var agent = new https.Agent({ keepAlive: true, keepAliveMsecs: 10 });
var l = new BufferedMetricsLogger({
reporter: new reporters.DataDogReporter('yolo', 'yolo', agent),
});
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
dogapi.client.proxy_agent.keepAlive.should.equal(true);
dogapi.client.proxy_agent.keepAliveMsecs.should.equal(10);
// jscs:enable requireCamelCaseOrUpperCaseIdentifiers
});
});
export default function send(metric, value) {
if (dogapi.client.api_key && dogapi.client.app_key) dogapi.metric.send(metric, value);
}