-
Notifications
You must be signed in to change notification settings - Fork 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
Support Akka actor metrics in otel extension #304
Comments
We can't add new fields to classes - the otel agent forbids it. To be investigated if we can use: |
The instrumenter/opentelemetry context api sounds like a good idea for the future, but it requires lots of code rewriting. It's planned either way but requires more research. For now it makes sense to just use a WeakHashMap for the Metrics obiects added by actorCell instrumentation and get rid of creating variables this way. As this seems to be the only blocker when it comes to using akkaActorAgent code in otel extension, I will proceed this way instead. |
Actually using some kind of WeakHashMap (that would need be concurrent btw) is the thing that a VirtualField does underneath, so going the way described above would be reinventing the VirtualFields from opentelemetry.
I will go and investigate the use of the
The VirtualFIelds use a "Weak Cache" underneath. That means that they are:
To be checked:
FYI @worekleszczy |
Similar to #291 and #296.
The text was updated successfully, but these errors were encountered: