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

Diagnostics: Adds response serialization time #3165

Merged
merged 13 commits into from
May 5, 2022

Conversation

imanvt
Copy link
Contributor

@imanvt imanvt commented Apr 28, 2022

Pull Request Template

Description

Add trace to track total serialization time in responses for additional debugging info.

Fixes a bug where if a start child is called on a disposed trace which would then cause the timing to be off. It will now walk up the trace tree until it finds the active parent and add the child to that parent to keep the structure valid.

Type of change

  • [] New feature (non-breaking change which adds functionality)

Closing issues

closes #3113

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@imanvt imanvt changed the title Users/jawilley/diagnostics/response Diagnostics: Adds Response Serialization Time Trace to Responses Apr 28, 2022
@github-actions github-actions bot dismissed their stale review April 28, 2022 05:01

All good!

@imanvt imanvt marked this pull request as ready for review May 3, 2022 14:10
ealsur
ealsur previously approved these changes May 3, 2022
j82w
j82w previously approved these changes May 3, 2022
@j82w j82w changed the title Diagnostics: Adds Response Serialization Time Trace to Responses Diagnostics: Adds response serialization time May 3, 2022
@j82w j82w merged commit ff88094 into master May 5, 2022
@j82w j82w deleted the users/jawilley/diagnostics/response branch May 5, 2022 14:34
j82w pushed a commit that referenced this pull request May 5, 2022
Add trace to track total serialization time in responses for additional debugging info.

Fixes a bug where if a start child is called on a disposed trace which would then cause the timing to be off. It will now walk up the trace tree until it finds the active parent and add the child to that parent to keep the structure valid.
j82w pushed a commit that referenced this pull request May 5, 2022
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.

Diagnostics: Add response serialization
3 participants