mirror of
https://github.com/golang/go
synced 2024-11-05 23:36:12 -07:00
f61d083d3b
Change-Id: I0e6a26c62bd1f6eaa07c38a06152cb7a0f2eedc2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/225579 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com> Reviewed-by: Robert Findley <rfindley@google.com>
15 lines
391 B
Go
15 lines
391 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package event
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// Label sends a label event to the exporter with the supplied tags.
|
|
func Label(ctx context.Context, tags ...Tag) context.Context {
|
|
return dispatch(ctx, makeEvent(LabelType, sTags{}, tags))
|
|
}
|