Skip to content

Commit

Permalink
[Beta] Shim: Context Correlation (#1161)
Browse files Browse the repository at this point in the history
* 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
JacksonWeber committed Aug 1, 2023
1 parent b35a1a3 commit aaf0773
Show file tree
Hide file tree
Showing 4 changed files with 6,708 additions and 741 deletions.

0 comments on commit aaf0773

Please sign in to comment.