Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getTraceContext (0.34 sec)

  1. src/cmd/go/internal/trace/trace.go

    	tc, ok := getTraceContext(ctx)
    	if !ok {
    		return ctx
    	}
    	return context.WithValue(ctx, traceKey{}, traceContext{tc.t, tc.t.getNextTID()})
    }
    
    // Flow marks a flow indicating that the 'to' span depends on the 'from' span.
    // Flow should be called while the 'to' span is in progress.
    func Flow(ctx context.Context, from *Span, to *Span) {
    	tc, ok := getTraceContext(ctx)
    	if !ok || from == nil || to == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top