|
27 | 27 | config.indexOf("%") === 0
|
28 | 28 | )
|
29 | 29 | return "";
|
30 |
| - |
| 30 | + |
31 | 31 | const result = config.trim();
|
32 | 32 | if (result.toLowerCase() === "false" || result === "") {
|
33 | 33 | return false;
|
34 | 34 | } else if (result.toLowerCase() === "true") {
|
35 | 35 | return true;
|
36 | 36 | }
|
37 |
| - |
| 37 | + |
38 | 38 | return result;
|
39 | 39 | };
|
40 | 40 | const CLOUD_HOSTING = parseConfig("__APPSMITH_CLOUD_HOSTING__");
|
|
44 | 44 | NREUM = undefined
|
45 | 45 | </script>
|
46 | 46 | <script>
|
47 |
| - |
| 47 | + |
48 | 48 | const enableNewRelic=parseConfig("__APPSMITH_NEW_RELIC_ACCOUNT_ENABLE__");
|
49 | 49 | //only when newRelic is enabled do we load the browser agent script
|
50 | 50 | if (!!enableNewRelic) {
|
|
55 | 55 | //we load the new relic browser agent script from our CDN.
|
56 | 56 | script.src = "https://assets.appsmith.com/newRelicBrowserAgent1.js";
|
57 | 57 | script.onload = () => {
|
58 |
| - // we have defined and init function within the Browser agent script. |
59 |
| - // This init fn gets assigned to a global var called NEW_RELIC_BROWSER_AGENT, when the script tag element loads |
| 58 | + // we have defined and init function within the Browser agent script. |
| 59 | + // This init fn gets assigned to a global var called NEW_RELIC_BROWSER_AGENT, when the script tag element loads |
60 | 60 | // we call the init fn with all env vars. Through this step browser agent has the required license key to push telemetry info to new relic.
|
61 | 61 | NEW_RELIC_BROWSER_AGENT && NEW_RELIC_BROWSER_AGENT.init([accountId,applicationId,browserAgentlicenseKey]);
|
62 | 62 | };
|
|
265 | 265 | smartLook: {
|
266 | 266 | id: parseConfig("__APPSMITH_SMART_LOOK_ID__"),
|
267 | 267 | },
|
268 |
| - enableRapidAPI: parseConfig("__APPSMITH_MARKETPLACE_ENABLED__"), |
269 | 268 | segment: {
|
270 | 269 | apiKey: parseConfig("__APPSMITH_SEGMENT_KEY__"),
|
271 | 270 | ceKey: parseConfig("__APPSMITH_SEGMENT_CE_KEY__"),
|
|
278 | 277 | otlpLicenseKey: parseConfig("__APPSMITH_NEW_RELIC_OTLP_LICENSE_KEY__"),
|
279 | 278 | //OTLP following the naming convention of Sdk initialisation
|
280 | 279 | otlpServiceName: parseConfig("__APPSMITH_NEW_RELIC_OTEL_SERVICE_NAME__"),
|
281 |
| - otlpEndpoint:parseConfig("__APPSMITH_NEW_RELIC_OTEL_EXPORTER_OTLP_ENDPOINT__"), |
| 280 | + otlpEndpoint:parseConfig("__APPSMITH_NEW_RELIC_OTEL_EXPORTER_OTLP_ENDPOINT__"), |
282 | 281 |
|
283 | 282 | },
|
284 | 283 | fusioncharts: {
|
|
0 commit comments