Skip to main content

OpenTelemetry Voyage AI instrumentation

Project description

OpenTelemetry Voyage AI Instrumentation

This library allows tracing Voyage AI API calls with OpenTelemetry.

Installation

pip install opentelemetry-instrumentation-voyageai

Usage

from opentelemetry.instrumentation.voyageai import VoyageAIInstrumentor

VoyageAIInstrumentor().instrument()

# Now use Voyage AI as usual
import voyageai

client = voyageai.Client()

# Embeddings
result = client.embed(texts=["Hello, world!"], model="voyage-3")

# Reranking
result = client.rerank(
    query="What is the capital of France?",
    documents=["Paris is the capital of France.", "London is in England."],
    model="rerank-2.5"
)

Semantic Conventions

This instrumentation follows the OpenTelemetry GenAI semantic conventions:

  • gen_ai.system: "voyageai"
  • gen_ai.operation.name: "embeddings" or "rerank"
  • gen_ai.request.model: The model name
  • gen_ai.usage.input_tokens: Token count from the response
  • gen_ai.embeddings.dimension.count: Embedding vector dimension (for embed only)

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 opentelemetry_instrumentation_voyageai-0.52.2.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_voyageai-0.52.2.tar.gz
Algorithm Hash digest
SHA256 74caedff613823070b71ee9f310f813d68c3809ac01b818e9ec970d1b6c34c28
MD5 a36b30b4612b1f8eb55f8e9ea46fffce
BLAKE2b-256 177473f33f51885dc123a7eb93463a5d3cb9fc0a5b33090db7901bc666ff7727

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_voyageai-0.52.2.tar.gz:

Publisher: release.yml on traceloop/openllmetry

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

File details

Details for the file opentelemetry_instrumentation_voyageai-0.52.2-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_voyageai-0.52.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c537d5d58c01e88a478bc4f11c43c674111c195719b160507eb100a231127613
MD5 d9a1bb738a7c8d78183ed389a78f9b40
BLAKE2b-256 cd4780e25373be0167cb594cd8815b46abc953ef09fa2ba1d9eae66cd793b374

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_voyageai-0.52.2-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

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