modelRT/database
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
..
async_task_extended.go Extend async task system with database integration and retry management 2026-04-03 10:07:43 +08:00
async_task_operations.go add code of async task system 2026-03-13 11:45:22 +08:00
create_component.go optimize code of sql struct and measurement node recommend api 2025-12-19 17:33:12 +08:00
create_measurement.go fix bug of new version of measurement recommend api 2025-12-06 18:32:00 +08:00
create_model_info.go refactor(errer-package): optimize package name of constant 2025-06-13 15:34:49 +08:00
create_topologic.go optimize database struct 2025-11-19 17:44:08 +08:00
delete_topologic.go refactor(errer-package): optimize package name of constant 2025-06-13 15:34:49 +08:00
fill_identity_token_model.go optimize code of config 2026-01-29 17:00:20 +08:00
filling_attr_model_info.go optimize code of config 2026-01-29 17:00:20 +08:00
postgres_init.go feat: implement end-to-end distributed tracing for HTTP and async tasks 2026-04-23 16:48:32 +08:00
query_component.go add handler of compoent attribute query api 2026-01-12 17:21:04 +08:00
query_component_attribute.go add func of init component measurement recommend 2025-12-24 16:55:55 +08:00
query_component_measurement.go add fullpath completion of component attribute group recommend 2025-12-26 12:00:00 +08:00
query_grid.go add telemetry machine code 2025-09-01 16:15:30 +08:00
query_measurement.go optimize variable naming and init real time data compute func 2025-11-13 17:29:49 +08:00
query_node_inof.go optimize code of sql struct and measurement node recommend api 2025-12-19 17:33:12 +08:00
query_page.go refactor(handler): use logger package log func replace zap log func 2025-06-06 16:41:52 +08:00
query_project_manager.go 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
query_station.go add telemetry machine code 2025-09-01 16:15:30 +08:00
query_topologic.go refactor(orm/circuit_diagram_component): fix compilation issues caused by structure field changes 2025-08-15 16:25:48 +08:00
query_zone.go add telemetry machine code 2025-09-01 16:15:30 +08:00
update_component.go optimize code of sql struct and measurement node recommend api 2025-12-19 17:33:12 +08:00
update_model_info.go refactor(errer-package): optimize package name of constant 2025-06-13 15:34:49 +08:00
update_topologic.go optimize database struct 2025-11-19 17:44:08 +08:00