Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent User-Agent for all requests #448

Open
wants to merge 2 commits into
base: release/13.1.0
Choose a base branch
from

Conversation

dot-mike
Copy link
Member

This PR adds a shared User-Agent for all requests in the launcher. The UA is Flashpoint Launcher/${VERSION} which will show up in FPFSS logs as of writing this: userAgent="Flashpoint Launcher/2024-12-19 (b500e31c)"

The purpose of this UA is to ensure we have a valid UA set and that we are able to track which versions of launcher is hitting out APIs.

Exmple fpfss log:

time="2024-12-19T02:32:12.638044589+01:00" level=debug msg="request captured" func=github.com/FlashpointProject/flashpoint-submission-system/transport.InitApp.LogRequestHandler.func4 file="/home/mike/code/flashpoint-submission-system/logging/logging.go:87" commit=deadbeef duration_ns=1660690 ip=172.27.80.1 method=GET requestID=a021ubwvwp2blb1l runID=hf926sos size=12 statusCode=200 uri="/api/games/updates?after=2024-12-08T02:33:49.321Z" userAgent="Flashpoint Launcher/2024-12-19 (b500e31c)

@dot-mike
Copy link
Member Author

@Dri0m might interest you for graylog.

@dot-mike dot-mike changed the title Consitent User-Agent for all requests Consistent User-Agent for all requests Dec 19, 2024
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.

1 participant