Skip to content

Commit

Permalink
Turn off monitoring of bean invocations and fired events by default
Browse files Browse the repository at this point in the history
- this feature seems to cause more problems than benefits
- set quarkus.arc.dev-mode.monitoring-enabled=true to turn it on

(cherry picked from commit a0951e8)
  • Loading branch information
mkouba authored and gsmet committed Nov 1, 2022
1 parent e946002 commit 990f6db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/src/main/asciidoc/cdi-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,10 @@ In the development mode, two special endpoints are registered automatically to p

NOTE: These endpoints are only available in the development mode, i.e. when you run your application via `mvn quarkus:dev` (or `./gradlew quarkusDev`).

=== Monitoring Business Method Invocations and Events

In the development mode, it is also possible to enable monitoring of business method invocations and fired events.
Simply set the `quarkus.arc.dev-mode.monitoring-enabled` configuration property to `true` and explore the relevant Dev UI pages.

[[arc-configuration-reference]]
== ArC Configuration Reference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ArcDevModeConfig {
/**
* If set to true then the container monitors business method invocations and fired events during the development mode.
*/
@ConfigItem(defaultValue = "true")
@ConfigItem(defaultValue = "false")
public boolean monitoringEnabled;

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import javax.inject.Named;

import org.hamcrest.Matchers;
import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

Expand All @@ -20,7 +21,8 @@ public class DevConsoleArcSmokeTest {
@RegisterExtension
static final QuarkusDevModeTest test = new QuarkusDevModeTest()
.withApplicationRoot((jar) -> jar
.addClasses(Foo.class));
.addClasses(Foo.class).addAsResource(new StringAsset("quarkus.arc.dev-mode.monitoring-enabled=true"),
"application.properties"));

@Test
public void testPages() {
Expand Down

0 comments on commit 990f6db

Please sign in to comment.