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.1.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.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: evalbase-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f2881edcdfd9cf1ae1e93ebbf621a31173feaeae8f7de51bf70e61213457259e
MD5 ab9b939c368e5e531c76031304072427
BLAKE2b-256 4807271299fd045e4f355dec48b982a2147eb9081454a680b128a319539eb17d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: evalbase-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d3fe63ab6f3296066e45e690edc7c2718f1c2756b0021ccb84b391130188e1a
MD5 3a12cb71109fac932b9ae8b88e4dfca8
BLAKE2b-256 fd2426362592f300538de2c2a5821b0ccbeb175249a6f6095982bc499dbfe426

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