Skip to main content

TraceCtrl Enterprise SDK — agentic AI security observability for the enterprise platform

Project description

tracectrl-enterprise

TraceCtrl Enterprise SDK — instrument your agentic AI application to send traces to a TraceCtrl Enterprise deployment.

Apache 2.0 licensed. Thin wrapper over the OSS tracectrl package — tracectrl does the OpenTelemetry SDK heavy lifting; this package adds enterprise-specific defaults (collector endpoint, required ingest-key auth, fail-loud behaviour) and the tag_agent() API for self-identifying agent spans.

Install

pip install tracectrl-enterprise

Quickstart

import os
from tracectrl_enterprise import configure, tag_agent

configure(ingest_key=os.environ["TRACECTRL_INGEST_KEY"])

@tag_agent(
    id="payment-bot",
    name="PaymentAgent",
    framework="strands",  # framework you're running on; informational
    role="payment_processing",
)
def run_payment(query: str) -> str:
    # ... your agent logic ...
    return "ok"

Every call to run_payment creates an OpenTelemetry span with the canonical TraceCtrl attributes (openinference.span.kind=AGENT, tracectrl.agent.id, tracectrl.agent.name, etc.), exported via OTLP/gRPC with Authorization: Bearer <ingest_key> to your TraceCtrl Enterprise collector. The collector resolves your ingest key to a tenant and stamps tracectrl.tenant_id on every span — your SDK doesn't (and can't) set tenancy itself; the collector is the trust boundary.

Configuration

configure(ingest_key=..., endpoint=..., service_name=...) accepts:

Argument Env var Default Required
ingest_key TRACECTRL_INGEST_KEY yes — fails loud if not set
endpoint TRACECTRL_ENDPOINT https://app.tracectrl.ai/ingest no
service_name TRACECTRL_SERVICE_NAME tracectrl-agent no

If you call configure() without an ingest_key argument, it reads TRACECTRL_INGEST_KEY from the environment. If neither is set, it raises ValueError — unlike the OSS SDK which can be configured to fail silently, enterprise installs always fail loud on missing auth.

Framework instrumentation

For automatic tracing of supported frameworks (Strands, etc.), install the OSS instrumentor package alongside this one:

pip install tracectrl-instrumentation-strands

The instrumentor hooks into the same global OpenTelemetry TracerProvider that tracectrl-enterprise.configure() sets up, so spans from instrumented framework calls are exported the same way as your @tag_agent-decorated functions.

License

Apache 2.0. The TraceCtrl Enterprise server-side platform (engine, collector, UI) is BUSL-licensed; the SDK is permissively licensed so it can be embedded in your proprietary code without restriction.

Reporting issues

https://github.com/tracectrl/tracectrl-enterprise/issues

Project details


Download files

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

Source Distribution

tracectrl_enterprise-0.1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

tracectrl_enterprise-0.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file tracectrl_enterprise-0.1.0.tar.gz.

File metadata

  • Download URL: tracectrl_enterprise-0.1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tracectrl_enterprise-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a9902f9c6fbcfc51756ec29a22022766f80f403c9f0f36fd0d9fc246e5d88fc
MD5 aa19585118f71368a2f093546a15282d
BLAKE2b-256 6d75706c0cc642508c201101d43a30bb592da480afb3b29c5d05b77b95a45f4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tracectrl_enterprise-0.1.0.tar.gz:

Publisher: publish-sdk.yml on tracectrl/tracectrl-enterprise

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

File details

Details for the file tracectrl_enterprise-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tracectrl_enterprise-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 316dc773d715754fb6dd888406fa49d0b86f1d49178bcbb62db49951db253a16
MD5 ffd8e1cf40cb72a5fcee09ce52c66bfd
BLAKE2b-256 4ef563fb7be04d3f540316c113f181ba81049c95a2ed9a3498b9db9844238d45

See more details on using hashes here.

Provenance

The following attestation bundles were made for tracectrl_enterprise-0.1.0-py3-none-any.whl:

Publisher: publish-sdk.yml on tracectrl/tracectrl-enterprise

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

Supported by

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