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

feat: add service metrics for spells [fixes NET-441] #1565

Merged
merged 5 commits into from
Apr 12, 2023

Conversation

kmd-fl
Copy link
Contributor

@kmd-fl kmd-fl commented Apr 11, 2023

Add a new service type for spells and spells with aliases.

Extend some new metrics with labels:

  • services_count
  • creation_time_msec
  • removal_time_msec
  • creation_count
  • removal_count

And add a hack to detect that a service is a spell fast, without rechecking the blueprint cache on every call.

Need to design a non-hacky way to distinguish a service and a spell, I think. It will be needed not only for this metrics collection thing but also for rewriting the registry and other built-in services as spells.

@linear
Copy link

linear bot commented Apr 11, 2023

@kmd-fl kmd-fl force-pushed the service-metrics-for-spells branch from cc072f3 to 198ef91 Compare April 11, 2023 14:21
particle-services/src/app_services.rs Outdated Show resolved Hide resolved
particle-services/src/app_services.rs Show resolved Hide resolved
@@ -324,17 +328,13 @@ impl ParticleAppServices {
)?;

// tmp hack to forbid spell removal via srv.remove
Copy link
Member

Choose a reason for hiding this comment

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

is it temporary? What's the plan to fix it? @justprosh

Copy link
Member

Choose a reason for hiding this comment

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

I think it is fixed with service.is_spell by @kmd-fl

particle-services/src/app_services.rs Show resolved Hide resolved
particle-services/src/app_services.rs Outdated Show resolved Hide resolved
particle-services/src/app_services.rs Outdated Show resolved Hide resolved
@kmd-fl kmd-fl added the e2e Run e2e workflow label Apr 11, 2023
@kmd-fl kmd-fl merged commit 947dfa8 into master Apr 12, 2023
@kmd-fl kmd-fl deleted the service-metrics-for-spells branch April 12, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Run e2e workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants