modelRT/constants
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
..
alert.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
attrs_key.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
buffer.go optimzie logic of real time data pull api 2025-12-12 17:22:20 +08:00
busbar_section.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
business_code.go optimize reponse code and business code of measurement sub api 2026-01-26 16:29:50 +08:00
context.go implement real time data computing api 2025-11-14 16:34:34 +08:00
deploy_mode.go optimize code of redis init 2026-01-28 16:49:12 +08:00
electrical_components.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
event.go optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
log_mode.go fix bug of server deploy 2025-12-11 16:42:25 +08:00
measurement.go feat:implement search support for abbreviated token ranges (e.g., token4-token7) 2025-12-15 16:49:38 +08:00
recommend_keys.go optimize the logic for loading the cache of measurement nodes for traversing components 2025-12-25 17:17:20 +08:00
redis.go optimize code of measurement recommend and logger output 2025-10-15 17:08:32 +08:00
response_code.go optimzie code of constants package 2026-01-16 17:08:28 +08:00
rtdata_subscription.go optimize code of redis connenct func and real time data calculate 2026-01-27 17:41:17 +08:00
task.go Refactor: extract task constants to dedicated constants package 2026-04-22 17:20:26 +08:00
telemetry_imit.go add constants varibale of power system events 2026-02-12 17:09:08 +08:00
time.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
togologic.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
trace.go feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00