Skip to main content

Evalbase SDK for AI workflow telemetry using OpenTelemetry

Project description

Evalbase

Evalbase is a lightweight, easy-to-use Python SDK for instrumenting AI workflows with OpenTelemetry.

Installation

To install Evalbase from PyPI, run:

pip install evalbase

To install from source, clone this repository and run:

git clone https://github.com/evalbase/evalbase-python-sdk.git
cd evalbase-python-sdk
pip install .

Usage

  1. Configuration: You can configure telemetry for your AI application by calling configure_telemetry.
from evalbase import configure_telemetry

configure_telemetry(
    service_name="my-ai-service",
    endpoint="https://otel-http.staging.evalbase.ai",  # Optional override
    api_key="apikey-123"  # Or set EVALBASE_API_KEY in your environment
)
  1. Workflow and Step Decorators: Mark your functions with @workflow or @step(...) to automatically collect tracing and metrics.
from evalbase import workflow, step, StepType

@workflow
def my_workflow():
    result = my_llm_step("example")
    return result

@step(type=StepType.LLM)
def my_llm_step(prompt):
    # Your LLM logic here
    return "some LLM response"
  1. Example: For a complete example of how to implement and test a workflow with steps, see the integration_tests directory.
python -m integration_tests.test_live_telemetry

For more information, check out the source code in decorators.py, telemetry.py, and integration_tests/test_live_telemetry.py.

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

evalbase-0.0.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

evalbase-0.0.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file evalbase-0.0.2.tar.gz.

File metadata

  • Download URL: evalbase-0.0.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for evalbase-0.0.2.tar.gz
Algorithm Hash digest
SHA256 639fc18ec63f8212ae2744eec44e2d498cc2ef8d32e882aa0650a6711e925ef5
MD5 b10cfe0de9c7510b593974314dc43589
BLAKE2b-256 0716bb4f16f3f5e1c6da6bb26d3e117de7f38d66d704088c8cf215aa3ca03cdf

See more details on using hashes here.

File details

Details for the file evalbase-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: evalbase-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for evalbase-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf57031b041d74b341e77caefd5756d7898c41ec4ece2ed002009ccf6ef807a7
MD5 c7c3e615fc8dce3c68eff95d97c7b334
BLAKE2b-256 3508f3cf42a68a413b701030c63bc72e5cc67098f55bfd912dce167ba7ef8ab0

See more details on using hashes here.

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