mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-01 20:59:45 +09:00
9b5c87a6b6
Help #39410
23 lines
588 B
Go
23 lines
588 B
Go
// 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 (
|
|
TraceSpanContext = "context"
|
|
TraceSpanHTTP = "http"
|
|
TraceSpanGitRun = "git-run"
|
|
TraceSpanDatabase = "database"
|
|
)
|
|
|
|
const (
|
|
TraceAttrGeneralName = "general.name"
|
|
TraceAttrGeneralDesc = "general.desc"
|
|
TraceAttrFuncCaller = "func.caller"
|
|
TraceAttrDbSQL = "db.sql"
|
|
TraceAttrGitCommand = "git.command"
|
|
TraceAttrHTTPRoute = "http.route"
|
|
)
|