Skip to content

Commit

Permalink
remove reporting from getApplicationMetadataFromHost function
Browse files Browse the repository at this point in the history
  • Loading branch information
Siva Manivannan committed Dec 15, 2023
1 parent 0cdb296 commit 4ffafd2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/replicatedapp/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,6 @@ func getApplicationMetadataFromHost(host string, endpoint string, upstream *url.
return nil, errors.Wrap(err, "failed to call newrequest")
}

appID, err := store.GetStore().GetAppIDFromSlug(r.AppSlug)
if err != nil {
return nil, errors.Wrap(err, "failed to get app id from slug")
}

reportingInfo := reporting.GetReportingInfo(appID)
reporting.InjectReportingInfoHeaders(getReq, reportingInfo)

getResp, err := http.DefaultClient.Do(getReq)
if err != nil {
return nil, errors.Wrap(err, "failed to execute get request")
Expand Down

0 comments on commit 4ffafd2

Please sign in to comment.