aboutsummaryrefslogtreecommitdiffstats
path: root/modules/gtprof/trace_const.go
blob: af9ce9223fd36fcab430833c0fe3135199c8dd53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2025 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package gtprof

// Some interesting names could be found in https://github.com/open-telemetry/opentelemetry-go/tree/main/semconv

const (
	TraceSpanHTTP     = "http"
	TraceSpanGitRun   = "git-run"
	TraceSpanDatabase = "database"
)

const (
	TraceAttrFuncCaller = "func.caller"
	TraceAttrDbSQL      = "db.sql"
	TraceAttrGitCommand = "git.command"
	TraceAttrHTTPRoute  = "http.route"
)