Honeycomb OpenTelemetry distro which embeds the C++ SDK
Project description
honeycomb-pycpp
Python bindings for the OpenTelemetry C++ SDK. Provides high-performance tracing via a Pythonic interface, and ships as an OpenTelemetry distro for drop-in use with auto-instrumentation.
This library is experimental.
Installation
pip install honeycomb-pycpp
The wheel bundles the OpenTelemetry C++ SDK — no system-level dependencies required.
Configuration
The SDK is configured via a YAML file following the OpenTelemetry Configuration File Format. A default config is embedded in the package and used when no override is provided.
| Environment variable | Description |
|---|---|
OTEL_CONFIG_FILE |
Path to a custom configuration YAML. Overrides the embedded default. |
OTEL_EXPORTER_OTLP_ENDPOINT |
OTLP endpoint (default: http://localhost:4318) |
OTEL_EXPORTER_OTLP_HEADERS |
Headers to send with OTLP requests |
OTEL_RESOURCE_ATTRIBUTES |
Comma-separated resource attributes |
OTEL_SERVICE_NAME |
Service name |
Usage
As a distro (auto-instrumentation)
opentelemetry-instrument --service-name my-service python app.py
The distro registers itself automatically via entry points — no code changes required.
Programmatic use
import honeycomb_pycpp as otel
# Initialize from config file (or uses embedded default)
provider = otel.TracerProvider("path/to/otel.yaml")
tracer = provider.get_tracer("my-tracer")
with tracer.start_as_current_span("my-span") as span:
span.set_attribute("key", "value")
# ... do work ...
Current limitations
- Tracing only — metrics and logs are not yet supported
- Links require OpenTelemetry C++ ABI v2 (not yet enabled)
Building from source
Requirements: Python >= 3.10, CMake >= 3.15, C++17 compiler.
git clone https://github.com/honeycombio/honeycomb-pycpp
cd honeycomb-pycpp
pip install -r requirements-dev.txt
pip install -e .
To rebuild after C++ changes:
pip install -e . --force-reinstall --no-deps
To clean up cmake artifacts:
rm -rf CMakeCache.txt CMakeFiles/ cmake_install.cmake build/ dist/ *.egg-info/ *.so
License
Apache License 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 honeycomb_pycpp-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: honeycomb_pycpp-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 19.2 MB
- Tags: CPython 3.14, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89ddb03048ddebafbcfe1f4cc2e340f515dc48aa4f76353549175e4afdad7888
|
|
| MD5 |
6b8ff4778f528918c62d03da7bdddaf3
|
|
| BLAKE2b-256 |
44f6c782dcb6effcfd6dc32e0738fb3382f13bacdd4b4b0cba7251819827944d
|
Provenance
The following attestation bundles were made for honeycomb_pycpp-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
build-wheels.yml on honeycombio/honeycomb-pycpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
honeycomb_pycpp-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
89ddb03048ddebafbcfe1f4cc2e340f515dc48aa4f76353549175e4afdad7888 - Sigstore transparency entry: 1438561640
- Sigstore integration time:
-
Permalink:
honeycombio/honeycomb-pycpp@18a7e40f587bb2c4a3bbc94ffdaffac477a4dd56 -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/honeycombio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@18a7e40f587bb2c4a3bbc94ffdaffac477a4dd56 -
Trigger Event:
release
-
Statement type:
File details
Details for the file honeycomb_pycpp-0.1.3-cp314-cp314-macosx_15_0_x86_64.whl.
File metadata
- Download URL: honeycomb_pycpp-0.1.3-cp314-cp314-macosx_15_0_x86_64.whl
- Upload date:
- Size: 14.7 MB
- Tags: CPython 3.14, macOS 15.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0891b8ba32711f7afced5e764d2f69619147aa074e1c176786fdabc76c49c068
|
|
| MD5 |
d0589e9028940c3f07653f5c3c4af8cd
|
|
| BLAKE2b-256 |
ca9ae0208d4f94b5dc345cf7d8174782300ba0ed0447644e25830e49061b4219
|
Provenance
The following attestation bundles were made for honeycomb_pycpp-0.1.3-cp314-cp314-macosx_15_0_x86_64.whl:
Publisher:
build-wheels.yml on honeycombio/honeycomb-pycpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
honeycomb_pycpp-0.1.3-cp314-cp314-macosx_15_0_x86_64.whl -
Subject digest:
0891b8ba32711f7afced5e764d2f69619147aa074e1c176786fdabc76c49c068 - Sigstore transparency entry: 1438561593
- Sigstore integration time:
-
Permalink:
honeycombio/honeycomb-pycpp@18a7e40f587bb2c4a3bbc94ffdaffac477a4dd56 -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/honeycombio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@18a7e40f587bb2c4a3bbc94ffdaffac477a4dd56 -
Trigger Event:
release
-
Statement type:
File details
Details for the file honeycomb_pycpp-0.1.3-cp314-cp314-macosx_14_0_arm64.whl.
File metadata
- Download URL: honeycomb_pycpp-0.1.3-cp314-cp314-macosx_14_0_arm64.whl
- Upload date:
- Size: 14.1 MB
- Tags: CPython 3.14, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe7994669d6df54c654c5caad0feb49c2f2c24ab88673444664531214a972635
|
|
| MD5 |
ebb234dc7e817993a7a951f593ac3f17
|
|
| BLAKE2b-256 |
230f49d4a8d662c8dbd066a2a8ca2c6dfda23b25c430007e8c740892e6588359
|
Provenance
The following attestation bundles were made for honeycomb_pycpp-0.1.3-cp314-cp314-macosx_14_0_arm64.whl:
Publisher:
build-wheels.yml on honeycombio/honeycomb-pycpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
honeycomb_pycpp-0.1.3-cp314-cp314-macosx_14_0_arm64.whl -
Subject digest:
fe7994669d6df54c654c5caad0feb49c2f2c24ab88673444664531214a972635 - Sigstore transparency entry: 1438561601
- Sigstore integration time:
-
Permalink:
honeycombio/honeycomb-pycpp@18a7e40f587bb2c4a3bbc94ffdaffac477a4dd56 -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/honeycombio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@18a7e40f587bb2c4a3bbc94ffdaffac477a4dd56 -
Trigger Event:
release
-
Statement type:
File details
Details for the file honeycomb_pycpp-0.1.3-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: honeycomb_pycpp-0.1.3-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 18.1 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caa426f1b7f6625e9944d4bd7e869aa4910f380be232a2722959ced990f4cf9a
|
|
| MD5 |
525efb31712bb4f07792a448a5dd745d
|
|
| BLAKE2b-256 |
a15ab485583071ff6b29b7db3ec14f05fae0c60721f2c25f41e27343ddd49343
|
Provenance
The following attestation bundles were made for honeycomb_pycpp-0.1.3-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:
Publisher:
build-wheels.yml on honeycombio/honeycomb-pycpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
honeycomb_pycpp-0.1.3-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl -
Subject digest:
caa426f1b7f6625e9944d4bd7e869aa4910f380be232a2722959ced990f4cf9a - Sigstore transparency entry: 1438561636
- Sigstore integration time:
-
Permalink:
honeycombio/honeycomb-pycpp@18a7e40f587bb2c4a3bbc94ffdaffac477a4dd56 -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/honeycombio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@18a7e40f587bb2c4a3bbc94ffdaffac477a4dd56 -
Trigger Event:
release
-
Statement type: