diff --git a/sdk/metric/controller/basic/controller.go b/sdk/metric/controller/basic/controller.go index 59fa444a1..aa4e7fdaa 100644 --- a/sdk/metric/controller/basic/controller.go +++ b/sdk/metric/controller/basic/controller.go @@ -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() diff --git a/sdk/trace/tracetest/span.go b/sdk/trace/tracetest/span.go index 964b317c6..0e6da2e08 100644 --- a/sdk/trace/tracetest/span.go +++ b/sdk/trace/tracetest/span.go @@ -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