Skip to content

Commit

Permalink
Capture GE mode for all telemetry items (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
millicentachieng authored Sep 15, 2021
1 parent 9ae78fd commit 0920ab5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/telemetry/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export function addCommonTelemetryItemProperties(envelope: ITelemetryItem) {
const accessToken = localStorage.getItem(accessTokenKey);
telemetryItem.properties.IsAuthenticated = !!accessToken;

// Capture GE Mode for all telemetry items
const geMode = store.getState()?.graphExplorerMode;
telemetryItem.properties.GraphExplorerMode = geMode;

return true;
}

Expand Down

0 comments on commit 0920ab5

Please sign in to comment.