LangfuseShutdownOutcome
NexusLabs.Foundry.Langfuse¶
LangfuseShutdownOutcome Class¶
Reports whether local OpenTelemetry trace and metric provider shutdown completed.
public sealed record LangfuseShutdownOutcome : System.IEquatable<NexusLabs.Foundry.Langfuse.LangfuseShutdownOutcome>
Inheritance System.Object 🡒 LangfuseShutdownOutcome
Implements System.IEquatable<LangfuseShutdownOutcome>
Remarks¶
This outcome only describes local provider shutdown and drain. It does not guarantee that Langfuse durably ingested the exported telemetry.
Constructors¶
LangfuseShutdownOutcome(bool, LangfuseProviderShutdownStatus, LangfuseProviderShutdownStatus) Constructor¶
Initializes a shutdown outcome.
public LangfuseShutdownOutcome(bool isFinal, NexusLabs.Foundry.Langfuse.LangfuseProviderShutdownStatus traces, NexusLabs.Foundry.Langfuse.LangfuseProviderShutdownStatus metrics);
Parameters¶
isFinal System.Boolean
Whether this is the session's final cached outcome rather than an observation that another caller currently owns shutdown.
traces LangfuseProviderShutdownStatus
The local trace-provider shutdown status.
metrics LangfuseProviderShutdownStatus
The local metric-provider shutdown status.
Properties¶
LangfuseShutdownOutcome.IsFinal Property¶
Gets a value indicating whether this is the session's final cached shutdown outcome.
Property Value¶
Remarks¶
false means another caller currently owns final shutdown. In that case Traces and Metrics are NotAttempted.
LangfuseShutdownOutcome.Metrics Property¶
Gets the local metric-provider shutdown status.
Property Value¶
LangfuseProviderShutdownStatus
LangfuseShutdownOutcome.Traces Property¶
Gets the local trace-provider shutdown status.