Skip to content

Add logging via Hatchet instrument #39

@yedidyakfir

Description

@yedidyakfir

Summary

Add structured logging to Mageflow using Hatchet's instrumentation capabilities.

Background

Currently, logging is done manually via ctx.log() calls scattered throughout the codebase (e.g., in mageflow/swarm/workflows.py and mageflow/callbacks.py). Hatchet provides an instrumentation API that can provide more structured and comprehensive logging.

Requirements

  • Set up Hatchet instrument/instrumentation for automatic logging
  • Integrate with existing logging patterns
  • Ensure logs are properly captured in Hatchet's dashboard

References

  • Hatchet SDK instrumentation documentation
  • Current logging locations: mageflow/callbacks.py, mageflow/swarm/workflows.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions