Skip to content

feat: Task Execution Stats + Metric Agg Mode (ENG-1690) #22

Merged
monoxgas merged 9 commits intomainfrom
nick/eng-1690-sdk-log-stats-about-task-executions-as-metrics
Apr 25, 2025
Merged

feat: Task Execution Stats + Metric Agg Mode (ENG-1690) #22
monoxgas merged 9 commits intomainfrom
nick/eng-1690-sdk-log-stats-about-task-executions-as-metrics

Conversation

@monoxgas
Copy link
Contributor

@monoxgas monoxgas commented Apr 24, 2025

  • Add metric agggregation mode locally
  • Add early task execution stats.
  • Cleanup dependencies which aren't used or should be optional

Generated Summary:

  • Introduced a new aggregation mode feature to enhance metric handling.
  • Added MetricMode type for better clarity and control over metric logging.
  • Implemented aggregation modes in log_metric method across several classes (Dreadnode, RunSpan, TaskSpan).
  • Enhanced apply_mode method in the Metric class to support modes: direct, avg, sum, min, max, and count.
  • Updated logging for task execution to include metrics like execution count and success rate with appropriate modes.
  • Removed unused dependencies from pyproject.toml, optimizing the project.
  • Refined docstrings to provide detailed explanations for new parameter mode.
  • These changes improve metrics tracking capabilities and promote better data analysis within the application.

This summary was generated with ❤️ by rigging

@linear
Copy link

linear bot commented Apr 24, 2025

ENG-1690 SDK - Log stats about task executions as metrics

Might be metrics, or could be a net-new object, but Will would like a mechanism to show stats about individual tasks - how many times they were run, how many times they failed, etc.

@dreadnode-renovate-bot dreadnode-renovate-bot bot added the area/python Changes to Python package configuration and dependencies label Apr 24, 2025
@dreadnode-renovate-bot dreadnode-renovate-bot bot added the area/github Changes made to GitHub Actions label Apr 25, 2025
@monoxgas monoxgas merged commit fa57bad into main Apr 25, 2025
7 checks passed
@monoxgas monoxgas deleted the nick/eng-1690-sdk-log-stats-about-task-executions-as-metrics branch April 25, 2025 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/github Changes made to GitHub Actions area/python Changes to Python package configuration and dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant