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-otelathttps://cloud.langfuse.com/api/public/otelwithAuthorization: Basic base64(pk:sk).
Prompt/response content is captured only with capture_content=True (off by default).
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b9dab53da1268fd503f41d0db0db948c893b6864271ba5cabe062de83ec00f9
|
|
| MD5 |
84c79bae1d980fe4d470cbbf62829b6c
|
|
| BLAKE2b-256 |
e3487cebd0e28b135d8fa392da538547ed0c9a609efc904f4df129e97920d002
|
File details
Details for the file forgesight_langfuse-0.1.0-py3-none-any.whl.
File metadata
- Download URL: forgesight_langfuse-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bbe4344921b832f0715248637069b41de0426010b50bc20084af24d2a000221
|
|
| MD5 |
a633fc570e384e08f25fe82a92964d57
|
|
| BLAKE2b-256 |
1bba709c058a93f208d8ba7f4b59e1fe822e99e59a2043cb75a926b063e6f8eb
|