Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trace anonymizer prorotype #2328

Merged
merged 3 commits into from
Jul 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Delint
Signed-off-by: Yuri Shkuro <ys@uber.com>
  • Loading branch information
Yuri Shkuro committed Jul 4, 2020
commit 8b2fc958dd5bad347ad60f022e57a26c4874e558
1 change: 1 addition & 0 deletions cmd/anonymizer/app/anonymizer/.nocover
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
non-critical test utility
1 change: 1 addition & 0 deletions cmd/anonymizer/app/writer/.nocover
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nobn-critical test utility
4 changes: 3 additions & 1 deletion cmd/anonymizer/app/writer/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ func (w *Writer) WriteSpan(msg *model.Span) error {
defer w.lock.Unlock()

out := new(bytes.Buffer)
err := new(jsonpb.Marshaler).Marshal(out, msg)
if err := new(jsonpb.Marshaler).Marshal(out, msg); err != nil {
return err
}
if w.spanCount > 0 {
w.capturedFile.WriteString(",\n")
}
Expand Down