Commit 4aca390
agent release - add traces (#226)
# Summary
We sometimes run into errors and having these traced makes it easier to
know which ones have failed for later analysis.
This pull request enhances the `queue_exception_handling` function in
`pipeline.py` by integrating OpenTelemetry tracing and adding detailed
metrics to improve observability of task queue error processing.
### Observability Enhancements:
* Added OpenTelemetry tracing to `queue_exception_handling`
* Introduced metrics to track task queue processing, including:
- Total number of tasks (`mck.agent.queue.tasks_total`).
- Count of tasks with exceptions (`mck.agent.queue.exceptions_count`).
- Success rate of tasks (`mck.agent.queue.success_rate`).
- Types of exceptions encountered (`mck.agent.queue.exception_types`).
- Boolean flag indicating if exceptions were found
(`mck.agent.queue.has_exceptions`)
* Updated logging to provide more granular details about exceptions
encountered in the task queue
## Proof of Work
<!-- Enter your proof that it works here.-->
## Checklist
- [ ] Have you linked a jira ticket and/or is the ticket in the title?
- [ ] Have you checked whether your jira ticket required DOCSP changes?
- [ ] Have you checked for release_note changes?
## Reminder (Please remove this when merging)
- Please try to Approve or Reject Changes the PR, keep PRs in review as
short as possible
- Our Short Guide for PRs:
[Link](https://docs.google.com/document/d/1T93KUtdvONq43vfTfUt8l92uo4e4SEEvFbIEKOxGr44/edit?tab=t.0)
- Remember the following Communication Standards - use comment prefixes
for clarity:
* **blocking**: Must be addressed before approval.
* **follow-up**: Can be addressed in a later PR or ticket.
* **q**: Clarifying question.
* **nit**: Non-blocking suggestions.
* **note**: Side-note, non-actionable. Example: Praise
* --> no prefix is considered a question
---------
Co-authored-by: Anand <[email protected]>
Co-authored-by: Anand Singh <[email protected]>1 parent 6c9d6c9 commit 4aca390
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1352 | 1352 | | |
1353 | 1353 | | |
1354 | 1354 | | |
| 1355 | + | |
1355 | 1356 | | |
| 1357 | + | |
| 1358 | + | |
1356 | 1359 | | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
1357 | 1366 | | |
1358 | 1367 | | |
1359 | 1368 | | |
| 1369 | + | |
| 1370 | + | |
1360 | 1371 | | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
1361 | 1380 | | |
1362 | 1381 | | |
1363 | 1382 | | |
| |||
0 commit comments