@@ -16,33 +16,38 @@ export default class Nimbus {
1616 static experiments : any ;
1717
1818 static async initialize ( clientId : string , context : any ) {
19- const body = JSON . stringify ( {
20- client_id : clientId ,
21- context ,
22- } ) ;
19+ // Important! Disabling this was requested in FXA-11622. There's a chance this call is
20+ // hurting our perf metrics due to a cirrus side car issues. Disabling for now until
21+ // nimbus teams can take a look at cirrus.
22+ this . experiments = null ;
2323
24- try {
25- const resp = await fetch ( '/nimbus-experiments' , {
26- method : 'POST' ,
27- body,
28- headers : {
29- 'Content-Type' : 'application/json' ,
30- } ,
31- } ) ;
24+ // const body = JSON.stringify({
25+ // client_id: clientId,
26+ // context,
27+ // });
3228
33- if ( resp . status === 200 ) {
34- const json = await resp . json ( ) ;
35- this . experiments = json as NimbusResult ;
36- } else {
37- this . experiments = null ;
38- }
39- } catch ( err ) {
40- Sentry . captureException ( err , {
41- tags : {
42- source : 'nimbus-experiments' ,
43- } ,
44- } ) ;
45- this . experiments = null ;
46- }
29+ // try {
30+ // const resp = await fetch('/nimbus-experiments', {
31+ // method: 'POST',
32+ // body,
33+ // headers: {
34+ // 'Content-Type': 'application/json',
35+ // },
36+ // });
37+
38+ // if (resp.status === 200) {
39+ // const json = await resp.json();
40+ // this.experiments = json as NimbusResult;
41+ // } else {
42+ // this.experiments = null;
43+ // }
44+ // } catch (err) {
45+ // Sentry.captureException(err, {
46+ // tags: {
47+ // source: 'nimbus-experiments',
48+ // },
49+ // });
50+ // this.experiments = null;
51+ // }
4752 }
4853}
0 commit comments