Skip to content

Commit

Permalink
fix(server): Finish SendEventsToSink span
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Dec 2, 2024
1 parent d4847e4 commit df24566
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/server/service/event-ingester/ingester.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func (e *Ingester) CreateEvents(ctx context.Context, req *xatu.CreateEventsReque
errMsg := fmt.Errorf("failed to handle new decorated events: %w", err)

span.SetStatus(ocodes.Error, errMsg.Error())
span.End()

return nil, status.Error(codes.Internal, errMsg.Error())
}
Expand Down

0 comments on commit df24566

Please sign in to comment.