Skip to content

VOYAGE_API_KEY not configured floods Sentry with 2,671 embedding errors #2912

@graycyrus

Description

@graycyrus

Summary

Every embedding request fires a Sentry error when the managed backend returns "VOYAGE_API_KEY is not configured". 2,671 events — this is a known config state that should not flood Sentry.

Problem

What happened: Users on the managed embedding path hit the backend which returns 400: "VOYAGE_API_KEY is not configured". This fires a Sentry error on every embedding attempt. Also appears as TAURI-RUST-2 (2,247 events, older message format) — combined ~5K events.

Expected: A missing backend config key is not an app-level error. Should either:

  1. Suppress from Sentry (add to observability expected-error list)
  2. Fall back to a different embedding provider
  3. Surface once as a user-facing config warning, not 2,671 Sentry errors

Impact: 2,671 events (TAURI-RUST-2H5) + 2,247 events (TAURI-RUST-2) = ~5K events total.

Version / Platform: openhuman@0.54.0 through 0.56.0

Solution (optional)

Add "VOYAGE_API_KEY is not configured" to the observability expected-error suppression (same pattern as PR #2850, #2899). This is a backend config state, not a code error.

Acceptance criteria

  • Repro gone — VOYAGE_API_KEY errors don't flood Sentry
  • Regression safety — Unit test
  • Diff coverage >= 80%

Related

Metadata

Metadata

Assignees

Labels

Type

No type
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