-
Notifications
You must be signed in to change notification settings - Fork 2
feat!: API change to allow (in the future) stream writing of trace files #26
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
Merged
+314
−282
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
3f5b42c
feat(stream_api): introduced trait TraceWriter
nickysn 7213328
feat(stream_api): added function create_trace_writer
nickysn aeb455f
feat(stream_api): added function begin_writing_trace_events() to the …
nickysn 8721213
feat(stream_api): added field Tracer::format
nickysn 93942a5
feat(stream_api): set format in create_trace_writer()
nickysn 899d70e
feat(stream_api): added trait TraceReader
nickysn d6e7f0e
feat(stream_api): implemented trace readers for both the json and bin…
nickysn adf777a
feat(stream_api): added and implemented method TraceWriter::add_event()
nickysn 79030a2
feat(stream_api): added and implemented method TraceWriter::append_ev…
nickysn fb48b0a
feat(stream_api): export create_trace_reader and create_trace_writer …
nickysn 342c795
feat(stream_api): derive debug, clone and copy for the TraceEventsFil…
nickysn 361b07c
feat(stream_api): use the new API in runtime_tracing_cli
nickysn 40a9ac6
feat(stream_api): return Result in TraceWriter::begin_writing_trace_e…
nickysn 9821197
feat(stream_api): store the path in begin_writing_trace_events
nickysn 594c901
feat(stream_api): removed the format parameter from TraceWriter::stor…
nickysn ed68f58
feat(stream_api): removed the path parameter from TraceWriter::store_…
nickysn 009d3dd
feat(stream_api): removed unused 'use'
nickysn 7cdd9cd
feat(stream_api): store_trace_events() renamed finish_writing_trace_e…
nickysn 100b5d7
feat(stream_api): update test test_binary_roundtrip to use the new API
nickysn 3cde38a
feat(stream_api): the Tracer struct was renamed NonStreamingTraceWriter
nickysn b8cbbbe
feat(stream_api): added check and panic, when finish_writing_trace_ev…
nickysn 6a21f95
feat(stream_api): introduced begin_writing_trace_metadata and begin_w…
nickysn 9d8f046
feat(stream_api): method store_trace_metadata renamed finish_writing_…
nickysn 775817a
feat(stream_api): method store_trace_paths renamed finish_writing_tra…
nickysn da7cff1
feat(stream_api): removed the parameter path from finish_writing_trac…
nickysn b1440f2
feat(stream_api): removed the parameter path from finish_writing_trac…
nickysn 141001c
feat(stream_api): methods finish_writing_trace_* now take a mutable s…
nickysn 64074a2
feat(stream_api): also reexport the TraceReader trait
nickysn 4398822
chore: cargo fmt
nickysn edd7065
chore: bump runtime_tracing version to 0.13.0
nickysn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i didn't realize i don't need to add
pubfor pub trait method implementations before: niceThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Actually, when implementing a trait, using 'pub' is not allowed and produces a compiler error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aha, makes sense