We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ddde25 commit 8a161faCopy full SHA for 8a161fa
instana/autoprofile/sampler_scheduler.py
@@ -149,10 +149,12 @@ def report(self):
149
profile = self.sampler.build_profile(
150
to_millis(self.profile_duration),
151
to_millis(time.time() - self.profile_start_ts))
152
- profile_dict = profile.to_dict()
153
154
if self.profiler.agent.can_send():
155
- self.profiler.agent.collector.profile_queue.put(profile_dict)
+ if self.profiler.agent.announce_data.pid:
+ profile.process_id = str(self.profiler.agent.announce_data.pid)
156
+
157
+ self.profiler.agent.collector.profile_queue.put(profile.to_dict())
158
159
logger.debug(self.config.log_prefix + ': reporting profile:')
160
else:
0 commit comments