- 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
|
||
|---|---|---|
| .. | ||
| attribute_group_recommend_model.go | ||
| attribute_model.go | ||
| basic_model.go | ||
| identity_token_model.go | ||
| measurement_group_recommend_model.go | ||
| measurement_protol_model.go | ||
| model_select.go | ||
| recommend_cleanup.go | ||
| recommend_islocal_cache.go | ||
| redis_recommend.go | ||