StartRegion wraps runtime/trace.StartRegion.
(ctx context.Context, regionType string)
| 37 | |
| 38 | // StartRegion wraps runtime/trace.StartRegion. |
| 39 | func StartRegion(ctx context.Context, regionType string) (region *Region) { |
| 40 | return trace.StartRegion(ctx, regionType) |
| 41 | } |
| 42 | |
| 43 | // WithRegion wraps runtime/trace.WithRegion. |
| 44 | func WithRegion(ctx context.Context, regionType string, fn func()) { |
no outgoing calls
no test coverage detected