Skip to main content

ForgeSight Langfuse exporter — OTLP ingest with native langfuse.* observation mapping.

Project description

forgesight-langfuse

The Langfuse exporter for ForgeSight. Ships ForgeSight records to Langfuse over its OTLP ingest endpoint (/api/public/otel, Basic auth), enriched with the native langfuse.* attributes so LLM calls render as generation observations, tools as tool observations, and the run's user/session/tags lift to the trace.

pip install forgesight-langfuse
import forgesight
from forgesight_langfuse import LangfuseExporter

forgesight.configure(exporters=[
    LangfuseExporter(public_key="pk-lf-...", secret_key="sk-lf-...",
                     host="https://cloud.langfuse.com"),
])

Or by name: exporters: [{name: langfuse, config: {public_key: …, secret_key: …}}].

Two paths

  • First-party (this package): native langfuse.* observation mapping + the SDK's computed cost (forgesight.usage.cost_usd) ingested.
  • OTLP-native (no package): point forgesight-otel at https://cloud.langfuse.com/api/public/otel with Authorization: Basic base64(pk:sk).

Prompt/response content is captured only with capture_content=True (off by default).

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_langfuse-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

forgesight_langfuse-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for forgesight_langfuse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b9dab53da1268fd503f41d0db0db948c893b6864271ba5cabe062de83ec00f9
MD5 84c79bae1d980fe4d470cbbf62829b6c
BLAKE2b-256 e3487cebd0e28b135d8fa392da538547ed0c9a609efc904f4df129e97920d002

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forgesight_langfuse-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bbe4344921b832f0715248637069b41de0426010b50bc20084af24d2a000221
MD5 a633fc570e384e08f25fe82a92964d57
BLAKE2b-256 1bba709c058a93f208d8ba7f4b59e1fe822e99e59a2043cb75a926b063e6f8eb

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