OpenFn / OpenFn/apollo

Langfuse is very noisy locally when not configured

Open
#605 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
5
Forks
10
Avg merge
2d 20h
Merged PRs (30d)
17

Description

I don't have langfuse configured locally (and don't particualrly want to). So when I run apollo, my console is bombarded with langfuse errors:

Authentication error: Langfuse client initialized without public_key. Client will be disabled. Provide a public_key parameter or set LANGFUSE_PUBLIC_KEY environment variable. 
WARNING:langfuse:Authentication error: Langfuse client initialized without public_key. Client will be disabled. Provide a public_key parameter or set LANGFUSE_PUBLIC_KEY environment variable. 
INFO:global_chat.global_chat:Global agent called with content: what commcare field does patient.gender get mapped from? Check the actual implementation here in the...
WARNING:langfuse:Authentication error: Langfuse client initialized without public_key. Client will be disabled. Provide a public_key parameter or set LANGFUSE_PUBLIC_KEY environment variable. 
WARNING:langfuse:Context error: No active span in current context. Operations that depend on an active span will be skipped. Ensure spans are created with start_as_current_observation() or that you're operating within an active span context.
INFO:global_chat.router:RouterAgent initialized with model: claude-haiku-4-5-20251001
WARNING:langfuse:Authentication error: Langfuse client initialized without public_key. Client will be disabled. Provide a public_key parameter or set LANGFUSE_PUBLIC_KEY environment variable. 
INFO:global_chat.router:Router.route_and_execute() called
WARNING:langfuse:Authentication error: Langfuse client initialized without public_key. Client will be disabled. Provide a public_key parameter or set LANGFUSE_PUBLIC_KEY environment variable. 
INFO:global_chat.router:Router decision: planner (confidence: 5, job_key: None)
INFO:global_chat.router:Routing to planner
INFO:global_chat.planner:PlannerAgent initialized with model: claude-opus-4-8
WARNING:langfuse:Authentication error: Langfuse client initialized without public_key. Client will be disabled. Provide a public_key parameter or set LANGFUSE_PUBLIC_KEY environment variable. 

These are super distracting when trying to read the logs and understand what's going on internally.

I'd love to rethink the langfuse code and find a way to sidestep all these errors.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name any files or tests. Start by locating Langfuse initialization and reproduce an Apollo run without configuration; determine where the repeated authentication and context warnings originate. Done means unconfigured local runs no longer flood the console while Apollo continues to operate.

Written by the indexing model from the issue text.

Assessment

Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.