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

[Tracing][Internal] Use otel_trace_id for correlation between line run and otel trace #2553

Merged
merged 2 commits into from
Apr 1, 2024

Conversation

thy09
Copy link
Contributor

@thy09 thy09 commented Mar 29, 2024

Description

Use otel_trace_id for correlation between line run and otel trace.

This pull request primarily focuses on enhancing the traceability of operations in the codebase. The changes involve storing the OpenTelemetry (otel) trace ID in the PromptFlow (pf) trace for correlation. This is achieved by introducing the OperationContext class and adding the otel_trace_id attribute to the FlowRunInfo class.

Here are the key changes:

Traceability enhancements:

All Promptflow Contribution checklist:

  • The pull request does not introduce [breaking changes].
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: suggested workflow.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@thy09 thy09 requested review from a team as code owners March 29, 2024 09:56
@github-actions github-actions bot added promptflow executor The changes related to the execution of the flow promptflow-tracing labels Mar 29, 2024
Copy link

github-actions bot commented Mar 29, 2024

promptflow-tracing test result

 12 files   12 suites   3m 47s ⏱️
  9 tests   9 ✅ 0 💤 0 ❌
108 runs  108 ✅ 0 💤 0 ❌

Results for commit 6950f4f.

♻️ This comment has been updated with latest results.

zzn2
zzn2 previously approved these changes Mar 29, 2024
zzn2
zzn2 previously approved these changes Mar 29, 2024
@thy09 thy09 force-pushed the heta/add-otel-trace-id-in-line-run branch from a7fcceb to 771e68c Compare March 29, 2024 10:06
Copy link

github-actions bot commented Mar 29, 2024

promptflow SDK CLI Azure E2E Test Result heta/add-otel-trace-id-in-line-run

  4 files    4 suites   3m 59s ⏱️
201 tests 181 ✅ 20 💤 0 ❌
804 runs  724 ✅ 80 💤 0 ❌

Results for commit 6950f4f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Mar 29, 2024

Executor E2E Test Result heta/add-otel-trace-id-in-line-run

223 tests   221 ✅  6m 40s ⏱️
  1 suites    2 💤
  1 files      0 ❌

Results for commit 6950f4f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Mar 29, 2024

SDK CLI Test Result heta/add-otel-trace-id-in-line-run

   12 files     12 suites   48m 15s ⏱️
  513 tests   494 ✅ 19 💤 0 ❌
2 052 runs  1 976 ✅ 76 💤 0 ❌

Results for commit 6950f4f.

♻️ This comment has been updated with latest results.

@thy09 thy09 merged commit 7757f80 into main Apr 1, 2024
64 checks passed
@thy09 thy09 deleted the heta/add-otel-trace-id-in-line-run branch April 1, 2024 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
executor The changes related to the execution of the flow promptflow promptflow-tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants