DefaultLangfuseBatchSender

org.llm4s.trace.DefaultLangfuseBatchSender
See theDefaultLangfuseBatchSender companion object
class DefaultLangfuseBatchSender(httpClient: Llm4sHttpClient, restoreInterrupt: () => Unit) extends LangfuseBatchSender

Default implementation of LangfuseBatchSender using HTTP requests.

Sends trace events to Langfuse using basic authentication with the provided public and secret keys. A 2xx response is a success; a 207 Multi-Status response is read per event, and any events it lists as rejected are logged as an error.

Logs warnings if credentials are not configured and errors if the HTTP request fails.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def sendBatch(events: Seq[Obj], config: LangfuseHttpApiCaller): Unit

Sends a batch of trace events to Langfuse.

Sends a batch of trace events to Langfuse.

Value parameters

config

HTTP API configuration including URL and credentials

events

Sequence of JSON objects representing trace events

Attributes

Definition Classes