sonar-tracing-langchain
LangChain / LangGraph adapter for sonar-tracing.
Installing this package makes the langchain framework available to
sonar-tracing — the adapter is discovered automatically via the
sonar_tracing.adapters entry point group, so there's nothing to import or wire
up by hand.
pip install sonar-tracing-langchain
import sonar_tracing as tracing
tracing.init(service_name="support-agent", framework="langchain")
Unlike Strands, LangChain is not OpenTelemetry-native. This adapter installs the
OpenInference LangChainInstrumentor, handing it the tracer provider
sonar-tracing owns. The instrumentor patches langchain-core's callback
manager, so the same integration captures both LangChain and LangGraph — there
is no separate LangGraph package to install.
Spans are emitted under the OpenInference semantic conventions and normalised by
the openinference@1 mapping pack on the ingest side.
License
MIT — see LICENSE.
Metadata
Release files for sonar-tracing-langchain 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sonar_tracing_langchain-0.5.3.tar.gz | 4.6 kB | With provenance | Details for sonar_tracing_langchain-0.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sonar_tracing_langchain-0.5.3-py3-none-any.whl | Python 3 | none | any | Details for sonar_tracing_langchain-0.5.3-py3-none-any.whl |
Total release size: 9.3 kB
Release files / sonar_tracing_langchain-0.5.3.tar.gz
| Download URL | sonar_tracing_langchain-0.5.3.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57b0bc275e0e457bc7339b4102ec43b8039f0fc825340d6a453408bb8c6f4961
|
|
BLAKE2b-256 checksum How to use checksums |
bcbac3b7e3a98cbc88f71e3c2310e502b51eeca5f75f344b1d08ca800478faec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logRelease files / sonar_tracing_langchain-0.5.3-py3-none-any.whl
| Download URL | sonar_tracing_langchain-0.5.3-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e323a59fbf23590548553cdde6d6d5670b1f4ce83cef8c4b5b7a3cb7f7e0da24
|
|
BLAKE2b-256 checksum How to use checksums |
e71dffb12137adce752e86b1f3b8f325d5c3c80fbae0c6911119933f320c1d3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logSecurity for sonar-tracing-langchain 0.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for sonar_tracing_langchain-0.5.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.