-
Notifications
You must be signed in to change notification settings - Fork 39
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
Telemetry (#905) #918
base: master
Are you sure you want to change the base?
Telemetry (#905) #918
Changes from all commits
b5855bc
10a5605
3c5c695
13f2d49
f6fded6
2cd79d6
d9396ed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -7,6 +7,8 @@ defmodule Membrane.Core.CallbackHandler do | |||||||||||||||||||||||||
|
||||||||||||||||||||||||||
use Bunch | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
require Membrane.Core.Telemetry | ||||||||||||||||||||||||||
alias Membrane.Core.Telemetry | ||||||||||||||||||||||||||
alias Membrane.CallbackError | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
require Membrane.Logger | ||||||||||||||||||||||||||
|
@@ -136,7 +138,9 @@ defmodule Membrane.Core.CallbackHandler do | |||||||||||||||||||||||||
|
||||||||||||||||||||||||||
callback_result = | ||||||||||||||||||||||||||
try do | ||||||||||||||||||||||||||
apply(module, callback, args) | ||||||||||||||||||||||||||
Telemetry.report_span :element, :terminate do | ||||||||||||||||||||||||||
apply(module, callback, args) | ||||||||||||||||||||||||||
end | ||||||||||||||||||||||||||
Comment on lines
+141
to
+143
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This
Suggested change
Doing it this way will emit event for ALL callbacks and I think this is the thing we want to do |
||||||||||||||||||||||||||
rescue | ||||||||||||||||||||||||||
e in UndefinedFunctionError -> | ||||||||||||||||||||||||||
_ignored = | ||||||||||||||||||||||||||
|
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.
Since we will have an appropriate span for
handle_init
inCallbackHandler
, there is no need for span for:init
here