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

Uploaded Python 3

File details

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

File metadata

  • Download URL: forgesight_otel-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 649d8eae38225067a25c29632cffeaa5de1da89ac2d183f0efe5f8dd482db4e0
MD5 c6d12c5bfeafd1c0962208f3a118c5eb
BLAKE2b-256 8d6156ff614c1977948cf0c67ab8e4c45c90559862c17712ae5bb1c412af4ed9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forgesight_otel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38831bebdee727fdc1433b2c0a590c84e3ab9ef1661dc246aeba0b7056d0439f
MD5 f3965c87a29ed67425ce570f332c8d14
BLAKE2b-256 4ad25c3ad7f4d9dbdb87cd5880d4263a1eb93b856cf660f9a0204f36bfc42d49

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