1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
11 // Record sends a label event to the exporter with the supplied tags.
12 func Record(ctx context.Context, tags ...Tag) context.Context {
13 return dispatch(ctx, makeEvent(RecordType, sTags{}, tags))
16 // Record1 sends a label event to the exporter with the supplied tags.
17 func Record1(ctx context.Context, t1 Tag) context.Context {
18 return dispatch(ctx, makeEvent(RecordType, sTags{t1}, nil))
21 // Record2 sends a label event to the exporter with the supplied tags.
22 func Record2(ctx context.Context, t1, t2 Tag) context.Context {
23 return dispatch(ctx, makeEvent(RecordType, sTags{t1, t2}, nil))
26 // Record3 sends a label event to the exporter with the supplied tags.
27 func Record3(ctx context.Context, t1, t2, t3 Tag) context.Context {
28 return dispatch(ctx, makeEvent(RecordType, sTags{t1, t2, t3}, nil))