Skip to content

fix(otel): Prefer http route over http target for span description - #1002

Merged
giortzisg merged 5 commits into
getsentry:masterfrom
OrkhanAlikhanov:enhancement/otel-prefer-http-route
May 9, 2025
Merged

fix(otel): Prefer http route over http target for span description#1002
giortzisg merged 5 commits into
getsentry:masterfrom
OrkhanAlikhanov:enhancement/otel-prefer-http-route

Conversation

@OrkhanAlikhanov

Copy link
Copy Markdown
Contributor

Fixes #999

@OrkhanAlikhanov OrkhanAlikhanov changed the title Enhancement/otel prefer http route fix(otel): Prefer http route over http target for span description Apr 25, 2025
@giortzisg

giortzisg commented Apr 25, 2025

Copy link
Copy Markdown
Contributor

Can we also add some more tests for checking the fallback options and that they correctly parse the urls? @OrkhanAlikhanov

@OrkhanAlikhanov

Copy link
Copy Markdown
Contributor Author

Hello. Yes

@OrkhanAlikhanov

Copy link
Copy Markdown
Contributor Author

@giortzisg I added more test cases

Comment thread otel/internal/utils/spanattributes_test.go
@codecov

codecov Bot commented Apr 30, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.99%. Comparing base (6b014ea) to head (0575dad).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1002      +/-   ##
==========================================
+ Coverage   84.00%   84.99%   +0.99%     
==========================================
  Files          50       50              
  Lines        5171     5173       +2     
==========================================
+ Hits         4344     4397      +53     
+ Misses        673      631      -42     
+ Partials      154      145       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@giortzisg giortzisg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@OrkhanAlikhanov

Copy link
Copy Markdown
Contributor Author

Thank you @giortzisg. Looking forward to seeing it released

@cleptric
cleptric self-requested a review May 5, 2025 11:40
@cleptric cleptric added the Improvement Issue type label May 5, 2025
@giortzisg
giortzisg merged commit bf20c9f into getsentry:master May 9, 2025
@OrkhanAlikhanov
OrkhanAlikhanov deleted the enhancement/otel-prefer-http-route branch May 9, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Issue type

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Otel seems to prefer httpTarget over httpRoute

3 participants