Skip to content

LangfuseHttpOptions

NexusLabs.Foundry.Langfuse

LangfuseHttpOptions Class

Configures bounded timeout and retry behavior for Langfuse REST API requests.

public sealed record LangfuseHttpOptions : System.IEquatable<NexusLabs.Foundry.Langfuse.LangfuseHttpOptions>

Inheritance System.Object 🡒 LangfuseHttpOptions

Implements System.IEquatable<LangfuseHttpOptions>

Properties

LangfuseHttpOptions.InitialRetryDelay Property

Gets or sets the initial exponential retry delay. Defaults to 200 milliseconds.

public System.TimeSpan InitialRetryDelay { get; set; }

Property Value

System.TimeSpan

LangfuseHttpOptions.MaxAttempts Property

Gets or sets the maximum total attempts for retry-safe operations. Defaults to three.

public int MaxAttempts { get; set; }

Property Value

System.Int32

Remarks

A value of one disables retries. Foundry never retries writes that lack provider-supported idempotency.

LangfuseHttpOptions.MaxRetryDelay Property

Gets or sets the maximum delay between attempts, including delays derived from Retry-After. Defaults to five seconds.

public System.TimeSpan MaxRetryDelay { get; set; }

Property Value

System.TimeSpan

LangfuseHttpOptions.RequestTimeout Property

Gets or sets the timeout for each individual HTTP attempt. Defaults to 30 seconds.

public System.TimeSpan RequestTimeout { get; set; }

Property Value

System.TimeSpan