Skip to main content

OpenInference auto-instrumentation for the AgentMinds Python SDK. Emits OTel spans tagged with openinference.span.kind + agentminds.* attributes when agentminds.capture_* and agentminds.init are called.

Project description

openinference-instrumentation-agentminds

OpenInference auto-instrumentation for the agentminds Python SDK. When attached, every call to agentminds.capture_message, agentminds.capture_exception, and agentminds.init emits an OpenTelemetry span carrying the canonical OpenInference attribute namespace plus an agentminds.* extension namespace for ARP-specific fields.

ARP §8.4 — 5-layer identity compliance: AgentMinds becomes OpenInference-instrumented when this package is installed.

Install

pip install openinference-instrumentation-agentminds

Use

from openinference_instrumentation_agentminds import AgentMindsInstrumentor

# Attach to your existing OTel SDK setup
AgentMindsInstrumentor().instrument()

# From here, agentminds calls produce spans automatically:
import agentminds
agentminds.init(dsn="https://pk_yoursite_xxx@api.agentminds.dev/yoursite")
# ↑ emits span: name="agentminds.init", kind=CHAIN

agentminds.capture_message("p95 climbed", level="warning")
# ↑ emits span: name="agentminds.capture_message",
#               openinference.span.kind="CHAIN",
#               agentminds.event.level="warning"

Span attributes

Attribute Source Type Notes
openinference.span.kind OpenInference v1 string One of LLM/CHAIN/TOOL/RETRIEVER/EMBEDDING/AGENT/GUARDRAIL/EVALUATOR/RERANKER/UNKNOWN
agentminds.profile_version ARP §2 string Always "1.2.0" while this package is on 0.1.x
agentminds.profile.spec_url ARP §2 string https://github.com/agentmindsdev/profile
agentminds.dsn.host ARP §2 string The host segment of the DSN, e.g. api.agentminds.dev
agentminds.dsn.site_id ARP §2 string Site identifier from the DSN
agentminds.release ARP §2 string Release / git sha if agentminds.init(release=...) was called
agentminds.environment ARP §2 string production / staging / dev
agentminds.event.level ARP §3.3 string Sentry-aligned: fatal/error/warning/info/debug
agentminds.event.severity ARP §3.3 string critical/high/medium/low/info (capture_exception only)
agentminds.event.category ARP §3.3 string performance/security/... (capture_exception only)
agentminds.operation (extension) string capture_message / capture_exception / init
exception.type OTel string Class name (capture_exception only)

Why an extension package vs auto-instrumentation in agentminds itself?

  • Optional. Most agentminds users don't run an OTel SDK. Bundling this into the main package would force the dep on everyone.
  • Apache-2.0. OpenInference attribute names are spec-text only (Apache-2.0). This wrapper uses them; the main SDK doesn't have to inherit the licensing surface.
  • Phoenix isolation. Per ARP REJECT list (deepdive Section 5), AgentMinds explicitly does NOT take a runtime dependency on Arize Phoenix (ELv2 + US patent claims). This package depends only on the Apache-2.0 OpenTelemetry stack.

Compatibility

  • Python ≥ 3.9
  • agentminds ≥ 0.4.2
  • opentelemetry-api ≥ 1.20

License

Apache-2.0.

Spec references

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

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for openinference_instrumentation_agentminds-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d61fc1df01e385e892a4f7bc85acd232c3fb58ee126c2e7dded546decf6866dc
MD5 398cb94e593d7223984bf05001c3f73e
BLAKE2b-256 760c33c7087aecb8f81056b551b2fd12ae81b93a8abea6da07e9dc6b4226b0c4

See more details on using hashes here.

Provenance

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

Publisher: publish-sdks.yml on agentmindsdev/agentminds

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

File details

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

File metadata

File hashes

Hashes for openinference_instrumentation_agentminds-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db7b0c274fb4f5a37a926756e897771d6bb3b6d8312110aa73218e2d1dfb6d08
MD5 5d5d564a027fa94e31347e3c4693c81b
BLAKE2b-256 f78af1dbbbb06b671aa336f9c32101df4bbcfeb998564df36c97ae1f09c5d4c6

See more details on using hashes here.

Provenance

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

Publisher: publish-sdks.yml on agentmindsdev/agentminds

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