Closed freerangeeggs closed 4 years ago
Thanks for the report. It seems this bit was commented out for some reason or another. I'll enable it for the next release
Awesome, thank you!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I have an angular app calling a backend API, both log telemetry to their own instances of AI. I am attempting to have distributed tracing work across both. I am using AI-web 2.2.0 and AI-dotnet 2.10.0
This is what I see on the Front-end AI:
This is what I see when looking at AI for the API:
I expect to have the latter result in both AI instances.
As they are on different domains, I have
enableCorsCorrelation
set totrue
.I can see the
Request-Id
andRequest-Context
are correctly being sent to my API, and my API returningRequest-Context
with an AppId and the API has exposed theRequest-Context
so the header can be read byxhr.getAllResponseHeaders()
When stepping through the code, I can see
dependency.correlationContext
is being set to the appId rather thandependency.target
being appended with the appId.When looking at the network traffic,
correlationContext
is not being sent to AI. I can see that thecorrelationContext
is not being serialized on creation of the dependency envelope.If I use fiddler to manually adjust the traffic:
correlationContext
tobaseData
has no effect.target
to append| cid-v1:{APP_ID}
DOES have the desired effect, and I can see the same telemetry in the front-end AI as I do in the AI of the API.I have attempted to use a Telemetry Initializer to adjust the
target
so it includes the AppId, but it is overwritten before it is posted.Where I notice that
dependency.correlationContext
is being set in favor of appendingdependency.target
, I see that this is a change as part of thevNext
folder, should this be part of the current deployment?