PowerEngine 后端图模服务代码仓库
Go to file
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
common optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
config Extend async task system with database integration and retry management 2026-04-03 10:07:43 +08:00
constants feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
database feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
deploy add code of send all target removed system signal in real time data pull api and fix bug of component attribute query api 2026-01-14 17:32:01 +08:00
diagram optimize code of redis init 2026-01-28 16:49:12 +08:00
distributedlock optimize code of redis init 2026-01-28 16:49:12 +08:00
docs optimize real time data receive api 2025-10-27 16:47:04 +08:00
example fix bug of test data with update handler 2025-01-13 15:54:40 +08:00
handler feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
logger feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
middleware feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
model feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
mq optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
network add code of async task system 2026-03-13 11:45:22 +08:00
orm Refactor async task system with unified task interfaces and add test task type 2026-04-14 17:00:30 +08:00
pool optimzie code organization structure of rabbitmq event 2026-02-25 17:14:25 +08:00
real-time-data optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
router add route of async task system 2026-03-17 16:08:46 +08:00
sql implemented task queue publishing using RabbitMQ 2026-04-01 17:15:33 +08:00
task feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
test optimize database struct 2025-11-19 17:44:08 +08:00
util optimize code of redis init 2026-01-28 16:49:12 +08:00
.drone.yml modify drone pipeline code 2025-02-10 15:21:34 +08:00
.gitignore add route of async task system 2026-03-17 16:08:46 +08:00
README.md merge feature-cgo branch 2025-07-31 10:48:56 +08:00
go.mod implemented task queue publishing using RabbitMQ 2026-04-01 17:15:33 +08:00
go.sum implemented task queue publishing using RabbitMQ 2026-04-01 17:15:33 +08:00
main.go feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00

README.md

ModelRT

Build Status