modelRT/handler
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_event_query.go optimzie code organization structure of rabbitmq event 2026-02-25 17:14:25 +08:00
anchor_point_replace.go optimize variable naming and optimize real time data computing api 2025-11-12 17:34:18 +08:00
async_task_cancel_handler.go Refactor async task handlers into specialized handlers 2026-04-17 14:09:02 +08:00
async_task_create_handler.go feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
async_task_progress_update_handler.go Refactor async task handlers into specialized handlers 2026-04-17 14:09:02 +08:00
async_task_result_detail_handler.go Refactor async task handlers into specialized handlers 2026-04-17 14:09:02 +08:00
async_task_result_query_handler.go Refactor: extract task constants to dedicated constants package 2026-04-22 17:20:26 +08:00
async_task_status_update_handler.go Refactor async task handlers into specialized handlers 2026-04-17 14:09:02 +08:00
attr_delete.go optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
attr_load.go optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
attr_update.go optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
circuit_diagram_create.go optimize variable naming and optimize real time data computing api 2025-11-12 17:34:18 +08:00
circuit_diagram_delete.go optimize variable naming and optimize real time data computing api 2025-11-12 17:34:18 +08:00
circuit_diagram_load.go optimize variable naming and optimize real time data computing api 2025-11-12 17:34:18 +08:00
circuit_diagram_update.go optimize variable naming and optimize real time data computing api 2025-11-12 17:34:18 +08:00
component_attribute_query.go optimize code of judge wether success or failed return content 2026-01-19 16:39:35 +08:00
component_attribute_update.go optimize code of judge wether success or failed return content 2026-01-19 16:39:35 +08:00
diagram_node_link.go optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
helper.go optimize code of real time data pull api 2026-01-28 14:03:25 +08:00
history_data_query.go optimzie code organization structure of rabbitmq event 2026-02-25 17:14:25 +08:00
measurement_load.go optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
measurement_recommend.go optimize code of sql struct and measurement node recommend api 2025-12-19 17:33:12 +08:00
mesurement_link.go optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
real_time_data_pull.go optimize code of push event alarm func 2026-02-03 17:05:32 +08:00
real_time_data_query.go optimize code of push event alarm func 2026-02-03 17:05:32 +08:00
real_time_data_receive.go refactor(orm/circuit_diagram_component): fix compilation issues caused by structure field changes 2025-08-15 16:25:48 +08:00
real_time_data_subscription.go optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00