Add tracing in integration tests paragraph to the documentation

See gh-31308
pull/31344/head
Moritz Halbritter 2 years ago
parent 8fab9f290c
commit 486b3073ce

@ -220,15 +220,17 @@ If such test needs access to an `MBeanServer`, consider marking it dirty as well
include::code:MyJmxTests[]
[[features.testing.spring-boot-applications.metrics]]
==== Using Metrics
Regardless of your classpath, meter registries, except the in-memory backed, are not auto-configured when using `@SpringBootTest`.
If you need to export metrics to a different backend as part of an integration test, annotate it with `@AutoConfigureObservability`.
[[features.testing.spring-boot-applications.tracing]]
==== Using Tracing
Regardless of your classpath, tracing is not auto-configured when using `@SpringBootTest`.
If you need tracing as part of an integration test, annotate it with `@AutoConfigureObservability`.
[[features.testing.spring-boot-applications.mocking-beans]]
==== Mocking and Spying Beans

Loading…
Cancel
Save