-
Notifications
You must be signed in to change notification settings - Fork 4
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
RW-12554 Send metrics when we run into Cannot delete a resource with children
#2882
Conversation
b90629e
to
a068af2
Compare
IO(fastPassFailureCounter.add(1, Attributes.of(AttributeKey.stringKey("function"), functionName))) | ||
} | ||
def incrementFastPassFailureCounter(functionName: String): IO[Unit] = | ||
IO(fastPassFailureCounter.add(1, Attributes.of(AttributeKey.stringKey("function"), functionName))) |
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.
these are from scalafmtAll
AttributeKey.stringKey("member_type"), memberType.toString, | ||
AttributeKey.stringKey("action"), action | ||
))) | ||
def incrementCounter(name: String, |
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.
this is the only method I added
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.
Great idea
@@ -209,6 +209,7 @@ case class Workspace( | |||
def toWorkspaceName: WorkspaceName = WorkspaceName(namespace, name) | |||
def briefName: String = toWorkspaceName.toString | |||
def path: String = toWorkspaceName.path | |||
def isAoU: Boolean = googleProjectId.value.startsWith("terra-vpc-sc-") |
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 wonder if there's a more generic counter we can expose here rather than a boolean isAou. That is, we may have other consumers we want to slice on in the future that use service perimeter's etc. Perhaps a project type "base" or "vpc"?
|
https://precisionmedicineinitiative.atlassian.net/browse/RW-12554
PR checklist
model/
, then you should publish a new officialrawls-model
and updaterawls-model
in Orchestration's dependencies.