1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-15 01:04:25 +02:00

Fix some golint issues (#1947)

Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
Hu Shuai
2021-05-24 23:08:29 +08:00
committed by GitHub
parent 0eeb8f87e9
commit ea1434c3d4
2 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ func (c *Controller) export(ctx context.Context) error {
return c.exporter.Export(ctx, ckpt)
}
// Foreach gives the caller read-locked access to the current
// ForEach gives the caller read-locked access to the current
// export.CheckpointSet.
func (c *Controller) ForEach(ks export.ExportKindSelector, f func(export.Record) error) error {
ckpt := c.checkpointer.CheckpointSet()

View File

@ -26,7 +26,7 @@ import (
type SpanStubs []SpanStub
// SpanStubFromReadOnlySpan returns SpanStubs populated from ro.
// SpanStubsFromReadOnlySpans returns SpanStubs populated from ro.
func SpanStubsFromReadOnlySpans(ro []tracesdk.ReadOnlySpan) SpanStubs {
if len(ro) == 0 {
return nil