Skip to content

Ollama fallback to cloud embeddings fires 472 Sentry errors — should be info/warn #2921

Description

@graycyrus

Summary

When ollama embeddings are opted-in but the daemon is unreachable, the code correctly falls back to cloud embeddings. But it fires a Sentry error on every fallback — 472 events. A successful fallback is not an error.

Problem

What happened: User enables local ollama embeddings, but ollama isn't running. The code detects this and falls back to cloud embeddings (correct behavior). But each fallback fires a Sentry error:

ollama embeddings opted-in but daemon unreachable at http://localhost:11434; falling back to cloud embeddings for this session

Expected: This is an expected degraded state, not an error. Should be logged at INFO or WARN level, not ERROR. Sentry should not be flooded.

Impact: 472 events (TAURI-RUST-B), ongoing across 0.54.0 → 0.56.0.

Acceptance criteria

  • Ollama fallback doesn't fire Sentry errors
  • Unit test
  • Diff coverage >= 80%

Related

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions