Skip to main content

ForgeSight OpenTelemetry exporter — maps records to OTLP spans via the GenAI semantic conventions.

Project description

forgesight-otel

The OpenTelemetry exporter for ForgeSight. Maps ForgeSight Records onto OTLP spans using the OpenTelemetry GenAI semantic conventions — so anything that ingests OTLP (Datadog, Honeycomb, Jaeger, Grafana Tempo, SigNoz, New Relic, Arize Phoenix) works with no additional package.

pip install forgesight-otel
import forgesight
from forgesight_otel import OTelExporter

forgesight.configure(exporters=[OTelExporter(endpoint="http://otel-collector:4318")])

Or enable by name via config (exporters: [{name: otel, config: {...}}]) — it registers under the forgesight.exporters entry point.

  • Provider discriminator: gen_ai.provider.name (legacy gen_ai.system opt-in).
  • Cost: emitted as the extension attribute forgesight.usage.cost_usd (OTel defines no cost attribute).
  • Prompt/response content is off by default (capture_content=True to opt in).
  • gRPC transport: pip install forgesight-otel[grpc] + protocol="grpc".

License

Apache-2.0

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

forgesight_otel-0.1.1.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

forgesight_otel-0.1.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file forgesight_otel-0.1.1.tar.gz.

File metadata

  • Download URL: forgesight_otel-0.1.1.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for forgesight_otel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ac91a803d8ac8124a3f4b91c12c3e6f38780b75fcf07e74a84b5a64b39bcc8b9
MD5 f66be2e581788de593081229fca8b26b
BLAKE2b-256 39386533a7c57fde3a67d38f498e12fc4caa1359411a3e664bcb32c256f6ab00

See more details on using hashes here.

File details

Details for the file forgesight_otel-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for forgesight_otel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 985c83fd1693e8d8c99a0435aaa2e30d84fd06978e0fa62b1bff5d7cd750c95a
MD5 1a7004f677464989ee16ea5109f49e6a
BLAKE2b-256 098842e352dff415c7e2e8fd863bacead1c7152ce98578ccf921d7bdf801438a

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