package trace
import "golang.org/x/pkgsite/internal/trace"
package trace provides a wrapper around third party tracing libraries.
Index ¶
Functions ¶
func SetTraceFunction ¶
SetTraceFunction sets StartSpan to call the given function to start a trace span.
Types ¶
type Span ¶
type Span interface {
End()
}
Span is an interface for a type that ends a span.
func StartSpan ¶
If SetTraceFunction has been called, StartSpan uses its given function to start a span. Otherwise it does nothing.
Source Files ¶
trace.go
- Version
- v0.0.0-20250704161611-eac0bf970406 (latest)
- Published
- Jul 4, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 1 week ago –
Tools for package owners.