Skip to main content

LangSmith tracer backend for genblaze

Project description

genblaze-langsmith

LangSmith tracer backend for genblaze — AI-pipeline observability for generative media, with every run, step, and asset traced alongside its SHA-256 provenance manifest.

genblaze-langsmith plugs a LangSmithTracer into genblaze's observability stack, forwarding pipeline spans, provider calls, and manifest events to a LangSmith project. Combine it with genblaze's existing OTelTracer, LoggingTracer, or CompositeTracer for multi-destination tracing across your generative AI workflows.

Why genblaze-langsmith

  • End-to-end AI pipeline traces — every provider call (Sora, Veo, Runway, Flux, ElevenLabs, …) appears as a LangSmith span with prompt, model, params, cost, and manifest hash.
  • Drop-in tracer — attach to Pipeline(tracer=…); no code changes to providers or steps.
  • Composable — wrap with CompositeTracer to send to LangSmith + OTel + logs simultaneously.
  • Project-aware — traces land in the LangSmith project of your choice via standard LANGSMITH_* env vars.
  • Works offline — tracer no-ops if LangSmith isn't configured; no production risk.

Install

pip install genblaze-langsmith

Quickstart

pip install genblaze-core genblaze-langsmith
export LANGSMITH_API_KEY="..."
export LANGSMITH_PROJECT="genblaze-prod"
from genblaze_core import Modality, Pipeline
from genblaze_core.testing import MockVideoProvider
from genblaze_langsmith import LangSmithTracer

tracer = LangSmithTracer()   # reads LANGSMITH_* env vars

run, manifest = (
    Pipeline("traced-demo", tracer=tracer)
    .step(MockVideoProvider(), model="mock-v1",
          prompt="a drone shot over a city at dusk",
          modality=Modality.VIDEO)
    .run()
)

# Span with prompt, model, manifest hash, duration now appears in LangSmith
print(manifest.canonical_hash)

Compose with other tracers:

from genblaze_core import CompositeTracer, LoggingTracer, OTelTracer
from genblaze_langsmith import LangSmithTracer

tracer = CompositeTracer([LangSmithTracer(), OTelTracer(), LoggingTracer()])
# Pipeline("…", tracer=tracer)…

Credentials

Env var Notes
LANGSMITH_API_KEY LangSmith API key
LANGSMITH_PROJECT Target project (optional; defaults to LangSmith default)
LANGSMITH_ENDPOINT Override the LangSmith endpoint (optional)

Documentation

Related packages

License

MIT

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

genblaze_langsmith-0.3.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

genblaze_langsmith-0.3.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file genblaze_langsmith-0.3.0.tar.gz.

File metadata

  • Download URL: genblaze_langsmith-0.3.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for genblaze_langsmith-0.3.0.tar.gz
Algorithm Hash digest
SHA256 efb87280662a1280d36c9b49d7c765649b3b5236a5ee00607fa6339394c86201
MD5 ffb166ae034e26efed3a9d0348c7c73d
BLAKE2b-256 05210b7f26af49d27a2816295c8d3464fbc94bf8179db5ae2b4c2ffbba8a3f25

See more details on using hashes here.

Provenance

The following attestation bundles were made for genblaze_langsmith-0.3.0.tar.gz:

Publisher: release.yml on backblaze-labs/genblaze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file genblaze_langsmith-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for genblaze_langsmith-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d38b98f9274ab1908c32b02bb8e7ca43a2d678bbc407ccc2cbf508b87f2f016b
MD5 74aaf3cc6f91512c22467782615b7bc3
BLAKE2b-256 36e0b5a9b792a3fe06f6308f108a38f79f7c229b342eaa372dc912266583f894

See more details on using hashes here.

Provenance

The following attestation bundles were made for genblaze_langsmith-0.3.0-py3-none-any.whl:

Publisher: release.yml on backblaze-labs/genblaze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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