forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update StatusCodeFromHTTP to accept int64 (#6699)
The functionality of StatusCodeFromHTTP can be performed on an int64 as easily as an int. By updating the function to accept an int64 instead of an int as an argument the callers do not need to "down cast" the value and potentially handle int64 to int32 truncation issues. This updates the function to accept an int64 and resolve this issue. This introduces an int64 to int32 truncation issue in the Jaeger translator as the returned value of getStatusCodeValFromAttr is used as a pdata.StatusCode which has an underlying int32 representation. This is resolved in #6682 where that conversion is made explicit and this bug will be removed.
- Loading branch information
1 parent
51fa974
commit d5ea9e4
Showing
4 changed files
with
5 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters