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

[AppInsights] fixing SB result-reporting #2015

Merged
merged 1 commit into from
Nov 16, 2018
Merged

Conversation

brettsam
Copy link
Member

Fixes #2012.

Also re-adds ISdkVersionProvider from the reverted Http tracking commit, as it's a better way for us to update the version in multiple places.

@brettsam brettsam requested a review from lmolkova November 15, 2018 23:55
@@ -139,7 +172,10 @@ public async Task ServiceBusRequestWithoutParent()
Assert.True(double.TryParse(request.Properties[LogConstants.FunctionExecutionTimeKey], out double functionDuration));
Assert.True(request.Duration.TotalMilliseconds >= functionDuration);

TelemetryValidationHelpers.ValidateRequest(request, operationName, operationId, parentId, LogCategories.Results);
Assert.DoesNotContain(request.Properties, p => p.Key == LogConstants.HttpMethodKey);
Copy link
Member

Choose a reason for hiding this comment

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

i think you validate it in the TelemetryValidationHelpers.ValidateRequest


// Remove the Succeeded property as it's duplicated
request.Properties.Remove(LogConstants.SucceededKey);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI -- this part where we check the SucceededKey is the major change. It will be needed for Http as well.

Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we can prevent it from being set on properties at the first place. It's set in the AppInsightsLogger. but now it's needed because of microsoft/ApplicationInsights-dotnet-server#1038 anyway

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.

2 participants