Refactor trace_handler.go to improve variable naming for clarity

This commit is contained in:
tsosunchia committed 2025-10-29 12:48:35 +08:00
1 parent 0f09cddde0
commit 81373fb3a4
1 file changed
+3 -3
+3 -3
View File
@@ -278,9 +278,9 @@ func traceHandler(c *gin.Context) {
traceMapURL := ""
if configured.Maptrace && shouldGenerateMap(setup.DataProvider) {
if payload, err := json.Marshal(res); err == nil {
if url, err := tracemap.GetMapUrl(string(payload)); err == nil {
traceMapURL = url
log.Printf("[deploy] trace map generated target=%s url=%s", setup.Target, traceMapURL)
if mapUrl, err := tracemap.GetMapUrl(string(payload)); err == nil {
traceMapURL = mapUrl
log.Printf("[deploy] trace map generated target=%s mapUrl=%s", setup.Target, traceMapURL)
}
}
}