Implement custom trace repository
- Upgrade to boot 2.0.0.RC1 - Copy original boot's tracing features to get used as a base impl for statemachine. - Fix samples, tests. - Fixes #491
This commit is contained in:
@@ -4,7 +4,7 @@ logging:
|
||||
spring:
|
||||
autoconfigure:
|
||||
exclude:
|
||||
- org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration
|
||||
- org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
|
||||
endpoints:
|
||||
default:
|
||||
web:
|
||||
@@ -12,4 +12,4 @@ endpoints:
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
expose: metrics,trace
|
||||
expose: "*"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2017 the original author or authors.
|
||||
* Copyright 2016-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -99,8 +99,8 @@ public class MonitoringTests {
|
||||
perform(get("/state")).
|
||||
andExpect(status().isOk());
|
||||
mvc.
|
||||
perform(get("/actuator/trace")).
|
||||
andExpect(jsonPath("$.traces.*.info.transition", containsInAnyOrder("INITIAL_S1")));
|
||||
perform(get("/actuator/statemachinetrace")).
|
||||
andExpect(jsonPath("$.*.info.transition", containsInAnyOrder("INITIAL_S1")));
|
||||
}
|
||||
|
||||
@Before
|
||||
|
||||
Reference in New Issue
Block a user