Xrayvision
Utilities and wrappers for using AWS X-Ray with Python
Install / Use
/learn @mathom/XrayvisionREADME
NOTE
AWS has released the beta version of their Python X-ray SDK - check it out here: https://aws.amazon.com/about-aws/whats-new/2017/08/aws-x-ray-sdk-for-python-beta/
xrayvision
Utilities and wrappers for using AWS X-Ray with Python
WSGI Apps
Simply add the middleware to your app. For example, if you use Flask:
from xrayvision.ext.wsgi import XRayMiddleware
app = Flask(__name__)
app.wsgi_app = XRayMiddleware(app.wsgi_app)
You can add subsegments with the global_segment:
from xrayvision import global_segment
...
with global_segment.add_subsegment('my custom loop') as segment:
try:
# do stuff
except:
segment.add_exception()
Requests
Requests must be patched as early as possible in your code.
import requests
import xrayvision
xrayvision.patch('requests')
Related Skills
tmux
351.2kRemote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
claude-opus-4-5-migration
110.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
351.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
diffs
351.2kUse the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
