Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Semconv migration Part1 Client - v1.24.0 support #5773

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MadVikingGod
Copy link
Contributor

This change adds the new semantic version (v1.24.0) attribute producer to the semconv of otlehttp.

Part of #5332

@MadVikingGod MadVikingGod requested review from dmathieu and a team as code owners June 17, 2024 15:30
@MadVikingGod MadVikingGod reopened this Jun 18, 2024
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 80.95238% with 4 lines in your changes missing coverage. Please review.

Project coverage is 64.4%. Comparing base (f212d53) to head (2b776c3).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #5773   +/-   ##
=====================================
  Coverage   64.4%   64.4%           
=====================================
  Files        200     200           
  Lines      12540   12557   +17     
=====================================
+ Hits        8082    8095   +13     
- Misses      4221    4223    +2     
- Partials     237     239    +2     
Files Coverage Δ
...tion/net/http/otelhttp/internal/semconv/v1.20.0.go 100.0% <100.0%> (ø)
instrumentation/net/http/otelhttp/transport.go 97.5% <100.0%> (+<0.1%) ⬆️
...entation/net/http/otelhttp/internal/semconv/env.go 74.1% <66.6%> (-4.8%) ⬇️

@MadVikingGod MadVikingGod added the Skip Changelog Allow PR to succeed without requiring an addition to the CHANGELOG label Jun 18, 2024
Comment on lines +105 to +113
func (c HTTPClient) Status(code int) (codes.Code, string) {
if code < 100 || code >= 600 {
return codes.Error, fmt.Sprintf("Invalid HTTP status code %d", code)
}
if code >= 400 {
return codes.Error, ""
}
return codes.Unset, ""
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This is missing tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog Allow PR to succeed without requiring an addition to the CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants