Skip to content

[BUG] EH SDK: Enqueued Time on root activity, not on the links #10324

@Dmitry-Matveev

Description

@Dmitry-Matveev

Describe the bug
This recent PR has added attribute "x-opt-enqueued-time" to the Diagnostic Scope activity.
While debugging this new behavior with new version of Application Insights SDK that reads this attribute, I noticed that there is disconnect between the two SDKs on the expected attribute location:

Side note: AI SDK reads "enqueueTime" attribute while value is posted to "x-opt-enqueued-time" attribute, one of the SDKs would need to fix that too (I guess, AI?).

Expected behavior
I had a conversation with original developer on AI SDK side and the expected behavior seem to be to store enqueued time in the links of the activity because it's the way to post that time for each separate message. (+ Both SDKs should agree on the attribute name :) )

Actual behavior (include Exception or Stack Trace)
EH SDK stores enqueued time on the main Activity propagated with DS event.

To Reproduce

  • Debug LineCounter application (make sure both projects are marked as startup).
  • Ensure latest AI SDK is installed (or build from local source)
  • Ensure latest EH SDK is installed (or build from local source)
  • Set BP on AI reading EH DS event, check that root Activity has tag, not linked activities.

Environment:

  • Latest master from source, EH SDK, commit 257703e.
  • Win10, .NET Core 3.0
  • Visual Studio 16.4.5

Metadata

Metadata

Labels

ClientThis issue is related to a non-management packageEvent HubsbugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions