mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
chore: do not use path in metric labels if response code is 404 not found. (#28020)
This commit is contained in:
@@ -94,7 +94,8 @@ func main() {
|
||||
e.Use(middleware.GzipWithConfig(middleware.GzipConfig{
|
||||
Level: 9, // Set compression level to maximum
|
||||
}))
|
||||
e.Use(echoprometheus.NewMiddleware("livestream"))
|
||||
e.Use(echoprometheus.NewMiddlewareWithConfig(
|
||||
echoprometheus.MiddlewareConfig{DoNotUseRequestPathFor404: true, Subsystem: "livestream"}))
|
||||
|
||||
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
|
||||
AllowOrigins: []string{"*"},
|
||||
|
||||
Reference in New Issue
Block a user