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.0.tar.gz (47.8 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.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for blend_agents_observability-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ac31bd424e0c7e7a6225dce45f41fe4fcc326c48efe571e9bec046aafd9fbc13
MD5 bdd89f9f4ab038abd0be0dcd18e7c4ab
BLAKE2b-256 fcf5ec6b965bef0ca9c6eb209f6aef80d7bf09e37eabb50399d0712d6afe7b52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for blend_agents_observability-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e190a606defd11686e69ddd6a9f41dff5fdbfc385177f626c0eed38916d40f6f
MD5 cf6a8283d636cc038802c2b4fe8b6c01
BLAKE2b-256 ce40580dd12f3a823e1946c35f9b8689aa5d74b28463b86ceb009fd24f1c1dfc

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