Skip to content

Commit

Permalink
add TODOs
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Sep 1, 2020
1 parent b64ddea commit ad4419e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/collector/app/span_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func (sp *spanProcessor) saveSpan(span *model.Span) {
}

startTime := time.Now()
// TODO context should be propagated from upstream components
if err := sp.spanWriter.WriteSpan(context.TODO(), span); err != nil {
sp.logger.Error("Failed to save span", zap.Error(err))
sp.metrics.SavedErrBySvc.ReportServiceNameForSpan(span)
Expand Down
1 change: 1 addition & 0 deletions cmd/ingester/app/processor/span_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ func (s KafkaSpanProcessor) Process(message Message) error {
if err != nil {
return fmt.Errorf("cannot unmarshall byte array into span: %w", err)
}
// TODO context should be propagated from upstream components
return s.writer.WriteSpan(context.TODO(), span)
}

0 comments on commit ad4419e

Please sign in to comment.