spoor-sdk
Send agent and LLM traces to Spoor.
import spoor
spoor.init() # reads SPOOR_API_KEY, SPOOR_URL (default http://localhost:8000)
init() turns on OpenLLMetry instrumentation for every installed library it supports
(openai, anthropic, LangChain/LangGraph, litellm, OpenAI Agents SDK, CrewAI, LlamaIndex,
google-genai, Bedrock, Mistral, Cohere, Groq, Ollama; see src/spoor/libraries.py) and exports
spans over OTLP/HTTP. If the app already has an OTel TracerProvider, Spoor's exporter is added to it.
Options: api_key, url, service_name (else OTEL_SERVICE_NAME, else the script name),
environment (else SPOOR_ENVIRONMENT, else main).
Operations
Each run belongs to an operation. It's named after the function that made the call, or explicitly:
@spoor.operation("triage") # or bare @spoor.operation, or `with spoor.operation("triage"):`
def triage(ticket): ...
Test
uv run pytest
Metadata
Release files for spoor-sdk 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spoor_sdk-0.0.1.tar.gz | 45.4 kB | Without provenance | Details for spoor_sdk-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spoor_sdk-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for spoor_sdk-0.0.1-py3-none-any.whl |
Total release size: 50.8 kB
Release files / spoor_sdk-0.0.1.tar.gz
| Download URL | spoor_sdk-0.0.1.tar.gz |
|---|---|
| Size | 45.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eab10171245b30fb45ea161ee0f4c8e1ebcdc405482fb426b141845bb2b937c1
|
|
BLAKE2b-256 checksum How to use checksums |
16bc1a0880208759c5baa6cc0f673458e0f5980256a0cafd06253bdf3196dd00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / spoor_sdk-0.0.1-py3-none-any.whl
| Download URL | spoor_sdk-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8090846389a4cfa31bbcdf318ad0e17b8c1dda4f024832075ea1e0e74d142526
|
|
BLAKE2b-256 checksum How to use checksums |
14fa2c0fe5a5c79a9f27583dad4fc8f50f936667f2004ea520cfb2a29251553a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for spoor-sdk 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.