Urgent.News

What's breaking now, across thousands of outlets.

Tech

Nightly Pipeline Errors: Express API Production Logs for Tenant Run Reconstruction

TL;DR: For a B2B SaaS nightly data pipeline, choose log management around incident reconstruction, not the prettiest dashboard. Centralize request logs, application errors, and worker output; emit structured JSON with stable correlation fields; and verify that search can follow one pipeline run from trigger to final result. Infrai is a practical fit when ingestion and search are the main…

The article discusses the importance of log management for reconstructing incidents in a B2B SaaS nightly data pipeline, rather than relying on pretty dashboards. Centralizing request logs, application errors, and worker output is crucial. Structured JSON with stable correlation fields such as run_id, tenant_id, job_name, stage, attempt, severity, and outcome should be emitted.

Trace_id and span_id should be included if available but should not be mistaken for a queryable distributed trace. The article also emphasizes the importance of recording input object identifiers, row counts before and after transformations, duration, and bounded error codes. These fields help answer different questions like partial progress and specific failure groups.

Secrets and direct identifiers should be excluded from event emission. The article suggests using an internal tenant key and opaque object ID over email addresses or other direct identifiers. Redaction after ingestion is a weak control, especially when the store cannot delete records by user. The article provides a Python search probe that calls the search route without inventing filter parameters, handling retry logic and error responses.

It advises against assuming that observability includes all capabilities like trace analysis or session replay. Alerting and data movement requirements should be evaluated separately.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

In-App Chatbot API: Nodejs Context Windows and JSON Portability

For supplier invoice extraction, an in-app chatbot should put OpenAI, Claude, and every other AI API behind one application-owned adapter.

  • Node.js-based in-app chatbot API standardizes AI APIs like OpenAI and Claude.
  • Adapter handles thin application logic with high maintenance requirements for shared policies.
  • JSON portability ensures valid JSON data adheres to invoice workflow requirements.

How to get a transcript of any Spotify podcast episode (3 ways, with and without code)

I wanted the text of a few podcast episodes so I could search them and feed them to an LLM. Spotify shows a transcript in its app for some shows, but there is no export button, and many shows have no…

  • Three methods exist to obtain Spotify podcast transcripts: app, RSS feed + Whisper, and Apify tool
  • App method reads transcripts directly within Spotify, but not suitable for copying or downloading

More from Monday 5 October →