Skip to content

Commit

Permalink
Merge pull request quarkusio#28940 from mkouba/arc-dev-disable-monitor
Browse files Browse the repository at this point in the history
Turn off monitoring of bean invocations and fired events by default
  • Loading branch information
mkouba authored Oct 31, 2022
2 parents 89a81fe + a0951e8 commit e92ced9
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 @@ -1081,6 +1081,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 e92ced9

Please sign in to comment.