mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-01 15:14:25 +02:00
fix(core): disable metrics
Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
parent
3394bfce47
commit
62350a048c
@ -11,7 +11,7 @@ class DisableMetrics : Feature("DisableMetrics") {
|
|||||||
|
|
||||||
context.event.subscribe(NetworkApiRequestEvent::class) { param ->
|
context.event.subscribe(NetworkApiRequestEvent::class) { param ->
|
||||||
val url = param.url
|
val url = param.url
|
||||||
if (url.contains("app-analytics") || url.endsWith("metrics")) {
|
if (url.contains("app-analytics") || url.endsWith("metrics") || url.contains("streaming-collector")) {
|
||||||
param.canceled = true
|
param.canceled = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user