modelRT/task
douxu 03bd058558 feat: implement end-to-end distributed tracing for HTTP and async tasks
- introduce typed traceCtxKey to prevent context key collisions (staticcheck fix)
  - inject B3 trace values into c.Request.Context() in StartTrace middleware
    so handlers using c.Request.Context() carry trace info
  - create startup trace context in main.go, replacing context.TODO()
  - propagate HTTP traceID/spanID through TaskQueueMessage into RabbitMQ
    worker, linking HTTP request → publish → execution on the same traceID
  - fix GORM logger null traceID by binding ctx to AutoMigrate and queries
    via db.WithContext(ctx)
  - thread ctx through handler factory to fix null traceID in startup logs
  - replace per-request RabbitMQ producer with channel-based
    PushTaskToRabbitMQ goroutine; restrict Swagger to non-production
2026-04-23 16:48:32 +08:00
..
handler_factory.go feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
initializer.go feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
metrics_logger.go Extend async task system with database integration and retry management 2026-04-03 10:07:43 +08:00
queue_message.go feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
queue_producer.go feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
retry_manager.go Refactor: extract task constants to dedicated constants package 2026-04-22 17:20:26 +08:00
retry_queue.go Extend async task system with database integration and retry management 2026-04-03 10:07:43 +08:00
test_task.go Refactor: extract task constants to dedicated constants package 2026-04-22 17:20:26 +08:00
types.go Refactor: extract task constants to dedicated constants package 2026-04-22 17:20:26 +08:00
types_v2.go Refactor async task system with unified task interfaces and add test task type 2026-04-14 17:00:30 +08:00
worker.go feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00