-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: propagate trace context from user app #16812
base: main
Are you sure you want to change the base?
Conversation
cca825c
to
5755f6a
Compare
CodSpeed Performance ReportMerging #16812 will not alter performanceComparing Summary
|
5755f6a
to
37f6ef1
Compare
Thanks for the PR @fatih-acar! Can you provide a script showing how this new functionality would be used and add some unit tests? Both would be very valuable in verifying these changes. |
Not sure if a unit test is relevant here, but I'll describe my use case using code snippets and screenshots: Without this patch, I get two separate traces: one for the API call and one for the Prefect flow run. With this patch, I get a single trace spanning both services:
|
Thanks for the info @fatih-acar! I think it'd be worthwhile to add a test to prevent regression after the PR is merged. I think a test similar to this one would work well: prefect/tests/deployment/test_flow_runs.py Line 440 in c685760
|
This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment. |
37f6ef1
to
abb767d
Compare
We may want to propagate the traceparent from an instrumented app running Prefect deployments so that we get end-to-end tracing from the app to the Prefect workers. Signed-off-by: Fatih Acar <fatih@opsmill.com>
abb767d
to
c59e6a0
Compare
Thanks for the pointer, I have added a test that should be enough. |
We may want to propagate the traceparent from an instrumented app running Prefect deployments so that we get end-to-end tracing from the app to the Prefect workers.
Feel free to rework this but the main use case is about getting end-to-end traces for apps relying on Prefect deployments.
Checklist
<link to issue>
"mint.json
.