Skip to main content

Observability logger for Blend360 internal agent workflows.

Project description

Blend Agents Observability

PyPI version License Build Status

Enterprise-grade observability library for instrumenting multi-step AI agent systems. Capture, process, and visualize complex agent execution graphs with ease.

Note: This package is owned by Blend360 and is intended for internal usage only.

Features

  • Manual Instrumentation: Explicit control over trace creation and node lifecycle for precise observability.
  • AWS Kinesis Integration: Stream observability events directly to AWS Kinesis Data Streams.
  • Type-Safe Events: Leverages Pydantic for robust event validation, ensuring data integrity.
  • Resilient by Design: Gracefully handles errors and fails silently, preventing observability from impacting your application's stability.
  • Detailed Agent Tracking: Capture fine-grained details of agent execution, including reasoning steps and tool usage.
  • Parallel Workflow Support: Built-in support for tracing parallel execution branches and sub-traces.

Installation

pip install blend-agents-observability

Quick Start

Here's a simple example of how to get started with the AgentLogger:

from observability_logger import AgentLogger, generate_id

# 1. Initialize the logger for a new trace
logger = AgentLogger(
    trace_id=generate_id("trace_"),
    workflow_id="data_processing_v1",
    title="Data Processing Workflow"
)

# 2. Create a node to represent a step in your workflow
# This node is auto-completed upon creation.
validation_node = logger.miscellaneous(
    node_id=generate_id("node_"),
    config={"name": "Input Validation", "description": "Validate incoming data"},
    content="Validated 5 fields successfully",
    metadata={"fields_validated": 5}
)

# 3. Create another node
processing_node = logger.miscellaneous(
    node_id=generate_id("node_"),
    config={"name": "Data Transformation"},
    content="Transformed data to target schema"
)

# 4. Connect the nodes with an edge to show the flow
logger.edge(validation_node, processing_node)

# 5. End the trace when the workflow is complete
logger.end(status="completed")

This will generate a trace with two connected nodes and emit the corresponding events to your configured Kinesis stream.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blend_agents_observability-1.0.1.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blend_agents_observability-1.0.1-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file blend_agents_observability-1.0.1.tar.gz.

File metadata

File hashes

Hashes for blend_agents_observability-1.0.1.tar.gz
Algorithm Hash digest
SHA256 661dd80f09faee9ea67435a775f8ef675b3d42397f04cec4bb4f8c2b1e2b8fd6
MD5 ff5d74c302126b79c126087dc4c99c53
BLAKE2b-256 9acec23097f216c03f5ebe6ab312e848b8e8fcf556bf14ee5f725ed5af4b373c

See more details on using hashes here.

File details

Details for the file blend_agents_observability-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for blend_agents_observability-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f86fcfc19060faae182310f1817f456bbccfa64f0eca6e83d1d113fa1e020923
MD5 d86bab76ffc68f346404eef97d1a44f7
BLAKE2b-256 d273b8dd8780f4735736781aabca5e5fd7114528976707cf637c8f57a542a8d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page