Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an application that takes HTTP calls and converts the information into a RabbitMQ publish. I use OpenTelemetry to report traces into Jaeger. When I run my application, and blast it with HTTP calls, it will consume all the CPU on its VM after about 6 minutes and the process has to be force killed. I commented out all of my OTel code and couldn't get the application to crash.
Because this application is managing publishing to RMQ for multiple services I couldn't just rely on one
Resource
. I needed each service to report into Jaeger as its own resource. Here's my code for setting this up:Each service implements the
BasePublisher
class. I'm new to Python but I think my issue here is that I'm creating a lottracer_providers
. After the 10 millionth once is created then things start to crash. Interestingly enough there is no memory spike when the crash does happen. My reason for thinking this is that every time I callMyService.publish()
I can see that it has to callself.set_tracer_provder()
. I would hope that that only has to get called once per application run.This is a stripped down sample of my code. I can provide more context if needed. Any help would be appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions