SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
feat: init pylon and deprecate intercom (#8059)
Vishal Sharma3d758d4358a5
diff --git a/frontend/example.env b/frontend/example.envindex 79912e0907..d875044f96 100644--- a/frontend/example.env+++ b/frontend/example.env@@ -1,7 +1,7 @@NODE_ENV="development"BUNDLE_ANALYSER="true"FRONTEND_API_ENDPOINT="http://localhost:8080/"-INTERCOM_APP_ID="intercom-app-id"+PYLON_APP_ID="pylon-app-id"APPCUES_APP_ID="appcess-app-id"CI="1"\ No newline at end of filediff --git a/frontend/public/locales/en-GB/services.json b/frontend/public/locales/en-GB/services.jsonindex f04c851759..a8c8b42c9c 100644--- a/frontend/public/locales/en-GB/services.json+++ b/frontend/public/locales/en-GB/services.json@@ -1,3 +1,3 @@{- "rps_over_100": "You are sending data at more than 100 RPS, your ingestion may be rate limited. Please reach out to us via Intercom support or "+ "rps_over_100": "You are sending data at more than 100 RPS, your ingestion may be rate limited. Please reach out to us via chat support or "}diff --git a/frontend/public/locales/en/services.json b/frontend/public/locales/en/services.jsonindex f04c851759..a8c8b42c9c 100644--- a/frontend/public/locales/en/services.json+++ b/frontend/public/locales/en/services.json@@ -1,3 +1,3 @@{- "rps_over_100": "You are sending data at more than 100 RPS, your ingestion may be rate limited. Please reach out to us via Intercom support or "+ "rps_over_100": "You are sending data at more than 100 RPS, your ingestion may be rate limited. Please reach out to us via chat support or "}diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsxindex 72750a70b2..a97fd7e933 100644--- a/frontend/src/AppRoutes/index.tsx+++ b/frontend/src/AppRoutes/index.tsx@@ -215,13 +215,13 @@ function App(): JSX.Element {useEffect(() => {if (pathname === ROUTES.ONBOARDING) {- window.Intercom('update', {- hide_default_launcher: true,- });+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment+ // @ts-ignore+ window.Pylon('hideChatBubble');} else {- window.Intercom('update', {- hide_default_launcher: false,- });+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment+ // @ts-ignore+ window.Pylon('showChatBubble');}}, [pathname]);@@ -256,11 +256,13 @@ function App(): JSX.Element {!showAddCreditCardModal &&(isCloudUser || isEnterpriseSelfHostedUser)) {- window.Intercom('boot', {- app_id: process.env.INTERCOM_APP_ID,- email: user?.email || '',- name: user?.displayName || '',- });+ window.pylon = {+ chat_settings: {+ app_id: process.env.PYLON_APP_ID,+ email: user.email,+ name: user.displayName,+ },+ };}}}, [diff --git a/frontend/src/api/utils.ts b/frontend/src/api/utils.tsindex 179eac8e21..95dfceb457 100644--- a/frontend/src/api/utils.ts+++ b/frontend/src/api/utils.ts@@ -15,13 +15,5 @@ export const Logout = (): void => {deleteLocalStorageKey(LOCALSTORAGE.QUICK_FILTERS_SETTINGS_ANNOUNCEMENT);window.dispatchEvent(new CustomEvent('LOGOUT'));- // eslint-disable-next-line @typescript-eslint/ban-ts-comment- // @ts-ignore- if (window && window.Intercom) {- // eslint-disable-next-line @typescript-eslint/ban-ts-comment- // @ts-ignore- window.Intercom('shutdown');- }-history.push(ROUTES.LOGIN);};diff --git a/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.styles.scss b/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.styles.scssindex 676204585d..c66a301513 100644--- a/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.styles.scss+++ b/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.styles.scss@@ -93,7 +93,7 @@padding: 4px;margin: 0;- // this is to offset intercom icon+ // this is to offset chat support iconpadding-right: 72px;.ant-pagination-item {diff --git a/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx b/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsxindex 64657c8398..16ee925e91 100644--- a/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx+++ b/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx@@ -2,7 +2,7 @@ import { Button, Modal, Typography } from 'antd';import logEvent from 'api/common/logEvent';import updateCreditCardApi from 'api/v1/checkout/create';import { useNotifications } from 'hooks/useNotifications';-import { CreditCard, X } from 'lucide-react';+import { CreditCard, MessageSquareText, X } from 'lucide-react';import { useState } from 'react';import { useMutation } from 'react-query';import { useLocation } from 'react-router-dom';@@ -49,7 +49,7 @@ export default function ChatSupportGateway(): JSX.Element {const handleAddCreditCard = (): void => {logEvent('Add Credit card modal: Clicked', {- source: `intercom icon`,+ source: `chat support icon`,page: pathname,});@@ -65,20 +65,14 @@ export default function ChatSupportGateway(): JSX.Element {className="chat-support-gateway-btn"onClick={(): void => {logEvent('Disabled Chat Support: Clicked', {- source: `intercom icon`,+ source: `chat support icon`,page: pathname,});setIsAddCreditCardModalOpen(true);}}>- <svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 28 32"- className="chat-support-gateway-btn-icon"- >- <path d="M28 32s-4.714-1.855-8.527-3.34H3.437C1.54 28.66 0 27.026 0 25.013V3.644C0 1.633 1.54 0 3.437 0h21.125c1.898 0 3.437 1.632 3.437 3.645v18.404H28V32zm-4.139-11.982a.88.88 0 00-1.292-.105c-.03.026-3.015 2.681-8.57 2.681-5.486 0-8.517-2.636-8.571-2.684a.88.88 0 00-1.29.107 1.01 1.01 0 00-.219.708.992.992 0 00.318.664c.142.128 3.537 3.15 9.762 3.15 6.226 0 9.621-3.022 9.763-3.15a.992.992 0 00.317-.664 1.01 1.01 0 00-.218-.707z" />- </svg>+ <MessageSquareText size={24} /></Button></div>diff --git a/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx b/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsxindex d25e8156ed..72a621329f 100644--- a/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx+++ b/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx@@ -24,7 +24,7 @@ export interface LaunchChatSupportProps {buttonText?: string;className?: string;onHoverText?: string;- intercomMessageDisabled?: boolean;+ chatMessageDisabled?: boolean;}// eslint-disable-next-line sonarjs/cognitive-complexity@@ -35,7 +35,7 @@ function LaunchChatSupport({buttonText = '',className = '',onHoverText = '',- intercomMessageDisabled = false,+ chatMessageDisabled = false,}: LaunchChatSupportProps): JSX.Element | null {const { isCloudUser: isCloudUserVal } = useGetTenantLicense();const { notifications } = useNotifications();@@ -111,8 +111,10 @@ function LaunchChatSupport({setIsAddCreditCardModalOpen(true);} else {logEvent(eventName, attributes);- if (window.Intercom && !intercomMessageDisabled) {- window.Intercom('showNewMessage', defaultTo(message, ''));+ if (window.pylon && !chatMessageDisabled) {+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment+ // @ts-ignore+ window.Pylon('showNewMessage', defaultTo(message, ''));}}};@@ -220,7 +222,7 @@ LaunchChatSupport.defaultProps = {buttonText: '',className: '',onHoverText: '',- intercomMessageDisabled: false,+ chatMessageDisabled: false,};export default LaunchChatSupport;diff --git a/frontend/src/container/GeneralSettingsCloud/GeneralSettingsCloud.tsx b/frontend/src/container/GeneralSettingsCloud/GeneralSettingsCloud.tsxindex 6a8988deaf..43d6994f20 100644--- a/frontend/src/container/GeneralSettingsCloud/GeneralSettingsCloud.tsx+++ b/frontend/src/container/GeneralSettingsCloud/GeneralSettingsCloud.tsx@@ -9,7 +9,7 @@ export default function GeneralSettingsCloud(): JSX.Element {<Info size={16} /><Typography.Text>Please <a href="mailto:[email protected]"> email us </a> or connect- with us via intercom support to change the retention period.+ with us via chat support to change the retention period.</Typography.Text></Card>);diff --git a/frontend/src/container/InfraMonitoringHosts/InfraMonitoring.styles.scss b/frontend/src/container/InfraMonitoringHosts/InfraMonitoring.styles.scssindex f3bc796809..93b16ed8d3 100644--- a/frontend/src/container/InfraMonitoringHosts/InfraMonitoring.styles.scss+++ b/frontend/src/container/InfraMonitoringHosts/InfraMonitoring.styles.scss@@ -201,7 +201,7 @@padding: 16px;margin: 0;- // this is to offset intercom icon till we improve the design+ // this is to offset chat support icon till we improve the designright: 20px;.ant-pagination-item {diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/entityEvents.styles.scss b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/entityEvents.styles.scssindex a3be71803b..0feef33b0f 100644--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/entityEvents.styles.scss+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityEvents/entityEvents.styles.scss@@ -173,7 +173,7 @@padding: 16px;margin: 0;- // this is to offset intercom icon till we improve the design+ // this is to offset chat support icon till we improve the designpadding-right: 72px;.ant-pagination-item {diff --git a/frontend/src/container/InfraMonitoringK8s/InfraMonitoringK8s.styles.scss b/frontend/src/container/InfraMonitoringK8s/InfraMonitoringK8s.styles.scssindex b237d81bd9..4587023d9e 100644--- a/frontend/src/container/InfraMonitoringK8s/InfraMonitoringK8s.styles.scss+++ b/frontend/src/container/InfraMonitoringK8s/InfraMonitoringK8s.styles.scss@@ -447,7 +447,7 @@padding: 16px;margin: 0;- // this is to offset intercom icon till we improve the design+ // this is to offset chat support icon till we improve the designpadding-right: 72px;.ant-pagination-item {diff --git a/frontend/src/container/MetricsExplorer/Summary/Summary.styles.scss b/frontend/src/container/MetricsExplorer/Summary/Summary.styles.scssindex c46c08066a..f135ebf3e1 100644--- a/frontend/src/container/MetricsExplorer/Summary/Summary.styles.scss+++ b/frontend/src/container/MetricsExplorer/Summary/Summary.styles.scss@@ -199,7 +199,7 @@padding: 16px;margin: 0;- // this is to offset intercom icon till we improve the design+ // this is to offset chat support icon till we improve the designright: 20px;.ant-pagination-item {diff --git a/frontend/src/index.html.ejs b/frontend/src/index.html.ejsindex 1ea5dc5c3b..da6ccb6d67 100644--- a/frontend/src/index.html.ejs+++ b/frontend/src/index.html.ejs@@ -59,40 +59,30 @@<div id="root"></div><script>- //Set your APP_ID- const APP_ID = '<%= htmlWebpackPlugin.options.INTERCOM_APP_ID %>';-- (function () {- var w = window;- var ic = w.Intercom;- if (typeof ic === 'function') {- ic('reattach_activator');- ic('update', w.intercomSettings);- } else {- var d = document;- var i = function () {- i.c(arguments);- };- i.q = [];- i.c = function (args) {- i.q.push(args);- };- w.Intercom = i;- var l = function () {- var s = d.createElement('script');- s.type = 'text/javascript';- s.async = true;- s.src = 'https://widget.intercom.io/widget/' + APP_ID;- var x = d.getElementsByTagName('script')[0];- x.parentNode.insertBefore(s, x);- };- if (document.readyState === 'complete') {- l();- } else if (w.attachEvent) {- w.attachEvent('onload', l);- } else {- w.addEventListener('load', l, false);- }+ const PYLON_APP_ID = '<%= htmlWebpackPlugin.options.PYLON_APP_ID %>';+ (function() {+ var e = window;+ var t = document;+ var n = function() {+ n.e(arguments);+ };+ n.q = [];+ n.e = function(e) {+ n.q.push(e);+ };+ e.Pylon = n;+ var r = function() {+ var e = t.createElement("script");+ e.setAttribute("type", "text/javascript");+ e.setAttribute("async", "true");+ e.setAttribute("src", "https://widget.usepylon.com/widget/" + PYLON_APP_ID);+ var n = t.getElementsByTagName("script")[0];+ n.parentNode.insertBefore(e, n);+ };+ if (t.readyState === "complete") {+ r();+ } else if (e.addEventListener) {+ e.addEventListener("load", r, false);}})();</script>diff --git a/frontend/src/pages/Support/Support.tsx b/frontend/src/pages/Support/Support.tsxindex fe6517b70e..f7d4c13d59 100644--- a/frontend/src/pages/Support/Support.tsx+++ b/frontend/src/pages/Support/Support.tsx@@ -155,10 +155,10 @@ export default function Support(): JSX.Element {page: pathname,});setIsAddCreditCardModalOpen(true);- } else if (window.Intercom) {+ } else if (window.pylon) {// eslint-disable-next-line @typescript-eslint/ban-ts-comment// @ts-ignore- window.Intercom('show');+ window.Pylon('show');}};diff --git a/frontend/src/typings/window.ts b/frontend/src/typings/window.tsindex 70a4cdaa40..e8f722268a 100644--- a/frontend/src/typings/window.ts+++ b/frontend/src/typings/window.ts@@ -3,7 +3,7 @@ import { compose, Store } from 'redux';declare global {interface Window {store: Store;- Intercom: any;+ pylon: any;Appcues: Record<string, any>;__REDUX_DEVTOOLS_EXTENSION_COMPOSE__: typeof compose;}diff --git a/frontend/webpack.config.js b/frontend/webpack.config.jsindex d5b030b925..d9f277d9c3 100644--- a/frontend/webpack.config.js+++ b/frontend/webpack.config.js@@ -20,7 +20,7 @@ const styleLoader = 'style-loader';const plugins = [new HtmlWebpackPlugin({template: 'src/index.html.ejs',- INTERCOM_APP_ID: process.env.INTERCOM_APP_ID,+ PYLON_APP_ID: process.env.PYLON_APP_ID,APPCUES_APP_ID: process.env.APPCUES_APP_ID,POSTHOG_KEY: process.env.POSTHOG_KEY,USERPILOT_KEY: process.env.USERPILOT_KEY,@@ -39,7 +39,7 @@ const plugins = [NODE_ENV: process.env.NODE_ENV,FRONTEND_API_ENDPOINT: process.env.FRONTEND_API_ENDPOINT,WEBSOCKET_API_ENDPOINT: process.env.WEBSOCKET_API_ENDPOINT,- INTERCOM_APP_ID: process.env.INTERCOM_APP_ID,+ PYLON_APP_ID: process.env.PYLON_APP_ID,APPCUES_APP_ID: process.env.APPCUES_APP_ID,POSTHOG_KEY: process.env.POSTHOG_KEY,USERPILOT_KEY: process.env.USERPILOT_KEY,diff --git a/frontend/webpack.config.prod.js b/frontend/webpack.config.prod.jsindex e285e90184..7a78d6bc00 100644--- a/frontend/webpack.config.prod.js+++ b/frontend/webpack.config.prod.js@@ -25,7 +25,7 @@ const styleLoader = 'style-loader';const plugins = [new HtmlWebpackPlugin({template: 'src/index.html.ejs',- INTERCOM_APP_ID: process.env.INTERCOM_APP_ID,+ PYLON_APP_ID: process.env.PYLON_APP_ID,APPCUES_APP_ID: process.env.APPCUES_APP_ID,POSTHOG_KEY: process.env.POSTHOG_KEY,USERPILOT_KEY: process.env.USERPILOT_KEY,@@ -49,7 +49,7 @@ const plugins = ['process.env': JSON.stringify({FRONTEND_API_ENDPOINT: process.env.FRONTEND_API_ENDPOINT,WEBSOCKET_API_ENDPOINT: process.env.WEBSOCKET_API_ENDPOINT,- INTERCOM_APP_ID: process.env.INTERCOM_APP_ID,+ PYLON_APP_ID: process.env.PYLON_APP_ID,APPCUES_APP_ID: process.env.APPCUES_APP_ID,POSTHOG_KEY: process.env.POSTHOG_KEY,USERPILOT_KEY: process.env.USERPILOT_KEY,