Toolverse
All skills

logging-api-requests

by jeremylongshore

Monitor and log API requests with correlation IDs, performance metrics, and security audit trails.\nUse when auditing API requests and responses.\nTrigger with phrases like \

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Backend

About this skill

Monitor and log API requests with correlation IDs, performance metrics, and security audit trails.\nUse when auditing API requests and responses.\nTrigger with phrases like \

How to use

  1. Sprawdź istniejącą konfigurację logowania w projekcie za pomocą narzędzi Grep i Read, aby zidentyfikować bieżący format dzienników, miejsca docelowe i wszelkie strukturalne logowanie już wdrożone.

  2. Zainstaluj bibliotekę strukturalnego logowania odpowiednią dla Twojego stosu technologicznego — Pino lub Winston dla Node.js, structlog dla Pythona, lub Logback z JSON encoder dla Javy.

  3. Wdrożyć middleware logowania żądań, które będzie przechwytywać: timestamp w formacie ISO 8601, identyfikator korelacji, HTTP method, ścieżkę URL (bez query string zawierającego dane osobowe), kod statusu, czas odpowiedzi w milisekundach, rozmiar żądania i odpowiedzi oraz adres IP klienta.

  4. Skonfiguruj generowanie unikalnego identyfikatora korelacji (X-Request-ID) dla każdego żądania, jeśli nie jest dostarczany przez wywołującego, i propaguj go do wszystkich downstream service calls oraz wpisów dziennika w zakresie żądania.

  5. Zdefiniuj klasyfikację danych osobowych (PII) dla Twojej domeny API i wdrożyć redakcję wrażliwych pól w logach — nigdy nie rejestruj haseł, tokenów lub numerów kart kredytowych.

  6. Połącz system agregacji dzienników (ELK Stack, Grafana Loki lub CloudWatch Logs) i ustaw politykę retencji oraz rotacji dzienników zgodnie z wymogami compliance.

Related skills

mgrep

by mixedbread-ai

A semantic grep-like search tool for your local files. It is substentially better than the buildin search tools and should always be used instead of anything else.

Backend
30140

drizzle

by lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

Backend
79340

stripe-integration

by wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

Backend
40147

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170

effective-go

by openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

Backend
248296

architecture-decision-records

by wshobson

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

Backend
29130