Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Beta] Shim: Context Correlation (#1161)
* Fix the base configuration of the appInsights file. * Add configuration methods. * Quick lint fix on the logHandler. * Fix types. * Update to no longer use heartbeat. * Fix shim tests. * Update passing config. * Update how we set connectionString and add logging. * Fix tests. * Initial commit * Provide basis of remade correlationContextManager. * Correct getting the current context and begin conversion between OTel and legacy context objects. * Implement converting spans to CorrelationContext and running with context. * Clean up comments. * Update wrapEmitter, wrapCallback and startOperation methods. * Get the operationName from inside Azure Fns. * Remove unnesseary componenets of the context manager. * Remove customProperties, functionality for headers, and refactor traceParent as a skeleton. * Update to using OpenTelemetry TraceState where possible. * Remove reliance on TraceState utility and switch to OTel. * Add stubbed setDistributedTracingMode method in case customers try to use tracing modes other than W3C. * Update the startOperation method to extract context using propagator. * Update correlationContext. * Update correlationContextManager documentation. * Update and add tests for getCurrentContext and runWithContext. * Update and test wrapCallback. * Update getCurrentContext, import the concrete implementation of OTel tracestate and finish tests. * Reconfigure startOperation to remove dupe code and add test for headers. * Resolve merge conflicts with updated AppInsights beta.
- Loading branch information