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

feat: support otel context propagation for databend-query #15096

Merged
merged 4 commits into from
Mar 27, 2024

Conversation

ZhiHanZ
Copy link
Collaborator

@ZhiHanZ ZhiHanZ commented Mar 26, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR.

  1. support to parse opentelemetry traceparent header to retrieve parent trace context on http handler
  2. support to parse baggage header for distributed context propagation
  3. add go driver example for how to realize distributed tracing using native go driver with databend

Demo:

image

baggage info:
iteration and username are baggages added by driver
image

  • Fixes #[Link the issue here]

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test manually tested it on local distributed environment

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

@github-actions github-actions bot added the pr-feature this PR introduces a new feature to the codebase label Mar 26, 2024
@ZhiHanZ ZhiHanZ requested review from andylokandy and BohuTANG March 26, 2024 14:17
@ZhiHanZ ZhiHanZ requested a review from andylokandy March 27, 2024 03:36
@ZhiHanZ ZhiHanZ enabled auto-merge March 27, 2024 05:31
@ZhiHanZ ZhiHanZ added this pull request to the merge queue Mar 27, 2024
Merged via the queue into databendlabs:main with commit 1861718 Mar 27, 2024
72 checks passed
@ZhiHanZ ZhiHanZ deleted the feat/tracing-context-propagation branch March 27, 2024 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants