Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP dependency request tracking #130

Merged
merged 2 commits into from
Nov 3, 2016
Merged

HTTP dependency request tracking #130

merged 2 commits into from
Nov 3, 2016

Conversation

jasongin
Copy link
Member

@jasongin jasongin commented Nov 2, 2016

I'm resubmitting this as a new PR to target the develop branch instead of the master branch. See review comments on the original PR at #129. There are no changes here compared to that one, aside from rebasing on top of develop.

Add automatic collection of dependency HTTP request data.
@KamilSzostak
Copy link

:shipit:

remoteDependency.async = true;
remoteDependency.dependencyTypeName =
ContractsModule.Contracts.DependencyKind[ContractsModule.Contracts.DependencyKind.Http];
remoteDependency.dependencyKind = ContractsModule.Contracts.DependencyKind.Http;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe a new dependency type, something called AI dependency, is being introduced, and that would be used instead of HTTP for communications between AI components.

Check with Nizar on the details.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'll include that in the follow-up change that adds component correlation. But for now this code doesn't know when a dependency is an AI component or not.

// response listeners
if (response && response.once) {
response.once("finish", () => {
AutoCollectServerRequests.endRequest(client, requestParser, response, null, properties, null);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed that in both the Server and Client auto collectors, it's currently not parsing or generating a hashed ikey and on the HTTP headers. This will be needed for stitching different AI components in the map. Perhaps that's the next step?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that will be in a separate PR. I'm testing that now.

@KamilSzostak KamilSzostak merged commit de41abb into microsoft:develop Nov 3, 2016
@jasongin jasongin added this to the v0.17.0 milestone Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants