Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exporter/otlpexporter/otlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (e *baseExporter) start(ctx context.Context, host component.Host) (err erro
grpc.WaitForReady(e.config.ClientConfig.WaitForReady),
}

return
return err
}

func (e *baseExporter) shutdown(context.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion pdata/pmetric/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ func (ms Metrics) DataPointCount() (dataPointCount int) {
}
}
}
return
return dataPointCount
}
2 changes: 1 addition & 1 deletion processor/batchprocessor/splitlogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ func resourceLRC(rs plog.ResourceLogs) (count int) {
for k := 0; k < rs.ScopeLogs().Len(); k++ {
count += rs.ScopeLogs().At(k).LogRecords().Len()
}
return
return count
}
2 changes: 1 addition & 1 deletion processor/batchprocessor/splittraces.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ func resourceSC(rs ptrace.ResourceSpans) (count int) {
for k := 0; k < rs.ScopeSpans().Len(); k++ {
count += rs.ScopeSpans().At(k).Spans().Len()
}
return
return count
}
8 changes: 4 additions & 4 deletions receiver/receivertest/contract_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (ds idSet) compare(other idSet) (missingInOther, onlyInOther []UniqueIDAttr
onlyInOther = append(onlyInOther, k)
}
}
return
return missingInOther, onlyInOther
}

// merge another set into this one and return a list of duplicate ids.
Expand All @@ -234,7 +234,7 @@ func (ds idSet) merge(other idSet) (duplicates []UniqueIDAttrVal) {
ds[k] = v
}
}
return
return duplicates
}

// mergeSlice merges another set into this one and return a list of duplicate ids.
Expand All @@ -246,7 +246,7 @@ func (ds idSet) mergeSlice(other []UniqueIDAttrVal) (duplicates []UniqueIDAttrVa
ds[id] = true
}
}
return
return duplicates
}

// union computes the union of this and another sets. A new set if created to return the result.
Expand All @@ -263,7 +263,7 @@ func (ds idSet) union(other idSet) (union idSet, duplicates []UniqueIDAttrVal) {
union[k] = v
}
}
return
return union, duplicates
}

// A function that returns a value indicating what the receiver's next consumer decides
Expand Down
Loading