Skip to content

Add a custom User-Agent#12

Merged
carlosfunk merged 1 commit into
mainfrom
feat/sdk-user-agent
Jun 9, 2026
Merged

Add a custom User-Agent#12
carlosfunk merged 1 commit into
mainfrom
feat/sdk-user-agent

Conversation

@carlosfunk

Copy link
Copy Markdown
Member

Closes #10

@carlosfunk carlosfunk requested a review from beneboy June 9, 2026 02:57
@carlosfunk carlosfunk linked an issue Jun 9, 2026 that may be closed by this pull request
beneboy
beneboy previously approved these changes Jun 9, 2026
@carlosfunk carlosfunk force-pushed the feat/session-pooling branch from 79f462f to c7b35ab Compare June 9, 2026 04:40
Base automatically changed from feat/session-pooling to main June 9, 2026 04:41
@carlosfunk carlosfunk dismissed beneboy’s stale review June 9, 2026 04:41

The base branch was changed.

- 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
@carlosfunk carlosfunk force-pushed the feat/sdk-user-agent branch from 95f0401 to fcff340 Compare June 9, 2026 04:50
@carlosfunk carlosfunk merged commit 87d196d into main Jun 9, 2026
8 checks passed
@carlosfunk carlosfunk deleted the feat/sdk-user-agent branch June 9, 2026 04:53
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.

Add a custom User-Agent

2 participants