You've already forked opentelemetry-go
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:
@ -262,7 +262,7 @@ func (c *Controller) export(ctx context.Context) error {
|
|||||||
return c.exporter.Export(ctx, ckpt)
|
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.
|
// export.CheckpointSet.
|
||||||
func (c *Controller) ForEach(ks export.ExportKindSelector, f func(export.Record) error) error {
|
func (c *Controller) ForEach(ks export.ExportKindSelector, f func(export.Record) error) error {
|
||||||
ckpt := c.checkpointer.CheckpointSet()
|
ckpt := c.checkpointer.CheckpointSet()
|
||||||
|
@ -26,7 +26,7 @@ import (
|
|||||||
|
|
||||||
type SpanStubs []SpanStub
|
type SpanStubs []SpanStub
|
||||||
|
|
||||||
// SpanStubFromReadOnlySpan returns SpanStubs populated from ro.
|
// SpanStubsFromReadOnlySpans returns SpanStubs populated from ro.
|
||||||
func SpanStubsFromReadOnlySpans(ro []tracesdk.ReadOnlySpan) SpanStubs {
|
func SpanStubsFromReadOnlySpans(ro []tracesdk.ReadOnlySpan) SpanStubs {
|
||||||
if len(ro) == 0 {
|
if len(ro) == 0 {
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user