Skip to content
otel-profiling: Experimental Python Continuous Profiler Exporting OTLP Profiles

otel-profiling: Experimental Python Continuous Profiler Exporting OTLP Profiles

First seen 24 Nov 2026, 20:50 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 24, 2026 at 20:50 UTC
  • •otel-profiling 0.2.0 is a Python continuous profiler that exports OTLP profiles linked to traces and spans.
  • •It relies on CPython's private _remote_debugging API, so breaking changes are expected between Python minor versions.
  • •Default process mode on Linux uses a separate sampler process and prctl(PR_SET_PTRACER) instead of elevated privileges.
  • •The profiler only starts when OTEL_PROFILES_EXPORTER=otlp is set, so calling instrument() unconditionally is safe.
  • •The articles describe no vulnerability, exploitation, or threat activity.

A Python package named otel-profiling (version 0.2.0), published on PyPI and mirrored in a GitHub repository by a different author, provides a continuous CPU and wall-clock profiler that exports OpenTelemetry profiles over OTLP linked to active traces and spans. The profiler samples thread stacks using CPython's private _remote_debugging API, which the package describes as requiring no extra privileges (no SYS_PTRACE or eBPF) and no native dependencies. Its default process mode runs a separate sampler process on Linux, using prctl(PR_SET_PTRACER) to permit memory reads, and falls back to thread mode on other platforms or when blocked. The profiler starts only when OTEL_PROFILES_EXPORTER=otlp is set. The project is labelled experimental, because the OTLP profiles signal is still v1development and the sampling API is private, so breaking changes are expected between Python minor versions. The articles describe a software library for observability, not a vulnerability or attack, and no CVEs, exploitation, or threat actors are mentioned.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

More articles in this cluster (4)

Common questions

Does this profiler need elevated privileges?
The package states it needs no extra privileges such as SYS_PTRACE or eBPF, using prctl(PR_SET_PTRACER) in process mode on Linux. If seccomp blocks process_vm_readv, it logs a warning and falls back to thread mode.
Is it production-ready?
The package is labelled experimental because the OTLP profiles signal is still v1development and the CPython sampling API is private, so breaking changes are expected between Python minor versions.
Which backends can receive the profiles?
The articles list the OpenTelemetry Collector with the profiles feature gate, OpenObserve, and Grafana Pyroscope, all accepting OTLP profiles over HTTP/protobuf.