Skip to content

Commit

Permalink
Update agent.instrumentation.python.deep.py
Browse files Browse the repository at this point in the history
  • Loading branch information
plengauer authored Jan 7, 2025
1 parent a5e7d62 commit e4900fb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def inject_file(file):
return '/bin/sh'

def inject_arguments(file, args):
if type(args) is tuple:
args = list(args)
return [ args[0], '-c', '. otel.sh\n_otel_inject "' + file + '" "$@"', 'python' ] + args[1:]

def observed_os_execv(original_os_execve, file, args):
Expand Down

0 comments on commit e4900fb

Please sign in to comment.