Skip to content

Commit

Permalink
Assume os.getppid is always available (#2038)
Browse files Browse the repository at this point in the history
It's always available since 3.2 and tests are already assuming that.
  • Loading branch information
xrmx authored May 14, 2024
1 parent c15a7bd commit 73ac280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elasticapm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def get_service_info(self):
def get_process_info(self):
result = {
"pid": os.getpid(),
"ppid": os.getppid() if hasattr(os, "getppid") else None,
"ppid": os.getppid(),
"title": None, # Note: if we implement this, the value needs to be wrapped with keyword_field
}
if self.config.include_process_args:
Expand Down

0 comments on commit 73ac280

Please sign in to comment.