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

Uploaded Python 3

File details

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

File metadata

  • Download URL: forgesight_langfuse-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 066de893c07550c47dc868549d546d9eb0ba79a2c1934063ea5e670d4fd73a0d
MD5 d6331dabb7297ef6898e6ca50df5fb17
BLAKE2b-256 85f23e6c40077216cab38affef373ec78bc11d300db65d0d4a9b49fa5d13bffb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forgesight_langfuse-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b5aed7e3900af2859a2d2abc9d2b4096cf75ffe00da0f9d6a66250fb46bfa58
MD5 143cd641225b1b34eda8f726c7a1d097
BLAKE2b-256 42360a2ed04ccf3e5c98e1a4017d2662b1bdf3e9a781aacb75b2fe60a797723e

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