Skip to main content

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

sonar_tracing_langchain-0.5.3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

sonar_tracing_langchain-0.5.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file sonar_tracing_langchain-0.5.3.tar.gz.

File metadata

  • Download URL: sonar_tracing_langchain-0.5.3.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

Hashes for sonar_tracing_langchain-0.5.3.tar.gz
Algorithm Hash digest
SHA256 57b0bc275e0e457bc7339b4102ec43b8039f0fc825340d6a453408bb8c6f4961
MD5 9c8fc7a1f990ebd8c5a868c7a247ece7
BLAKE2b-256 bcbac3b7e3a98cbc88f71e3c2310e502b51eeca5f75f344b1d08ca800478faec

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonar_tracing_langchain-0.5.3.tar.gz:

Publisher: publish.yml on deep-dive-mexico/sonar

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

File details

Details for the file sonar_tracing_langchain-0.5.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sonar_tracing_langchain-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e323a59fbf23590548553cdde6d6d5670b1f4ce83cef8c4b5b7a3cb7f7e0da24
MD5 38eed7b0faa5b53ba88e7aeea9ec50a5
BLAKE2b-256 e71dffb12137adce752e86b1f3b8f325d5c3c80fbae0c6911119933f320c1d3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonar_tracing_langchain-0.5.3-py3-none-any.whl:

Publisher: publish.yml on deep-dive-mexico/sonar

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.5.3 This release

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page