Skip to content

Conversation

@codefromthecrypt
Copy link
Contributor

@codefromthecrypt codefromthecrypt commented Jul 8, 2020

Actuator endpoints are queried to make the default skip pattern. There's an
edge case where actuator endpoints indirectly reference the still constructing
HttpTracing bean. Ex: an instrumented client could cause a cyclic dep.

This optimizes for the opposite: that custom actuator endpoints are not in
use. This allows configuration to be eagerly parsed, allowing any errors to
surface earlier. In the case there is a cyclic dep, this parsing becomes lazy,
deferring any errors creating the skip pattern.

Fixes #1679

It is unusual to inject HttpTracing into an actuator endpoint vs an end-user api
such as `Tracer` or `SpanCustomizer`. However, we decided to allow this and so
need a test to prove this continues to work.

Fixes #1679
@codecov
Copy link

codecov bot commented Jul 8, 2020

Codecov Report

Merging #1680 into 2.2.x will decrease coverage by 0.01%.
The diff coverage is 70.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##              2.2.x    #1680      +/-   ##
============================================
- Coverage     59.28%   59.26%   -0.02%     
- Complexity      879      880       +1     
============================================
  Files           162      162              
  Lines          4787     4790       +3     
  Branches        556      557       +1     
============================================
+ Hits           2838     2839       +1     
- Misses         1686     1688       +2     
  Partials        263      263              
Impacted Files Coverage Δ Complexity Δ
...euth/instrument/web/TraceWebAutoConfiguration.java 84.00% <70.00%> (-2.12%) 8.00 <7.00> (+1.00) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18c27d9...f2f5976. Read the comment docs.

Adrian Cole added 2 commits July 8, 2020 14:18
@marcingrzejszczak marcingrzejszczak added this to the 2.2.4.RELEASE milestone Jul 8, 2020
@marcingrzejszczak marcingrzejszczak merged commit 39671a7 into 2.2.x Jul 8, 2020
@marcingrzejszczak marcingrzejszczak deleted the handle-odd-config branch July 8, 2020 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants