Skip to main content

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

Metadata

Release files for forgesight-langfuse 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forgesight-langfuse 0.1.1
File Size Uploaded
forgesight_langfuse-0.1.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for forgesight-langfuse 0.1.1
File Interpreter ABI Platform
forgesight_langfuse-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / forgesight_langfuse-0.1.1.tar.gz

Download URL forgesight_langfuse-0.1.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
066de893c07550c47dc868549d546d9eb0ba79a2c1934063ea5e670d4fd73a0d
BLAKE2b-256 checksum
How to use checksums
85f23e6c40077216cab38affef373ec78bc11d300db65d0d4a9b49fa5d13bffb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / forgesight_langfuse-0.1.1-py3-none-any.whl

Download URL forgesight_langfuse-0.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b5aed7e3900af2859a2d2abc9d2b4096cf75ffe00da0f9d6a66250fb46bfa58
BLAKE2b-256 checksum
How to use checksums
42360a2ed04ccf3e5c98e1a4017d2662b1bdf3e9a781aacb75b2fe60a797723e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page