openinference-instrumentation-portkey
OpenInference Portkey AI Instrumentation
Decision gist · record as of 2026-08-14
Yes, if you use Portkey AI and need observability. The package is actively maintained, has no known vulnerabilities, carries a permissive license, and integrates cleanly with OpenTelemetry. Install it when you're ready to add distributed tracing to Portkey calls; it requires Python 3.10+ and the opentelemetry-api stack.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later and Portkey AI 0.1.0 or later to be installed separately.
- Low install friction with a pure-Python wheel.
- Active maintenance with a recent release (2 days old) and steady repository activity.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 is permissive; you can use this package freely in commercial and private projects without requiring source disclosure.
last release 2026-08-12 (2 days) · last repo commit 2026-08-14 · 1,147 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 95,715 downloads/mo, #13,253 on PyPI
Alternatives
Verify before relying
pip install openinference-instrumentation-portkey
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import SimpleSpanProcessor, ConsoleSpanExporter
from openinference.instrumentation.portkey import PortkeyInstrumentor
trace.set_tracer_provider(TracerProvider())
trace.get_tracer_provider().add_span_processor(
SimpleSpanProcessor(ConsoleSpanExporter())
)
PortkeyInstrumentor().instrument()- Whether Portkey AI 0.1.0+ is actually required or if earlier versions work
- Performance overhead of instrumentation on high-volume Portkey API calls
- Compatibility with specific Portkey AI versions beyond the stated 0.1.0+ requirement
What it is and what it does
This package adds automatic tracing to Portkey AI library calls by wrapping them with OpenTelemetry instrumentation. It captures request and response data—input messages, output messages, and model information—and exports them as OpenTelemetry spans, enabling you to integrate Portkey calls into distributed tracing systems and observability platforms.
You install it alongside opentelemetry-api and opentelemetry-instrumentation, then call PortkeyInstrumentor().instrument() to activate tracing for all subsequent Portkey AI operations. It's designed for developers building LLM applications who need visibility into API call behavior across distributed systems.
Use it for
- Monitor Portkey AI API latency and error rates in production using OpenTelemetry exporters (Jaeger, Datadog, etc.)
- Debug LLM application behavior by inspecting captured input/output messages in trace spans
- Correlate Portkey AI calls with other service traces in a microservices architecture
- Audit and log all Portkey AI interactions for compliance or troubleshooting
- Identify performance bottlenecks in LLM request/response cycles
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Portkey AI and need observability.
The package is actively maintained, has no known vulnerabilities, carries a permissive license, and integrates cleanly with OpenTelemetry. Install it when you're ready to add distributed tracing to Portkey calls; it requires Python 3.10+ and the opentelemetry-api stack.
Install
openinference-instrumentation-portkey on PyPI
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a recent release (2 days old) and steady repository activity. Supports Python 3.10 through 3.14.
Requires Python 3.10 or later and Portkey AI 0.1.0 or later to be installed separately.
License in practice
Apache-2.0 is permissive; you can use this package freely in commercial and private projects without requiring source disclosure.
Quickstart
pip install openinference-instrumentation-portkey
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import SimpleSpanProcessor, ConsoleSpanExporter
from openinference.instrumentation.portkey import PortkeyInstrumentor
trace.set_tracer_provider(TracerProvider())
trace.get_tracer_provider().add_span_processor(
SimpleSpanProcessor(ConsoleSpanExporter())
)
PortkeyInstrumentor().instrument()
Verify before relying
- Whether Portkey AI 0.1.0+ is actually required or if earlier versions work
- Performance overhead of instrumentation on high-volume Portkey API calls
- Compatibility with specific Portkey AI versions beyond the stated 0.1.0+ requirement
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <3.15,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesopeninference-instrumentationopeninference-semantic-conventionsopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionstyping-extensionswrapt |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 95,715 / month, #13,253 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: openinference_instrumentation_portkey-0.1.13-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opentelemetry instrumentation portkey”
- openinference-instrumentation-portkeyAutomatically instruments Portkey AI API calls with OpenTelemetry…
- opentelemetry-test-utilsProvides test utilities and helpers for writing unit tests for…
- opentelemetry-instrumentation-pymemcacheAdds OpenTelemetry tracing instrumentation to pymemcache client…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also openinference-instrumentation-openai · portkey-ai · openinference-instrumentation · literalai · openinference-instrumentation-openai-agents · openinference-instrumentation-google-genai · openinference-instrumentation-google-adk · opentelemetry-instrumentation-openai-v2 · opentelemetry-instrumentation-aiokafka · openinference-instrumentation-agno