Skip to content

Commit

Permalink
CP-46151: Productise the observer.py.
Browse files Browse the repository at this point in the history
Instead of being a noop, it will now automatically instrument the python
code given to it and create spans accordingly. The trace created will
link to the xapi code that called it. It will export to all endpoints
that it is given, which it reads from the observer.conf files created by
xapi.

Signed-off-by: Steven Woods <[email protected]>
Co-authored-by: Bernhard Kaindl <[email protected]>
Co-authored-by: Marcus Granado <[email protected]>
  • Loading branch information
3 people committed Mar 6, 2024
1 parent 0a0d55d commit 8596e98
Show file tree
Hide file tree
Showing 6 changed files with 550 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

- name: Install dependencies only needed for python 3
if: ${{ matrix.python-version != '2.7' }}
run: pip install pandas pytype toml
run: pip install pandas pytype toml wrapt

- name: Install common dependencies for Python ${{matrix.python-version}}
run: pip install future mock pytest-coverage pytest-mock
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ ensure_newline_before_comments = false
# Note mypy has no config setting for PYTHONPATH, so you need to call it with:
# PYTHONPATH="scripts/examples/python:.:scripts:scripts/plugins:scripts/examples"
files = [
"python3",
"scripts/usb_reset.py",
"scripts/unit_tests",
]
pretty = true
error_summary = true
Expand Down
Empty file added python3/packages/__init__.py
Empty file.
Loading

0 comments on commit 8596e98

Please sign in to comment.