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:
jvalkeal
2018-02-11 09:24:13 +02:00
parent c693e79f12
commit 328a2e9161
12 changed files with 378 additions and 80 deletions

View File

@@ -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: "*"

View File

@@ -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