Multi-Tenant B2B SaaS Logging Backend: Search Costs for Silent Imports
A scheduled catalog import that never starts produces no failure event. For a multi-tenant B2B SaaS app, use a logging backend to investigate work that ran and a heartbeat monitor to detect work that stayed silent. Then attribute log volume by tenant and import run before choosing where those events live. TL;DR: for an e-commerce B2B SaaS, keep tenant_id , user_id , request_id , trace_id ,…
When investigating work that ran but stayed silent, an operator should use a logging backend to search tenant and import identifiers. The logging backend should accept structured events, allowing operators to search identifiers without parsing prose. Cost attribution should be based on tenant_id and import_id attached at ingestion, with payloads and customer data excluded unless necessary.
Deriving tenant_id from the authenticated principal within a trusted service is crucial. A fast search that can cross tenant boundaries has failed the evaluation. A dead-man's-switch pattern should be used to detect failures when a scheduler does not invoke the worker at all. Logging and heartbeat monitoring should be evaluated separately, with different cost and ownership models.
Grafana Loki, Datadog Logs, and Better Stack Logs should be tested against the current discovery capability contract before committing to any backend.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to