fix(core/service): defer tracing exporter termination until graceful shutdown completes#5531
fix(core/service): defer tracing exporter termination until graceful shutdown completes#5531leevec wants to merge 1 commit into
Conversation
…s during service exit
ReviewGood fix for a real observability gap — spans emitted during graceful shutdown were being silently dropped. Problem: The previous code registered The fix:
Concerns:
Overall: The direction is correct and the fix improves trace completeness during graceful shutdown. The gateway concern is worth addressing before merge. |
Currently, the tracing provider is torn down prior to the completion of the service’s graceful shutdown sequence. Consequently, spans emitted during this phase—such as those from in-flight requests or cleanup routines—are dropped, as the exporter terminates before it can flush pending data to the backend.