Skip to content

Commit

Permalink
remove superfluous high-cardinality monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 20, 2024
1 parent 79dbfa1 commit 32a4af7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/controllers/Coach.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ final class Coach(env: Env) extends LilaController(env):
studies <- env.study.pager.withChaptersAndLiking(ctx.me, 4)(stu)
posts <- env.ublog.api.latestPosts(lila.ublog.UblogBlog.Id.User(c.user.id), 4)
page <- renderPage(views.coach.show(c, studies, posts))
_ = lila.mon.coach.pageView.profile(c.coach.id.value).increment()
yield Ok(page)

private def WithVisibleCoach(c: CoachModel.WithUser)(f: Fu[Result])(using ctx: Context) =
Expand Down
3 changes: 0 additions & 3 deletions modules/common/src/main/mon.scala
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,6 @@ object mon:
val unfollow = c.withTag("type", "unfollow")
val block = c.withTag("type", "block")
val unblock = c.withTag("type", "unblock")
object coach:
object pageView:
def profile(coachId: String) = counter("coach.pageView").withTag("name", coachId)
object clas:
object student:
def create(teacher: String) = counter("clas.student.create").withTag("teacher", teacher)
Expand Down

0 comments on commit 32a4af7

Please sign in to comment.