@@ -78,6 +78,8 @@ export class DefaultTelemetryClient implements TelemetryClient {
78
78
* @param batch batch of events
79
79
*/
80
80
public async postMetrics ( batch : MetricDatum [ ] ) : Promise < MetricDatum [ ] | undefined > {
81
+ this . logger . info ( 'Trying to print compute' )
82
+ this . logger . info ( getComputeEnvType ( ) )
81
83
try {
82
84
// If our batching logic rejected all of the telemetry, don't try to post
83
85
if ( batch . length === 0 ) {
@@ -91,13 +93,15 @@ export class DefaultTelemetryClient implements TelemetryClient {
91
93
AWSProductVersion : extensionVersion ,
92
94
ClientID : this . clientId ,
93
95
OS : os . platform ( ) ,
94
- OSVersion : os . release ( ) ,
95
- CommputeEnv : getComputeEnvType ( ) ,
96
+ OSVersion : 'myOsVersion' ,
97
+ ComputeEnv : getComputeEnvType ( ) ,
96
98
ParentProduct : vscode . env . appName ,
97
99
ParentProductVersion : vscode . version ,
98
100
MetricData : batch ,
99
101
} )
100
102
. promise ( )
103
+ // this.logger.info(client)
104
+ this . logger . info ( getComputeEnvType ( ) )
101
105
this . logger . info ( `telemetry: sent batch (size=${ batch . length } )` )
102
106
} else {
103
107
this . logger . info ( `telemetry: (test mode) dropped batch (size=${ batch . length } )` )
@@ -119,13 +123,14 @@ export class DefaultTelemetryClient implements TelemetryClient {
119
123
AWSProductVersion : extensionVersion ,
120
124
OS : os . platform ( ) ,
121
125
OSVersion : os . release ( ) ,
122
- CommputeEnv : getComputeEnvType ( ) ,
126
+ ComputeEnv : getComputeEnvType ( ) ,
123
127
ParentProduct : vscode . env . appName ,
124
128
ParentProductVersion : vscode . version ,
125
129
Comment : feedback . comment ,
126
130
Sentiment : feedback . sentiment ,
127
131
} )
128
132
. promise ( )
133
+ this . logger . info ( getComputeEnvType ( ) )
129
134
this . logger . info ( 'Successfully posted feedback' )
130
135
} catch ( err ) {
131
136
this . logger . error ( `Failed to post feedback: ${ err } ` )
0 commit comments