Skip to main content

parlot-instrumentation-langgraph

OpenTelemetry instrumentation for LangGraph / LangChain agents.

from parlot.instrumentation.langgraph import configure

configure(agent_id="support-bot", version="0.1.0", channel="webchat")

# Normal LangGraph usage — no per-call callbacks required
graph.invoke(
    {"messages": [("user", "Hello")]},
    config={"configurable": {"thread_id": "demo-1"}},
)

If thread_id is not provided, Parlot mints one automatically (anon-…) so contract spans still attach to a session.

Pass channel (e.g. webchat, sms) when LangGraph owns the session so ingest does not assume voice. Optional modality overrides the default derived from channel (webchat/sms/whatsapp → text, voice → voice).

Set PARLOT_ENDPOINT and PARLOT_API_KEY. Generative AI content capture (message bodies / tool payloads; default on) is documented in Concepts. Override with configure(capture_genai_content=False).

Session application logs (Python logging, default on) follow Settings → Logs / configure(capture_logs=…, log_level=…). Not print(). Treat content like stdout for PII.

When used inside a LiveKit voice agent that already called parlot.instrumentation.livekit.configure(), this package nests GenAI operational spans under the active LiveKit session and does not emit duplicate parlot.session / parlot.turn spans — LiveKit owns channel and modality.

Download files

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

Source Distribution

parlot_instrumentation_langgraph-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for parlot_instrumentation_langgraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6b051ff60af2b449ac4ebe18434c0e4345c7b47e5a868bb756591e848634018
MD5 f8cc81b93397d93ccf8eaeac94521637
BLAKE2b-256 aa47c8d63fddaf547ffb5899a9d4c16df5f7cf721cf9589c2abe351a4eac0167

See more details on using hashes here.

Provenance

The following attestation bundles were made for parlot_instrumentation_langgraph-0.1.0.tar.gz:

Publisher: publish.yml on parlot-ai/sdk

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

File details

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

File metadata

File hashes

Hashes for parlot_instrumentation_langgraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e116859a74710554c7a364696fad4acea52186e7e0f14a14f0a010ed6e1afb9
MD5 6db65bf59ae92ceb7fac18988f23bdd4
BLAKE2b-256 677caee1b9626af787e4d283b961a815a1807b50c1cfe0e2d1fb1cad251f67e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for parlot_instrumentation_langgraph-0.1.0-py3-none-any.whl:

Publisher: publish.yml on parlot-ai/sdk

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

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