Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Shim] Add Support for Context.tags (#1193)
* Add AutoCollectDependencies and Requests logic. * Add http.enable functionality and setUseDiskRetryCaching. * Add required no-op methods. * Add methods to telemetryClient that were previously supported. * Add global applicationinsights to * Include possible way to handle config property on the TelemetryClient. * Set NodeHttp methods as no-ops. * Framework for the config class to use with client.config. * Begin adding config properties to be modified on the client. * Fix client.config initialization issue and implement config properties. * Add shim usage detection env var. * Revert "Add shim usage detection env var." This reverts commit 0c77845. * Apply env var updates. * Fix env var check. * Revert "Fix env var check." This reverts commit 1536629. * Env var. * Update package-lock. * Test if parseConfig is breaking functionaltests. * Update parseConfig to only run when in shim mode. * Add more of the config parsing. * Add final config values. * Begin tests for the client.confg. * Fix distro tests and update httpInstrumentation configs. * Update functionaltests. * Update package-lock.json * Test functional test update. * Is parseConfig breaking functionalTests? * Test parseConfig except enableAutoCollect methods. * Remove autoCollect logic. * Test if we're wiping instrumentations configs when running autoCollect methods. * Update shim-applicationinsights.ts * Add flag to indicate shim is initialized so we know when to run * Implement noPatchModules and update noDiagnosticChannel. * Add ContextTagKeys for implementing them on the context object. * Fix import. * Add support for further properties on the config and begin working on setting the context.tags. * Write tests, and fix config parse methods. * Add further tests, and update config methods that weren't working. * Add final config tests, and clean up duplicate code. * Deliver warnings when trying to set unsupported values. * Implement maxBatchInterval. * Remove tests and values not supported by client.config in AppInsights 2.x. * Test functionalTest. * Fix functional tests. * Test functionalTest. * Update main.js * Does parseConfig break functionalTests. * Update client setup. * Remove unneded connStringParsing and enpointUrl contruction. * Convert config helper to a collection of functions. * Create NodeClient class. * Add required JSON config values. * Setup for supporting the first JSON config value. * Clean up telemetryClient. * Make track messages more explicit. * Add initial JSON config parsing update, deprecate instrumentationKey/endpointUrl,. * Update telemetryClient.ts * Split JsonConfig into shim and non-shim files. * Clean up config files and begin adding tests. * Fix duplicate files. * Clean up config files and add JSON tests. * Reconfigure file paths. * Add JSON config file tests. * Add tests for the configuration string and environment variables. * Update applicationinsights.json * Update JSON config fields. * Fix disabling http logic. * Update and fix request tracking. * Add attribute processor and tests. * Only run attribute processing in the shim. * Add logRecordProcessor for attaching context and update test. * Update comment. * Update package-lock.json * Update package-lock.json * Remove unused import. * Use regular SpanProcessor.
- Loading branch information