From 018a86709b6ddf7719f30534238528742f7078d9 Mon Sep 17 00:00:00 2001 From: Alberto Asuero <1161870+alasarr@users.noreply.github.com> Date: Thu, 30 Dec 2021 10:36:39 +0100 Subject: [PATCH] Track clientId for tracing purposes (#261) Co-authored-by: Sergio Clebal --- CHANGELOG.md | 1 + packages/react-api/__tests__/hooks/useCartoLayerProps.test.js | 1 + packages/react-api/src/hooks/useCartoLayerProps.js | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23ac502c5..a6a6948f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Not released +- Track clientId for tracing purposes [#261](https://github.com/CartoDB/carto-react/pull/261) ## 1.2.0-alpha.0 (2021-12-29) - WRAPPER WIDGET Configurable margin in widgets [#251](https://github.com/CartoDB/carto-react/pull/251) - Add spatial filter to allow ramdom geometry filters in widgets[#250](https://github.com/CartoDB/carto-react/pull/250) diff --git a/packages/react-api/__tests__/hooks/useCartoLayerProps.test.js b/packages/react-api/__tests__/hooks/useCartoLayerProps.test.js index 007c5fcb5..4cbc80e63 100644 --- a/packages/react-api/__tests__/hooks/useCartoLayerProps.test.js +++ b/packages/react-api/__tests__/hooks/useCartoLayerProps.test.js @@ -15,6 +15,7 @@ describe('useCartoLayerProps', () => { 'type', 'connection', 'credentials', + 'clientId', 'filterRange', 'updateTriggers', 'getFilterValue', diff --git a/packages/react-api/src/hooks/useCartoLayerProps.js b/packages/react-api/src/hooks/useCartoLayerProps.js index 526858a47..adc689770 100644 --- a/packages/react-api/src/hooks/useCartoLayerProps.js +++ b/packages/react-api/src/hooks/useCartoLayerProps.js @@ -58,6 +58,7 @@ export default function useCartoLayerProps({ type: source?.type, connection: source?.connection, credentials: source?.credentials, + clientId: 'carto-for-react', ...dataFilterExtensionProps }; }