Skip to content

Commit ec5ac7b

Browse files
authored
Merge pull request #3 from Cosmo-Tech/monitoringpointcut
point cut on higher level RestController instead of Service
2 parents b0ac5e7 + 5eab66b commit ec5ac7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/cosmotech/api/metrics/MonitorServiceAspect.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MonitorServiceAspect(private var meterRegistry: MeterRegistry) {
3232
"connectorId")
3333

3434
@Pointcut(
35-
"within(@org.springframework.stereotype.Service *)" + " && within(com.cosmotech..*Impl)")
35+
"within(@org.springframework.web.bind.annotation.RestController *) && within(com.cosmotech..*Controller)")
3636
@Suppress("EmptyFunctionBlock")
3737
fun cosmotechPointcut() {}
3838

0 commit comments

Comments
 (0)