Skip to content

Commit

Permalink
Add org id
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaHegde committed Nov 29, 2023
1 parent 4597e9d commit 52a9590
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion web-admin/src/features/errors/error-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export function createGlobalErrorCallback(queryClient: QueryClient) {
const isDashboardPage =
get(page).route.id === "/[organization]/[project]/[dashboard]";

console.log("createGlobalErrorCallback");
const screenName = getScreenNameFromPage(get(page));
if (!error.response) {
errorEvent?.fireHTTPErrorBoundaryEvent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
metricsService.loadCloudFields({
isDev: window.location.host.startsWith("localhost"),
projectId: $page.params.project,
organizationId: $page.params.organization,
userId: $user.data?.user?.id,
});
}
Expand Down
2 changes: 2 additions & 0 deletions web-common/src/metrics/service/MetricsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export type MetricsActionDefinition = ExtractActionTypeDefinitions<
export interface CloudMetricsFields {
isDev: boolean;
projectId: string;
organizationId: string;
userId: string;
}

Expand Down Expand Up @@ -77,6 +78,7 @@ export class MetricsService
client_id: this.getOrSetClientID(),
is_dev: fields.isDev,
project_id: fields.projectId,
organization_id: fields.organizationId,
user_id: fields.userId,
analytics_enabled: true,
};
Expand Down

0 comments on commit 52a9590

Please sign in to comment.