-
Notifications
You must be signed in to change notification settings - Fork 105
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
Another attempt at span monitoring #602
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #602 +/- ##
==========================================
+ Coverage 72.34% 72.53% +0.19%
==========================================
Files 60 61 +1
Lines 1902 1930 +28
==========================================
+ Hits 1376 1400 +24
- Misses 526 530 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Would using the monitor(Pid) call for a given span allow the process touching the span to define how or when it wants it tracked? I could imagine the monitor option just deferring to an API Call for that, but as you said, the biggest issue is maintaining compatibility by adding the call? |
@ferd not sure what you mean about touching a span. |
Mostly creating a span in one process and then handing it over to another for most of its lifecycle |
That would depend on updating the |
I haven't yet looked at the implementation details but from an end-user point of view if Said so, I agree that monitoring only a subset of the spans handled by a process doesn't make much sense.
This is not so clear to me but I'm not very familiar with the internals |
Can't you update the pid when |
Things I don't like:
monitor(Pid)
function in the API that calls the SDK. Reason I don't like that is it has to lookup what SDK is being used.pid
isn't updated at any point this changes how we will be suggesting child spans are created for remote processes from https://opentelemetry.io/docs/instrumentation/erlang/manual/#spans-in-separate-processes to having to instead use a new API (see the newstart_span
macro added in this PR) to pass the parent context when starting the child in the new process.I am still kicking around where I stand on these issues and there are probably more, but opening this for feedback.