Skip to content

Commit

Permalink
[exporter/alibabacloudlogservice] Upgrade code to adopt new aliyun-lo…
Browse files Browse the repository at this point in the history
…g-go-sdk version (#30243)

**Description:** 

Replace deprecated UpdateStsToken, AccessKeyID, and AccessKeySecret
fields in ProducerConfig with CredentialsProvider

**Link to tracking Issue:** 

#26456
  • Loading branch information
qiansheng91 authored Jan 10, 2024
1 parent 74bc219 commit c5d9e98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exporter/alibabacloudlogserviceexporter/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ func newLogServiceClient(config *Config, logger *zap.Logger) (logServiceClient,
producerConfig.AccessKeySecret = string(config.AccessKeySecret)
if config.ECSRamRole != "" || config.TokenFilePath != "" {
tokenUpdateFunc, _ := slsutil.NewTokenUpdateFunc(config.ECSRamRole, config.TokenFilePath)
// https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/26987
// nolint
producerConfig.UpdateStsToken = tokenUpdateFunc
provider := sls.NewUpdateFuncProviderAdapter(tokenUpdateFunc)
producerConfig.CredentialsProvider = provider

producerConfig.StsTokenShutDown = make(chan struct{})
}

Expand Down

0 comments on commit c5d9e98

Please sign in to comment.