-
Notifications
You must be signed in to change notification settings - Fork 112
Support multiple process handling in otelsdk
#2016
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
Conversation
a8cb945
to
723546c
Compare
I was thinking we could have something similar to what we have for
|
How do you add attributes to a Also, why overload the Instrumentation with responsibility for resources? It is not designed to discover processes or provide information about the system it is running on. Why not encapsulate that responsibility where it makes sense (i.e. the |
I'm not suggesting to have it in the Instrumentation. |
Users don't call Why would a user call |
Then maybe the Instrumentation should call
As a user, this feels not intuitive ant not necessary. I want to have a common handler which will handle the exporting and batching, and also have the ability to pass resource to each instrumentation/process/handler wrapper. I don't want to be aware of the internals of the Handler, and don't want to depend on those internals. |
Right, so this is what I've been talking about in my comments here and #1859. I ask you please refer to them with this new understanding. To summarize, this is a bad idea as it separates the duty of maintaining a resource, it is not universal, and it imposes a resource/attribute representation burden on all Handlers. |
I don't follow.
|
@MrAlias Following the SIG meeting and reading through the multiplexer example, i think we can move forward with this approach. |
Sure, that is something we can do if we have a use-case for it. |
80384ef
to
21096f9
Compare
otelsdk
68628b5
to
fafdd27
Compare
fafdd27
to
b59ed53
Compare
Resolve #2143