diff --git a/packages/dashboard/public/images/service-icons-mini/chargebee.svg b/packages/dashboard/public/images/service-icons-mini/chargebee.svg new file mode 100644 index 0000000..e6aa845 --- /dev/null +++ b/packages/dashboard/public/images/service-icons-mini/chargebee.svg @@ -0,0 +1,14 @@ + + + chargebee + + + + + + + + + + + \ No newline at end of file diff --git a/packages/dashboard/public/images/service-icons-mini/cloudfront.svg b/packages/dashboard/public/images/service-icons-mini/cloudfront.svg new file mode 100644 index 0000000..c8377f0 --- /dev/null +++ b/packages/dashboard/public/images/service-icons-mini/cloudfront.svg @@ -0,0 +1,26 @@ + + + cloudfront copy + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/dashboard/public/images/service-icons-mini/shopify.svg b/packages/dashboard/public/images/service-icons-mini/shopify.svg new file mode 100644 index 0000000..bbc7438 --- /dev/null +++ b/packages/dashboard/public/images/service-icons-mini/shopify.svg @@ -0,0 +1,12 @@ + + + shopify + + + + + + + + + \ No newline at end of file diff --git a/packages/dashboard/public/images/service-icons-mini/todoist.svg b/packages/dashboard/public/images/service-icons-mini/todoist.svg new file mode 100644 index 0000000..616db43 --- /dev/null +++ b/packages/dashboard/public/images/service-icons-mini/todoist.svg @@ -0,0 +1,10 @@ + + + shopify copy 2 + + + + + + + \ No newline at end of file diff --git a/packages/dashboard/public/images/service-icons/chargebee.svg b/packages/dashboard/public/images/service-icons/chargebee.svg new file mode 100644 index 0000000..f95e443 --- /dev/null +++ b/packages/dashboard/public/images/service-icons/chargebee.svg @@ -0,0 +1,14 @@ + + + chargebee + + + + + + + + + + + \ No newline at end of file diff --git a/packages/dashboard/public/images/service-icons/cloudfront.svg b/packages/dashboard/public/images/service-icons/cloudfront.svg new file mode 100644 index 0000000..fc79ddf --- /dev/null +++ b/packages/dashboard/public/images/service-icons/cloudfront.svg @@ -0,0 +1,26 @@ + + + cloudfront + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/dashboard/public/images/service-icons/shopify.svg b/packages/dashboard/public/images/service-icons/shopify.svg new file mode 100644 index 0000000..6f0782e --- /dev/null +++ b/packages/dashboard/public/images/service-icons/shopify.svg @@ -0,0 +1,12 @@ + + + shopify + + + + + + + + + \ No newline at end of file diff --git a/packages/dashboard/public/images/service-icons/todoist.svg b/packages/dashboard/public/images/service-icons/todoist.svg new file mode 100644 index 0000000..bc84874 --- /dev/null +++ b/packages/dashboard/public/images/service-icons/todoist.svg @@ -0,0 +1,10 @@ + + + shopify copy + + + + + + + \ No newline at end of file diff --git a/packages/dashboard/src/lib/transaction.ts b/packages/dashboard/src/lib/transaction.ts index cc0ec37..21e0348 100644 --- a/packages/dashboard/src/lib/transaction.ts +++ b/packages/dashboard/src/lib/transaction.ts @@ -21,6 +21,9 @@ export const getGroupingKey = (transaction: any, extended = false) => { }; export const getTransactionService = (transaction: any) => { + if (transaction.info?.httpInfo?.host === "cloudfront.amazonaws.com") { + return "cloudfront"; + } if ( transaction.info?.httpInfo?.host?.match( /\.s3\.\w+-\w+-\d+\.amazonaws\.com/, @@ -43,9 +46,18 @@ export const getTransactionService = (transaction: any) => { ) { return "eventBridge"; } - if (transaction.info?.httpInfo?.host === "hooks.slack.com") { + if (transaction.info?.httpInfo?.host === "hooks.slack.com" || transaction.info?.httpInfo?.host === "slack.com") { return "slack"; } + if (transaction.info?.httpInfo?.host?.endsWith('.chargebee.com')) { + return "chargebee"; + } + if (transaction.info?.httpInfo?.host?.endsWith('.myshopify.com')) { + return "shopify"; + } + if (transaction.info?.httpInfo?.host === 'api.todoist.com') { + return "todoist"; + } return transaction.service || transaction.spanType || transaction.type; }; @@ -71,9 +83,22 @@ export const getTransactionLabel = (transaction: any) => { return "SES"; } - if (transaction.info?.httpInfo?.host === "hooks.slack.com") { + if (transaction.info?.httpInfo?.host === "cloudfront.amazonaws.com") { + return "CloudFront"; + } + + if (transaction.info?.httpInfo?.host === "hooks.slack.com" || transaction.info?.httpInfo?.host === "slack.com") { return "Slack"; } + if (transaction.info?.httpInfo?.host?.endsWith('.chargebee.com')) { + return "Chargebee"; + } + if (transaction.info?.httpInfo?.host?.endsWith('.myshopify.com')) { + return "Shopify"; + } + if (transaction.info?.httpInfo?.host === 'api.todoist.com') { + return "Todoist"; + } if ( transaction.info?.httpInfo?.host?.match(/\.s3\.\w+-\w+-\d+\.amazonaws\.com/)