Skip to main content

splunk-opentelemetry

PyPI - Version PyPI - Python Version


Splunk Distribution of OpenTelemetry Python

The Splunk distribution of OpenTelemetry Python provides multiple installable packages that automatically instrument your Python application to capture and report distributed traces to Splunk APM. Instrumentation works by patching supported libraries at runtime with an OpenTelemetry-compatible tracer to capture and export trace spans.

This distribution comes with the following defaults:

Requirements

This Splunk Distribution of OpenTelemetry requires Python 3.10 or later. Supported libraries are listed here.

Get started

For complete instructions on how to get started with the Splunk Distribution of OpenTelemetry Python, see Instrument a Python application for Splunk Observability Cloud in the official documentation.

For the standard OpenTelemetry setup, install the Splunk distribution in your application environment. The distribution configures OTLP exporters for traces, metrics, and logs, includes system metrics instrumentation, and enables Python logging instrumentation.

pip install splunk-opentelemetry

Install instrumentation packages for the libraries your application uses:

opentelemetry-bootstrap -a install

Then run your application with opentelemetry-instrument:

OTEL_SERVICE_NAME=my-python-service opentelemetry-instrument python app.py

By default, OTLP exporters send telemetry to a locally running Splunk OpenTelemetry Collector at http://localhost:4317. To send telemetry directly to Splunk Observability Cloud instead, set SPLUNK_REALM and SPLUNK_ACCESS_TOKEN before starting your application. SPLUNK_REALM configures direct ingest endpoints for traces and metrics.

Optional: Cisco SecureApp

To also install the Cisco SecureApp OpenTelemetry extension, specify the secureapp extra:

pip install "splunk-opentelemetry[secureapp]"

This extra installs the SecureApp Python agent, which reports runtime Python package dependencies through OpenTelemetry logs.

SecureApp dependency logs use the secureapp instrumentation scope. Collector deployments must route those logs to the SecureApp event ingest endpoint (/v3/event) and add the SecureApp instrumentation header on the outbound exporter. See docs/secureapp.md for setup details and docs/examples/secureapp-collector-config.yaml for a collector example.

Fleet Management with OpAMP

Splunk OTel Python provides OpAMP support. When enabled, the OpAMP client connects to the configured endpoint and reports the Python agent's status and settings. Agents connected to Splunk Observability Cloud appear on the Fleet Management page.

The default OpAMP endpoint is a local Splunk OpenTelemetry Collector. Set SPLUNK_OPAMP_ENDPOINT to use another OpAMP endpoint. See OpAMP for setup and limits.

License

The Splunk distribution of OpenTelemetry Python Instrumentation is a distribution of OpenTelemetry Python. It is licensed under the terms of the Apache Software License version 2.0. See the license file for more details.

Deprecation

ℹ️ The Splunk Distribution of OpenTelemetry Python version 1.X is deprecated as of February 28, 2025 and will reach end of support on February 28, 2026. Existing customers should consider migrating to Splunk OpenTelemetry Python 2.0 or higher. See Migrate to the Splunk Python 2.0 instrumentation.

Download files

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

Source Distribution

splunk_opentelemetry-2.12.0.tar.gz (63.1 kB view details)

Uploaded Source

Built Distribution

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

splunk_opentelemetry-2.12.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file splunk_opentelemetry-2.12.0.tar.gz.

File metadata

  • Download URL: splunk_opentelemetry-2.12.0.tar.gz
  • Upload date:
  • Size: 63.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":true,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.11.15"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.5.6 7 Apr 2026","python":"3.11.15","system":{"name":"Linux","release":"5.15.0-1084-aws"}} HTTPX2/2.9.1

File hashes

Hashes for splunk_opentelemetry-2.12.0.tar.gz
Algorithm Hash digest
SHA256 5c06cb211fea2cb41eaea97f350776e6904079a1a36a2e48499b3d3168528728
MD5 7bddb7a95f0f9a68d5be751a64cce02e
BLAKE2b-256 ec24bfb5e626d210003a0d7582ccb96d43ad41281b9136d1f43b11503cf16c3c

See more details on using hashes here.

File details

Details for the file splunk_opentelemetry-2.12.0-py3-none-any.whl.

File metadata

  • Download URL: splunk_opentelemetry-2.12.0-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":true,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.11.15"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.5.6 7 Apr 2026","python":"3.11.15","system":{"name":"Linux","release":"5.15.0-1084-aws"}} HTTPX2/2.9.1

File hashes

Hashes for splunk_opentelemetry-2.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da9e75e420194385bba170e1d25b7bbe1a5f83124a23b950aaadc72c427550fc
MD5 dd625ef83b84ff91a0064d383e84a383
BLAKE2b-256 00c2b3623ba07f1a08639aa5763c885eae9f0d0ed9e6c269f4c366aa47dc0a13

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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