Skip to content

Query correlated activity id #2391

Closed

Description

The query backend service can now handle correlated activity id. This will enable better troubleshooting of query issues as there currently isn't any way to correlate cross partition queries.

The change that need to be made:

  1. New query should create a new correlated activity id. All the query request sent to the backend should include this property in the header with the key "x-ms-cosmos-correlated-activityid" is in the WFConstants.CorrelatedActivityId
  2. The ITrace diagnostics need to include the correlated activity id
  3. The continuation token should be modified to include the correlated activity id. This can be done in a separate PR. Adding the property should not break back compatibility of the current token.

Query already has a partially wired through correlated activity id. This will need to be expanded to send it through the NetworkAttachedDocumentContainer and the query client.

Testing should use a custom requesthandler to make sure that all the pages sent by the query include the correct correlated activity id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions