prefect
prefect copied to clipboard
Instrument task runs
Adds OTEL instrumentation into the task engine so that if a user were to configure application-level telemetry, the task run engine will now emit spans for runs that capture metadata about the task run in span attributes and state changes as events on the span.
What impact will this have if I do not have telemetry configured? https://opentelemetry.io/docs/concepts/instrumentation/libraries/#performance
Performance OpenTelemetry API is no-op and very performant when there is no SDK in the application
This PR also sets up some testing infrastructure for testing otel instrumentation implemented by @collincchoy in #16010
Checklist
- [ ] This pull request references any related issue by including "closes
<link to issue>
"- If no issue exists and your change is not a small fix, please create an issue first.
- [ ] If this pull request adds new functionality, it includes unit tests that cover the changes
- [ ] If this pull request removes docs files, it includes redirect settings in
mint.json
. - [ ] If this pull request adds functions or classes, it includes helpful docstrings.