Skip to content

Commit

Permalink
chore: bump version to v1.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Strazz1337 committed Oct 12, 2024
1 parent d641c90 commit 7f78df4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.4.6] - 2024-10-12

### Changed

- Updated HTTP span attributes to comply with updated OpenTelemetry semantic conventions. [#182](https://github.com/microsoft/kiota-http-go/issues/182)

## [1.4.5] - 2024-09-03

### Changed
Expand Down
2 changes: 1 addition & 1 deletion nethttp_request_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (a *NetHttpRequestAdapter) retryCAEResponseIfRequired(ctx context.Context,
authenticateHeaderVal := response.Header.Get("WWW-Authenticate")
if authenticateHeaderVal != "" && reBearer.Match([]byte(authenticateHeaderVal)) {
span.AddEvent(AuthenticateChallengedEventKey)
spanForAttributes.SetAttributes(attribute.Int("http.retry_count", 1))
spanForAttributes.SetAttributes(semconv.HTTPRequestResendCount(1))
responseClaims := ""
parametersRaw := string(reBearer.ReplaceAll([]byte(authenticateHeaderVal), []byte("")))
parameters := strings.Split(parametersRaw, ",")
Expand Down
2 changes: 1 addition & 1 deletion user_agent_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NewUserAgentHandlerOptions() *UserAgentHandlerOptions {
return &UserAgentHandlerOptions{
Enabled: true,
ProductName: "kiota-go",
ProductVersion: "1.4.5",
ProductVersion: "1.4.6",
}
}

Expand Down

0 comments on commit 7f78df4

Please sign in to comment.