Skip to content

log client version ID on server side#1412

Open
MattShirley wants to merge 7 commits intodevelopfrom
832-track-version-numbers-of-client
Open

log client version ID on server side#1412
MattShirley wants to merge 7 commits intodevelopfrom
832-track-version-numbers-of-client

Conversation

@MattShirley
Copy link
Copy Markdown
Collaborator

@MattShirley MattShirley commented Apr 23, 2026

Logs client side client version when received as an HTTP header.

For issue: #832

Front end work: ssl-hep/ServiceX_frontend#736

@MattShirley MattShirley linked an issue Apr 23, 2026 that may be closed by this pull request
@MattShirley MattShirley changed the title add basic before_request callback log client version ID on server side Apr 23, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.27%. Comparing base (84b4145) to head (1f5c675).
⚠️ Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1412      +/-   ##
===========================================
+ Coverage    88.62%   89.27%   +0.64%     
===========================================
  Files           99      103       +4     
  Lines         3498     3887     +389     
  Branches       426      514      +88     
===========================================
+ Hits          3100     3470     +370     
- Misses         328      341      +13     
- Partials        70       76       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@BenGalewsky BenGalewsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok - this is a good start. I guess next step is to record this somewhere

Comment thread servicex_app/servicex_app/__init__.py Outdated
create_kibana_link=create_kibana_link,
)

@app.before_request
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like it is unnecessarily frequent. Couldn't we just do this on the Login message?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would be the login route for the client? We could log when a token refresh happens or a transformation is submitted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly - so that's pretty much once per transform request and not when polling for results

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved the global logger to only occur when a transformation is submitted, will update the client as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Track version numbers of client

2 participants