Skip to content

Conversation

maciejwalkowiak
Copy link
Contributor

📜 Description

Instead of passing templated URL to span description, pass real URL against which request is executed. It adds more details about request to executed Span and simplifies RestTemplate instrumentation configuration in non-boot usage.

💡 Motivation and Context

Fixes #1240.

💚 How did you test it?

Unit & Integration tests.

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

🔮 Next steps

Update reference docs.

Instead of passing templated URL to span description, pass real URL against which request is executed. It adds more details about request to executed Span and simplifies RestTemplate instrumentation configuration in non-boot usage.

Fixes #1240.
@marandaneto
Copy link
Contributor

@codecov-io
Copy link

Codecov Report

Merging #1246 (516634f) into main (4066bc6) will increase coverage by 0.14%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1246      +/-   ##
============================================
+ Coverage     74.68%   74.83%   +0.14%     
  Complexity     1720     1720              
============================================
  Files           180      180              
  Lines          6047     6031      -16     
  Branches        601      600       -1     
============================================
- Hits           4516     4513       -3     
+ Misses         1257     1244      -13     
  Partials        274      274              
Impacted Files Coverage Δ Complexity Δ
.../spring/boot/SentrySpanRestTemplateCustomizer.java 100.00% <ø> (ø) 3.00 <0.00> (ø)
...racing/SentrySpanClientHttpRequestInterceptor.java 0.00% <0.00%> (ø) 0.00 <0.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 4066bc6...516634f. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spans created by SentrySpanClientHttpRequestInterceptor only show request method

3 participants