MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / getTelemetryConfig

Function getTelemetryConfig

frontend/lib/langfuse.ts:79–94  ·  view source on GitHub ↗
(params: {
    sessionId?: string
    userId?: string
})

Source from the content-addressed store, hash-verified

77
78// Get telemetry config for streamText
79export function getTelemetryConfig(params: {
80 sessionId?: string
81 userId?: string
82}) {
83 if (!isLangfuseEnabled()) return undefined
84
85 return {
86 isEnabled: true,
87 recordInputs: true,
88 recordOutputs: true,
89 metadata: {
90 sessionId: params.sessionId,
91 userId: params.userId,
92 },
93 }
94}
95
96// Wrap a handler with Langfuse observe
97export function wrapWithObserve<T>(

Callers 1

handleChatRequestFunction · 0.90

Calls 1

isLangfuseEnabledFunction · 0.85

Tested by

no test coverage detected