Skip to main content

Lookspan Python SDK — emit spans from AI agents to the local-first observability dashboard.

Project description

lookspan

Python SDK for Lookspan — emit spans from your AI agents to the local-first observability dashboard.

Install

pip install lookspan

Quick start

from lookspan import LookspanClient, Span, SpanType, SpanStatus

client = LookspanClient(endpoint="http://127.0.0.1:3100/api/ingest")

trace_id = client.new_trace_id()
span_id = client.new_span_id()

client.send([
    Span(
        trace_id=trace_id,
        span_id=span_id,
        parent_span_id=None,
        type=SpanType.LLM_CALL,
        name="my-agent.completion",
        started_at="2026-05-08T12:00:00Z",
        ended_at="2026-05-08T12:00:01Z",
        status=SpanStatus.OK,
        framework="custom",
        model="claude-opus-4-7",
        provider="anthropic",
    )
])

client.flush()

For framework-specific adapters, see lookspan-langgraph and lookspan-crewai.

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

lookspan-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

lookspan-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lookspan-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9857bdce9629dfa3b0c41c16f7d18420517a931d165a0e12b7178658e7a08110
MD5 e5e5fe60394ada3e7a8537a9b861ad22
BLAKE2b-256 a26c1bca37cc2f2984ac045ccfd689db2051169c53f4b689bf04d3ac01c06b7e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lookspan-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdf6ef65b415235c6c943d78dedd1507c94e058669fd31f243c1b831e37fd3b6
MD5 5065a732db58673d9ef8000e030d47dc
BLAKE2b-256 e3db758db0c716d9610563644173c10a67b77282270c176711491fe103c33d75

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