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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sonar_tracing_langchain-0.5.2.tar.gz.
File metadata
- Download URL: sonar_tracing_langchain-0.5.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
982890dd1764d167805ff24afcdd9d982f2d2969eefff2a8aaadc0b466119664
|
|
| MD5 |
61344599912bbcca011d6559e2c71ba1
|
|
| BLAKE2b-256 |
e42566bbad36719897ea5dd78a3c592ee58fdcced56bdf60f5f51d01bd1c0812
|
Provenance
The following attestation bundles were made for sonar_tracing_langchain-0.5.2.tar.gz:
Publisher:
publish.yml on deep-dive-mexico/sonar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonar_tracing_langchain-0.5.2.tar.gz -
Subject digest:
982890dd1764d167805ff24afcdd9d982f2d2969eefff2a8aaadc0b466119664 - Sigstore transparency entry: 2760575310
- Sigstore integration time:
-
Permalink:
deep-dive-mexico/sonar@e8b516b3f20cdbbd6e2189e992301530b8ffa8f9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/deep-dive-mexico
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e8b516b3f20cdbbd6e2189e992301530b8ffa8f9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sonar_tracing_langchain-0.5.2-py3-none-any.whl.
File metadata
- Download URL: sonar_tracing_langchain-0.5.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c159a1ca3335c981f7da6fdae32aa305295b593073e3e522750a2e6d02153f0e
|
|
| MD5 |
38438fd384bacdbb716bcf6b88e373f6
|
|
| BLAKE2b-256 |
5a4a7fe1f6a727b7998fb9f3af135167e8e3e4f80556216920f1b656ca202369
|
Provenance
The following attestation bundles were made for sonar_tracing_langchain-0.5.2-py3-none-any.whl:
Publisher:
publish.yml on deep-dive-mexico/sonar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonar_tracing_langchain-0.5.2-py3-none-any.whl -
Subject digest:
c159a1ca3335c981f7da6fdae32aa305295b593073e3e522750a2e6d02153f0e - Sigstore transparency entry: 2760575335
- Sigstore integration time:
-
Permalink:
deep-dive-mexico/sonar@e8b516b3f20cdbbd6e2189e992301530b8ffa8f9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/deep-dive-mexico
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e8b516b3f20cdbbd6e2189e992301530b8ffa8f9 -
Trigger Event:
workflow_dispatch
-
Statement type: