Skip to content

Use TelemetryClient to log dependencies to App Insights dependencies table

Kelly Domico requested to merge dependency-logger into master

Updated the "logDependency" method in CoreLogger to use TelemetryClient to log to Application Insights "dependencies" table. This will allow tracking of dependencies separate from traces. The old version use SLF4J to log to the "traces" table with INFO level.

Additionally added target and type to DependencyPayload so those values can also be tracked in Application Insights. The MDC context values are also included in "customDimensions" so the correlation ID and data partition ID can be tracked.

Edited by Kelly Domico

Merge request reports