@@ -21,7 +21,7 @@ type traceContextKey struct{}
21
21
// like the Go execution tracer may assume there are only a bounded
22
22
// number of unique task types in the system.
23
23
//
24
- // The returned Task's End method is used to mark the task's end.
24
+ // The returned Task's [Task. End] method is used to mark the task's end.
25
25
// The trace tool measures task latency as the time between task creation
26
26
// and when the End method is called, and provides the latency
27
27
// distribution per task type.
@@ -75,7 +75,7 @@ type Task struct {
75
75
// TODO(hyangah): record parent id?
76
76
}
77
77
78
- // End marks the end of the operation represented by the Task.
78
+ // End marks the end of the operation represented by the [ Task] .
79
79
func (t * Task ) End () {
80
80
userTaskEnd (t .id )
81
81
}
@@ -97,7 +97,7 @@ func Log(ctx context.Context, category, message string) {
97
97
userLog (id , category , message )
98
98
}
99
99
100
- // Logf is like Log, but the value is formatted using the specified format spec.
100
+ // Logf is like [ Log] , but the value is formatted using the specified format spec.
101
101
func Logf (ctx context.Context , category , format string , args ... any ) {
102
102
if IsEnabled () {
103
103
// Ideally this should be just Log, but that will
@@ -142,7 +142,7 @@ func WithRegion(ctx context.Context, regionType string, fn func()) {
142
142
}
143
143
144
144
// StartRegion starts a region and returns it.
145
- // The returned Region's End method must be called
145
+ // The returned Region's [Region. End] method must be called
146
146
// from the same goroutine where the region was started.
147
147
// Within each goroutine, regions must nest. That is, regions started
148
148
// after this region must be ended before this region can be ended.
0 commit comments