Skip to content

Conversation

@guysmoilov
Copy link
Member

Also catch and wrap TransportServerError to add the trace ID in the logged error.

Also catch and wrap TransportServerError to add the trace ID in the logged error.
@guysmoilov guysmoilov self-assigned this Jan 25, 2026
@guysmoilov guysmoilov added the enhancement New feature or request label Jan 25, 2026
@dagshub
Copy link

dagshub bot commented Jan 25, 2026

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for W3C Trace Context in GraphQL requests by implementing traceparent header generation and improving error handling to include trace IDs in logged errors.

Changes:

  • Implemented W3C Trace Context traceparent header generation with non-zero validation
  • Updated GraphQL client to include traceparent headers in requests
  • Enhanced error handling to catch TransportServerError and use traceparent as fallback support ID

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
dagshub/common/tracing.py New module implementing W3C Trace Context traceparent generation with proper validation
dagshub/data_engine/client/data_client.py Updated GraphQL execution to add traceparent headers and improved error handling with fallback to trace ID
dagshub/common/config.py Added configuration flag to allow disabling traceparent functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@guysmoilov guysmoilov requested a review from Copilot January 25, 2026 13:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@guysmoilov guysmoilov merged commit ad984d9 into main Jan 25, 2026
9 of 18 checks passed
@guysmoilov guysmoilov deleted the infra/traceparent-req-header branch January 25, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants