Skip to main content

Vendor-neutral, OpenTelemetry-first telemetry for AI agents: traces, cost, budgets, and a tamper-evident audit trail — ship to any backend, no agent-code changes.

Project description

ForgeSight

Instrument any AI agent in a few lines — then ship traces, cost, metrics, evals, budgets, and a tamper-evident audit trail to any backend by changing one line of config. OpenTelemetry-first. Vendor-neutral. Never an agent-code change.

License Python

▶️ See the 30-second demo — instrument an agent and watch the trace, cost, and a verified tamper-evident audit trail appear.

forgesight is the batteries-included facade — the package most people install.

pip install "forgesight[otel]"
import forgesight
from forgesight import telemetry

forgesight.configure(exporters=["otel"])          # pick a backend by name — that's it

with telemetry.agent_run("pr-reviewer", version="2.1.0", metadata={"team": "platform"}) as run:
    with run.llm_call("anthropic", "claude-sonnet-4-5") as call:
        resp = await client.messages.create(...)
        call.record_usage(input=resp.usage.input_tokens, output=resp.usage.output_tokens)
    with run.tool_call("github_get_diff"):
        diff = gh.get_diff(pr)

Cost, token usage, trace nesting, metrics, and multi-backend fan-out come for free. Swap otellangfuse, datadog, clickhouse, prometheus — the agent code never moves.

What you get

  • 🔌 Vendor-neutral. The core depends on no backend or model-provider SDK. Backends are packages you install and select by config.
  • 📐 OpenTelemetry-first. GenAI semantic conventions, so any OTLP backend works with no dedicated package.
  • 💰 Cost built in. Token usage → USD via a pluggable pricing table — the same number everywhere — plus live attribution by team and pre-call budget projection.
  • 🚦 Non-blocking & fault-isolated. Export runs on a background worker; a backend outage never breaks a run.
  • 🔒 Secure by default. Content capture is opt-in; redaction runs before export.
  • 🧾 Accountability. A tamper-evident, hash-chained audit trail with a compliance query/export surface.

Install backends & integrations as extras

pip install "forgesight[otel]"                      # one backend (OTLP → any OTel platform)
pip install "forgesight[otel,langfuse,datadog]"     # several
pip install "forgesight[all]"                       # everything except the heavy CrewAI tree

Extras: otel · prometheus · langfuse · clickhouse · datadog · mcp · fastapi · github · governance · eval · registry · audit · adapters-langgraph · adapters-crewai. Installing a package enables a backend; config selects it.

Docs

License

Apache-2.0

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

forgesight-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

forgesight-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file forgesight-0.1.0.tar.gz.

File metadata

  • Download URL: forgesight-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for forgesight-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea600449045833a88acf3b185d10b793d937ad91ad7807de935a7d1efcb2451b
MD5 ac31d1430276003260fe47c0c2a2e95a
BLAKE2b-256 eb22ff72c0d4c741e88f9df74b847772ccd395ef0da8f9897f7922d2b0579607

See more details on using hashes here.

File details

Details for the file forgesight-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: forgesight-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for forgesight-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55425ad3619a59333223cd20d9d4d055d0ddbddfeb9c78f996d7b00e3b1106eb
MD5 2b521577cf328f562cf6e964a972d45c
BLAKE2b-256 b627026eb4795f0a5cd6a2a94b8ab47e9c7e40b690f5a496e534d15613376330

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