Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

SQL Dependency has wrong parrentId #778

@stefrostik

Description

@stefrostik

Repro Steps

  1. AddApplicationInsightsTelemetry to youe service
  2. Add call to some API, SQL Server

Actual Behavior

Requests logged correctly, API call is child,
SQL Server call is NOT a child of root request. It is on the same level with request
image
image

Expected Behavior

SQL Server dependency should have request as parrent
image

NOTE: workaround is to store RequestId in Activity when request starts, and set parrentId in sql dependency in custom telemetryProccessor

Version Info

SDK Version : Microsoft.ApplicationInsights.AspNetCore Version=2.3.0 - 2.5.1
.NET Version : netcoreapp2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions