@@ -40,6 +40,7 @@ describe('MongoshLoggingAndTelemetry', function () {
40
40
loggingAndTelemetry = setupLoggingAndTelemetry ( {
41
41
bus,
42
42
analytics,
43
+ deviceId : 'test-device' ,
43
44
userTraits : {
44
45
platform : process . platform ,
45
46
arch : process . arch ,
@@ -105,6 +106,7 @@ describe('MongoshLoggingAndTelemetry', function () {
105
106
'identify' ,
106
107
{
107
108
anonymousId : userId ,
109
+ deviceId : 'test-device' ,
108
110
traits : {
109
111
arch : process . arch ,
110
112
platform : process . platform ,
@@ -116,6 +118,7 @@ describe('MongoshLoggingAndTelemetry', function () {
116
118
'track' ,
117
119
{
118
120
anonymousId : userId ,
121
+ deviceId : 'test-device' ,
119
122
event : 'New Connection' ,
120
123
properties : {
121
124
mongosh_version : '1.0.0' ,
@@ -163,6 +166,7 @@ describe('MongoshLoggingAndTelemetry', function () {
163
166
'identify' ,
164
167
{
165
168
anonymousId : userId ,
169
+ deviceId : 'test-device' ,
166
170
traits : {
167
171
arch : process . arch ,
168
172
platform : process . platform ,
@@ -174,6 +178,7 @@ describe('MongoshLoggingAndTelemetry', function () {
174
178
'track' ,
175
179
{
176
180
anonymousId : userId ,
181
+ deviceId : 'test-device' ,
177
182
event : 'New Connection' ,
178
183
properties : {
179
184
mongosh_version : '1.0.0' ,
@@ -576,6 +581,7 @@ describe('MongoshLoggingAndTelemetry', function () {
576
581
'identify' ,
577
582
{
578
583
anonymousId : '53defe995fa47e6c13102d9d' ,
584
+ deviceId : 'test-device' ,
579
585
traits : {
580
586
platform : process . platform ,
581
587
arch : process . arch ,
@@ -587,6 +593,7 @@ describe('MongoshLoggingAndTelemetry', function () {
587
593
'identify' ,
588
594
{
589
595
anonymousId : '53defe995fa47e6c13102d9d' ,
596
+ deviceId : 'test-device' ,
590
597
traits : {
591
598
platform : process . platform ,
592
599
arch : process . arch ,
@@ -598,6 +605,7 @@ describe('MongoshLoggingAndTelemetry', function () {
598
605
'track' ,
599
606
{
600
607
anonymousId : '53defe995fa47e6c13102d9d' ,
608
+ deviceId : 'test-device' ,
601
609
event : 'Startup Time' ,
602
610
properties : {
603
611
is_interactive : true ,
@@ -613,6 +621,7 @@ describe('MongoshLoggingAndTelemetry', function () {
613
621
'track' ,
614
622
{
615
623
anonymousId : '53defe995fa47e6c13102d9d' ,
624
+ deviceId : 'test-device' ,
616
625
event : 'Error' ,
617
626
properties : {
618
627
mongosh_version : '1.0.0' ,
@@ -628,6 +637,7 @@ describe('MongoshLoggingAndTelemetry', function () {
628
637
'track' ,
629
638
{
630
639
anonymousId : '53defe995fa47e6c13102d9d' ,
640
+ deviceId : 'test-device' ,
631
641
event : 'Error' ,
632
642
properties : {
633
643
mongosh_version : '1.0.0' ,
@@ -643,6 +653,7 @@ describe('MongoshLoggingAndTelemetry', function () {
643
653
'track' ,
644
654
{
645
655
anonymousId : '53defe995fa47e6c13102d9d' ,
656
+ deviceId : 'test-device' ,
646
657
event : 'Use' ,
647
658
properties : {
648
659
mongosh_version : '1.0.0' ,
@@ -654,6 +665,7 @@ describe('MongoshLoggingAndTelemetry', function () {
654
665
'track' ,
655
666
{
656
667
anonymousId : '53defe995fa47e6c13102d9d' ,
668
+ deviceId : 'test-device' ,
657
669
event : 'Show' ,
658
670
properties : {
659
671
mongosh_version : '1.0.0' ,
@@ -673,6 +685,7 @@ describe('MongoshLoggingAndTelemetry', function () {
673
685
shell : true ,
674
686
} ,
675
687
anonymousId : '53defe995fa47e6c13102d9d' ,
688
+ deviceId : 'test-device' ,
676
689
} ,
677
690
] ,
678
691
[
@@ -685,6 +698,7 @@ describe('MongoshLoggingAndTelemetry', function () {
685
698
nested : false ,
686
699
} ,
687
700
anonymousId : '53defe995fa47e6c13102d9d' ,
701
+ deviceId : 'test-device' ,
688
702
} ,
689
703
] ,
690
704
[
@@ -696,6 +710,7 @@ describe('MongoshLoggingAndTelemetry', function () {
696
710
session_id : logId ,
697
711
} ,
698
712
anonymousId : '53defe995fa47e6c13102d9d' ,
713
+ deviceId : 'test-device' ,
699
714
} ,
700
715
] ,
701
716
[
@@ -707,6 +722,7 @@ describe('MongoshLoggingAndTelemetry', function () {
707
722
session_id : logId ,
708
723
} ,
709
724
anonymousId : '53defe995fa47e6c13102d9d' ,
725
+ deviceId : 'test-device' ,
710
726
} ,
711
727
] ,
712
728
[
@@ -719,12 +735,14 @@ describe('MongoshLoggingAndTelemetry', function () {
719
735
shell : true ,
720
736
} ,
721
737
anonymousId : '53defe995fa47e6c13102d9d' ,
738
+ deviceId : 'test-device' ,
722
739
} ,
723
740
] ,
724
741
[
725
742
'track' ,
726
743
{
727
744
anonymousId : '53defe995fa47e6c13102d9d' ,
745
+ deviceId : 'test-device' ,
728
746
event : 'Snippet Install' ,
729
747
properties : {
730
748
mongosh_version : '1.0.0' ,
@@ -819,6 +837,7 @@ describe('MongoshLoggingAndTelemetry', function () {
819
837
'track' ,
820
838
{
821
839
anonymousId : '53defe995fa47e6c13102d9d' ,
840
+ deviceId : 'test-device' ,
822
841
event : 'Deprecated Method' ,
823
842
properties : {
824
843
mongosh_version : '1.0.0' ,
@@ -832,6 +851,7 @@ describe('MongoshLoggingAndTelemetry', function () {
832
851
'track' ,
833
852
{
834
853
anonymousId : '53defe995fa47e6c13102d9d' ,
854
+ deviceId : 'test-device' ,
835
855
event : 'Deprecated Method' ,
836
856
properties : {
837
857
mongosh_version : '1.0.0' ,
@@ -845,6 +865,7 @@ describe('MongoshLoggingAndTelemetry', function () {
845
865
'track' ,
846
866
{
847
867
anonymousId : '53defe995fa47e6c13102d9d' ,
868
+ deviceId : 'test-device' ,
848
869
event : 'Deprecated Method' ,
849
870
properties : {
850
871
mongosh_version : '1.0.0' ,
@@ -858,6 +879,7 @@ describe('MongoshLoggingAndTelemetry', function () {
858
879
'track' ,
859
880
{
860
881
anonymousId : '53defe995fa47e6c13102d9d' ,
882
+ deviceId : 'test-device' ,
861
883
event : 'API Call' ,
862
884
properties : {
863
885
mongosh_version : '1.0.0' ,
@@ -872,6 +894,7 @@ describe('MongoshLoggingAndTelemetry', function () {
872
894
'track' ,
873
895
{
874
896
anonymousId : '53defe995fa47e6c13102d9d' ,
897
+ deviceId : 'test-device' ,
875
898
event : 'API Call' ,
876
899
properties : {
877
900
mongosh_version : '1.0.0' ,
@@ -1023,6 +1046,7 @@ describe('MongoshLoggingAndTelemetry', function () {
1023
1046
'track' ,
1024
1047
{
1025
1048
anonymousId : undefined ,
1049
+ deviceId : 'test-device' ,
1026
1050
event : 'New Connection' ,
1027
1051
properties : {
1028
1052
mongosh_version : '1.0.0' ,
0 commit comments