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

accepting client_id header #76

Merged
merged 20 commits into from
Feb 2, 2024
Merged

accepting client_id header #76

merged 20 commits into from
Feb 2, 2024

Conversation

vanitabhagwat
Copy link
Collaborator

@vanitabhagwat vanitabhagwat commented Jan 31, 2024

What this PR does / why we need it:
This PR is adding client_id to http registry request headers and accepting the client_id in config.
It helps tracking the requests to registry.

@@ -61,6 +61,8 @@ class HttpRegistryConfig(RegistryConfig):
""" str: Endpoint of Feature registry.
If registry_type is 'http', then this is a endpoint of Feature Registry """

clint_id: Optional[StrictStr] = "Unknown"
Copy link
Collaborator

Choose a reason for hiding this comment

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

spell check

@@ -77,6 +79,7 @@ def __init__(
timeout = httpx.Timeout(5.0, connect=60.0)
transport = httpx.HTTPTransport(retries=3, verify=False)
self.base_url = registry_config.path
self.client_id = registry_config.clint_id
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update self.http_client with the client_id. That should suffice the need. No need to pass from each function.

@vanitabhagwat vanitabhagwat merged commit b241c6a into master Feb 2, 2024
18 checks passed
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.

2 participants