zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.35k stars 3.96k forks source link

The AddGlobalFields function fails after using the integrated zap component zapx as a writer #4398

Open smx-Morgan opened 1 month ago

smx-Morgan commented 1 month ago

The AddGlobalFields function failed to set the global value after using zero contrib This is my code, written based on example. (If zapx is not used as a writer, the global value will be corrected) go-zerolog The obtained result does not have a global value The case of zapx does not include AddGlobalFields. How can I set the global feild using zapx?