Skip to content

Add a custom User-Agent#12

Open
carlosfunk wants to merge 1 commit into
feat/session-poolingfrom
feat/sdk-user-agent
Open

Add a custom User-Agent#12
carlosfunk wants to merge 1 commit into
feat/session-poolingfrom
feat/sdk-user-agent

Conversation

@carlosfunk
Copy link
Copy Markdown
Member

Closes #10

- New USER_AGENT constant: 'datamasque-python/<ver> (Python/<py-ver>; <OS>/<rel>)'; version falls back to 'dev'
- _build_session sets the User-Agent on the session so every Base/Ifm client call carries it automatically
- Lets operators correlate API traffic in access logs with a specific SDK release when triaging reports
- Tests cover UA on anon + authed admin-server calls and on IFM login + authenticated requests

Closes #10
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