douxu
715183994c
fix: remove status mutation side effect in PublishEventToUI
...
- stop overwriting record.Status inside the publish function
- status should be managed by the caller, not the publisher
2026-05-11 17:35:43 +08:00
douxu
2f7cd5a8fc
feat: add event lifecycle API and UI fanout publishing - extract event status, MQ exchange/queue, and DB name constants to constants/event.go - add bson tags and IsPersisted flag to EventRecord for proper MongoDB serialization
...
- publish persisted alarm events to UI consumers via RabbitMQ fanout exchange - add GET /events/:event_uuid handler to query a single event from MongoDB
- add PATCH confirm/close handlers with atomic FindOneAndUpdate status transitions - register /events routes in main.go
2026-05-08 15:43:54 +08:00
douxu
44ded93411
feat: add OpenTelemetry distributed tracing to eventRT - add OtelConfig to EventRTConfig and configs/config.yaml - add middleware/trace.go with InitTracerProvider (W3C TraceContext) and StartTrace gin middleware
...
- migrate logger to read traceID/spanID from OTel span context instead of ctx string keys
- extract upstream W3C trace context from AMQP headers in processAlarmEventMessage to chain spans across modelRT→eventRT
- add per-message span in processAlarmEventMessage for end-to-end trace visibility
2026-05-07 16:32:53 +08:00
douxu
e0863eb04a
add code of rabbitmq message ack action
2026-03-03 17:09:31 +08:00
douxu
609511c7cd
optimize code of receipt event
2026-03-02 17:00:56 +08:00
douxu
d239f9bd85
add code of receipt event and store into mongodb
2026-02-27 16:36:40 +08:00
douxu
f333a830a1
optimize file name of modelrt cert config with rabbitmq
2026-02-12 17:10:32 +08:00
jessequ
a3e5892379
updated README.md
2026-02-11 18:12:56 +08:00
jessequ
b2a8180f64
updated README.md
2026-02-11 18:11:31 +08:00
douxu
8930f3a20e
optimize code and add md file of deploy rabbitMQ server with eventRT
2026-02-11 16:41:08 +08:00
douxu
722e8a9c0f
optimize code of rabbitmq connection
2026-02-06 17:55:30 +08:00
douxu
fff5dd9218
optimize code of rabbitmq deploy
2026-02-05 17:04:46 +08:00
douxu
23bc2dab9f
add rabbitmq deploy files
2026-02-04 17:43:52 +08:00
douxu
5653fb0719
optimze of rabbitmq and mongodb code
2026-01-30 17:43:16 +08:00
douxu
c7bc0d033b
add drone config
2026-01-29 16:56:21 +08:00
douxu
9380717b75
add code of db or mq init
2026-01-29 16:54:00 +08:00
douxu
9e11ad75be
Initial commit
2025-11-18 17:47:27 +08:00