Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add provider info to service request counter#12740

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
silv-io wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromservice-provider-analytics

Conversation

silv-io
Copy link
Member

Motivation

/cc@mmaureenliu

Changes

@silv-iosilv-io added the semver: minorNon-breaking changes which can be included in minor releases, but not in patch releases labelJun 11, 2025
@github-actionsGitHub Actions
Copy link

github-actionsbot commentedJun 11, 2025
edited
Loading

Test Results - Preflight, Unit

21 862 tests  ±0   20 203 ✅  - 2   6m 15s ⏱️ +2s
     1 suites ±0    1 657 💤 ±0 
     1 files   ±0        2 ❌ +2 

For more details on these failures, seethis check.

Results for commitb881564. ± Comparison against base commit8057b19.

♻️ This comment has been updated with latest results.

@@ -42,13 +42,15 @@ def __call__(self, chain: HandlerChain, context: RequestContext, response: Respo
err_type = self._get_err_type(context, response) if response.status_code >= 400 else None
service_name = context.operation.service_model.service_name
operation_name = context.operation.name
provider = config.SERVICE_PROVIDER_CONFIG.get_provider(service_name)

Choose a reason for hiding this comment

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

this line seems to suggest that there's a 1:1 relationship of service_name to provider, which I think is not true - did I misread the function or the 1:1 relationship actually is true in the community version?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

In a running instance the relation is 1:1. Only one provider can be active at once. The active provider is defined in the config

@github-actionsGitHub Actions
Copy link

github-actionsbot commentedJun 11, 2025
edited
Loading

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 45m 11s ⏱️ - 1m 19s
4 929 tests ±0  4 152 ✅ ±0  777 💤 ±0  0 ❌ ±0 
4 931 runs  ±0  4 152 ✅ ±0  779 💤 ±0  0 ❌ ±0 

Results for commitb881564. ± Comparison against base commit8057b19.

♻️ This comment has been updated with latest results.

Copy link
Member

@thrauthrau left a comment

Choose a reason for hiding this comment

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

Thanks for taking a stab at this! My high-level feedback is: if we include the service provider in each service request, we'll also need to adapt the analytics backend, specifically the materialized view that stores the AWS service request. We can do that, but this creates additional work, is quite a substantial change. Also, since the set of providers doesn't (because it currently cannot) change during the runtime of LocalStack, we'll be sending redundant data for each request.

It might be more efficient to capture the configured providersonce at startup, similar to how we log environment variables. This would avoid redundancy and keep the data leaner. Happy to provide more guidance if needed, but suggest to sync up with@vittoriopolverino on this

vittoriopolverino and ackdav reacted with thumbs up emoji
@mmaureenliu
Copy link

Thanks for taking a stab at this! My high-level feedback is: if we include the service provider in each service request, we'll also need to adapt the analytics backend, specifically the materialized view that stores the AWS service request. We can do that, but this creates additional work, is quite a substantial change. Also, since the set of providers doesn't (because it currently cannot) change during the runtime of LocalStack, we'll be sending redundant data for each request.

It might be more efficient to capture the configured providersonce at startup, similar to how we log environment variables. This would avoid redundancy and keep the data leaner. Happy to provide more guidance if needed, but suggest to sync up with@vittoriopolverino on this

Just want some clarification on the "capture the configured providers once at startup" suggestion - do you mean at each session start, send a map of provider to service to the data backend, and let the data backend figure out the provider for each service within the session?

@vittoriopolverino
Copy link
Member

suggest to sync up with@vittoriopolverino on this

Happy to support on this. +1 to what Thomas already pointed out

@silv-iosilv-ioforce-pushed theservice-provider-analytics branch fromb6d93f4 tob881564CompareJuly 16, 2025 07:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@thrauthrauthrau left review comments

@mmaureenliummaureenliummaureenliu left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
semver: minorNon-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@silv-io@mmaureenliu@vittoriopolverino@thrau

[8]ページ先頭

©2009-2025 Movatter.jp