How to use the @instana/core.secrets function in @instana/core

To help you get started, we’ve selected a few @instana/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github instana / nodejs-sensor / packages / collector / src / announceCycle / unannounced.js View on Github external
'use strict';

var secrets = require('@instana/core').secrets;
var tracing = require('@instana/core').tracing;

var logger;
logger = require('../logger').getLogger('announceCycle/unannounced', function(newLogger) {
  logger = newLogger;
});
var agentConnection = require('../agentConnection');
var agentOpts = require('../agent/opts');
var pidStore = require('../pidStore');

var retryDelay = 60 * 1000;

module.exports = {
  enter: function(ctx) {
    tryToAnnounce(ctx);
  },