-
Notifications
You must be signed in to change notification settings - Fork 11
feat: Support SDK metrics #136
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with non-blocking comments.
|
||
# Then | ||
headers = responses.calls[0].request.headers | ||
assert headers == {**default_headers, **expected_headers} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: For readability, I'd move default_headers
to here instead of a fixture — unless we're going to reuse/customize it.
|
||
__all__ = ("Flagsmith", "webhooks") | ||
__all__ = ("Flagsmith", "webhooks", "__version__") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe __all__
should be a list.
return { | ||
"User-Agent": f"flagsmith-python-client/{__version__} python-requests/2.32.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return { | |
"User-Agent": f"flagsmith-python-client/{__version__} python-requests/2.32.4", | |
requests_version = version("requests") | |
return { | |
"User-Agent": f"flagsmith-python-client/{__version__} python-requests/{requests_version}", |
Closes #130.
User-Agent
header value to include the SDK name and version