mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	1. Add a OpenTelemetry-like shim-layer to collect traces 2. Add a simple builtin trace collector and exporter, end users could download the diagnosis report to get the traces. This PR's design is quite lightweight, no hard-dependency, and it is easy to improve or remove. We can try it on gitea.com first to see whether it works well, and fine tune the details. --------- Co-authored-by: silverwind <me@silverwind.io>
		
			
				
	
	
		
			23 lines
		
	
	
		
			658 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			658 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
| {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
 | |
| <div class="admin-setting-content">
 | |
| 
 | |
| 	{{template "admin/trace_tabs" .}}
 | |
| 
 | |
| 	<h4 class="ui top attached header">
 | |
| 		{{printf "%d Goroutines" .GoroutineCount}}{{/* Goroutine is non-translatable*/}}
 | |
| 		{{- if .ProcessCount -}}, {{ctx.Locale.Tr "admin.monitor.processes_count" .ProcessCount}}{{- end -}}
 | |
| 	</h4>
 | |
| 
 | |
| 	{{if .ProcessStacks}}
 | |
| 	<div class="ui attached segment">
 | |
| 		<div class="ui relaxed divided list">
 | |
| 			{{range .ProcessStacks}}
 | |
| 				{{template "admin/stacktrace-row" dict "Process" . "root" $}}
 | |
| 			{{end}}
 | |
| 		</div>
 | |
| 	</div>
 | |
| 	{{end}}
 | |
| </div>
 | |
| 
 | |
| {{template "admin/layout_footer" .}}
 |