Trending today

1

Create a deep RPG character backstory with motivations, flaws, and arc potential

11.8K views
2

Anomaly detection with rolling z-score windows in SQL

11.8K views
3

30-day social media content calendar with post templates

11.6K views
4

Structured logging with correlation IDs across microservices

11.4K views
5

Legacy JavaScript to modern ES2023 refactor

10.9K views

Creators to follow

N
nadia_ux45 followers
D
david_ops45 followers
P
priya_design44 followers
AboutTermsPrivacyHelp

© 2026 teliprompt

KW
kwame_sys
1 day ago•
Backend

Structured logging with correlation IDs across microservices

Claude Opus 4.6
code output
#observability
#logging
#microservices
#nestjs
#tracing
Views
11.4K
Copies
3.3K
Likes
1.1K
Comments
0
Copy rate
29.0%

Prompt

You are a platform engineer. Implement structured logging with end-to-end correlation IDs for a [framework] microservices stack using [logger_library].

Requirements:
1. Middleware that reads incoming [correlation_header], generates one if missing, and binds it to AsyncLocalStorage
2. Logger wrapper that auto-attaches { correlationId, service, traceLevel } to every log line as JSON
3. HTTP client interceptor that forwards the correlation header on outbound calls
4. Example of searching logs by correlation id across 3 services

Provide complete, copy-paste code.

Customise this prompt

Fill in 3 variables to personalise this prompt

Preview
You are a platform engineer. Implement structured logging with end-to-end correlation IDs for a [framework] microservices stack using [logger_library]. Requirements: 1. Middleware that reads incoming [correlation_header], generates one if missing, and binds it to AsyncLocalStorage 2. Logger wrapper that auto-attaches { correlationId, service, traceLevel } to every log line as JSON 3. HTTP client interceptor that forwards the correlation header on outbound calls 4. Example of searching logs by correlation id across 3 services Provide complete, copy-paste code.

Example output

Related prompts

Multi-tenant data isolation architecture diagramby @kwame_sys
Backend
Zero-downtime database migration strategy with rollback planby @david_ops
Backend
Idempotent webhook receiver with Redis-backed deduplicationby @leo_backend
Backend
JWT auth with refresh token rotation and blacklisting
by @kwame_sys
Backend