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-20250218150137-224a1368cf02 (latest)
- Published
- Feb 18, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 months ago –
Tools for package owners.