-
Notifications
You must be signed in to change notification settings - Fork 9
Add more information in traces from GstTracer #12
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
base: main
Are you sure you want to change the base?
Conversation
It is useful in the logs to know the query/message/event that are being handled so we log them.
@@ -91,6 +91,22 @@ fn state_desc(state: gstreamer::ffi::GstState) -> &'static str { | |||
} | |||
} | |||
|
|||
fn query_name(query: &gstreamer::QueryRef) -> &'static str { |
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.
Why not use the proper bindings API for this but instead go via FFI?
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.
We do not expose that API yet? The only reference I found was in our fmt::Debug
implementation which is clearly not what I want here. Should we add it?
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.
Seems useful to have, yes
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.
Opened https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1289 - I think this can be closed meanwhile.
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 think it is fine to keep this open and rebase later on. I don't consider open PRs to be a maintenance burden on repos with as low traffic as this.
Add pad name in traces
Add pad chain infos
tracer: Factor out a SpanBuilder struct to log different objects
It is useful in the logs to know the query/message/event that are being
handled so we log them.
tracer: Log elements state change and messages on the bus %