@@ -63,7 +63,7 @@ func TestJsonSerializerEvents(t *testing.T) {
63
63
64
64
// Trace
65
65
j [0 ].assertPath (t , "iKey" , test_ikey )
66
- j [0 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Message" )
66
+ j [0 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Message" )
67
67
j [0 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
68
68
j [0 ].assertPath (t , "sampleRate" , 100.0 )
69
69
j [0 ].assertPath (t , "data.baseType" , "MessageData" )
@@ -73,7 +73,7 @@ func TestJsonSerializerEvents(t *testing.T) {
73
73
74
74
// Event
75
75
j [1 ].assertPath (t , "iKey" , test_ikey )
76
- j [1 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Event" )
76
+ j [1 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Event" )
77
77
j [1 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
78
78
j [1 ].assertPath (t , "sampleRate" , 100.0 )
79
79
j [1 ].assertPath (t , "data.baseType" , "EventData" )
@@ -82,7 +82,7 @@ func TestJsonSerializerEvents(t *testing.T) {
82
82
83
83
// Metric
84
84
j [2 ].assertPath (t , "iKey" , test_ikey )
85
- j [2 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Metric" )
85
+ j [2 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Metric" )
86
86
j [2 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
87
87
j [2 ].assertPath (t , "sampleRate" , 100.0 )
88
88
j [2 ].assertPath (t , "data.baseType" , "MetricData" )
@@ -95,7 +95,7 @@ func TestJsonSerializerEvents(t *testing.T) {
95
95
96
96
// Request
97
97
j [3 ].assertPath (t , "iKey" , test_ikey )
98
- j [3 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Request" )
98
+ j [3 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Request" )
99
99
j [3 ].assertPath (t , "time" , "2017-11-18T10:34:21Z" ) // Constructor subtracts duration
100
100
j [3 ].assertPath (t , "sampleRate" , 100.0 )
101
101
j [3 ].assertPath (t , "data.baseType" , "RequestData" )
@@ -109,7 +109,7 @@ func TestJsonSerializerEvents(t *testing.T) {
109
109
110
110
// Aggregate metric
111
111
j [4 ].assertPath (t , "iKey" , test_ikey )
112
- j [4 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Metric" )
112
+ j [4 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Metric" )
113
113
j [4 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
114
114
j [4 ].assertPath (t , "sampleRate" , 100.0 )
115
115
j [4 ].assertPath (t , "data.baseType" , "MetricData" )
@@ -125,7 +125,7 @@ func TestJsonSerializerEvents(t *testing.T) {
125
125
126
126
// Remote dependency
127
127
j [5 ].assertPath (t , "iKey" , test_ikey )
128
- j [5 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.RemoteDependency" )
128
+ j [5 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. RemoteDependency" )
129
129
j [5 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
130
130
j [5 ].assertPath (t , "sampleRate" , 100.0 )
131
131
j [5 ].assertPath (t , "data.baseType" , "RemoteDependencyData" )
@@ -142,7 +142,7 @@ func TestJsonSerializerEvents(t *testing.T) {
142
142
143
143
// Availability
144
144
j [6 ].assertPath (t , "iKey" , test_ikey )
145
- j [6 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Availability" )
145
+ j [6 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Availability" )
146
146
j [6 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
147
147
j [6 ].assertPath (t , "sampleRate" , 100.0 )
148
148
j [6 ].assertPath (t , "data.baseType" , "AvailabilityData" )
@@ -157,7 +157,7 @@ func TestJsonSerializerEvents(t *testing.T) {
157
157
158
158
// Page view
159
159
j [7 ].assertPath (t , "iKey" , test_ikey )
160
- j [7 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.PageView" )
160
+ j [7 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. PageView" )
161
161
j [7 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
162
162
j [7 ].assertPath (t , "sampleRate" , 100.0 )
163
163
j [7 ].assertPath (t , "data.baseType" , "PageViewData" )
@@ -235,7 +235,7 @@ func TestJsonSerializerNakedEvents(t *testing.T) {
235
235
236
236
// Trace
237
237
j [0 ].assertPath (t , "iKey" , test_ikey )
238
- j [0 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Message" )
238
+ j [0 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Message" )
239
239
j [0 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
240
240
j [0 ].assertPath (t , "sampleRate" , 100 )
241
241
j [0 ].assertPath (t , "data.baseType" , "MessageData" )
@@ -245,7 +245,7 @@ func TestJsonSerializerNakedEvents(t *testing.T) {
245
245
246
246
// Event
247
247
j [1 ].assertPath (t , "iKey" , test_ikey )
248
- j [1 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Event" )
248
+ j [1 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Event" )
249
249
j [1 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
250
250
j [1 ].assertPath (t , "sampleRate" , 100 )
251
251
j [1 ].assertPath (t , "data.baseType" , "EventData" )
@@ -254,7 +254,7 @@ func TestJsonSerializerNakedEvents(t *testing.T) {
254
254
255
255
// Metric
256
256
j [2 ].assertPath (t , "iKey" , test_ikey )
257
- j [2 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Metric" )
257
+ j [2 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Metric" )
258
258
j [2 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
259
259
j [2 ].assertPath (t , "sampleRate" , 100 )
260
260
j [2 ].assertPath (t , "data.baseType" , "MetricData" )
@@ -267,7 +267,7 @@ func TestJsonSerializerNakedEvents(t *testing.T) {
267
267
268
268
// Aggregate metric
269
269
j [3 ].assertPath (t , "iKey" , test_ikey )
270
- j [3 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Metric" )
270
+ j [3 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Metric" )
271
271
j [3 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
272
272
j [3 ].assertPath (t , "sampleRate" , 100.0 )
273
273
j [3 ].assertPath (t , "data.baseType" , "MetricData" )
@@ -283,7 +283,7 @@ func TestJsonSerializerNakedEvents(t *testing.T) {
283
283
284
284
// Request
285
285
j [4 ].assertPath (t , "iKey" , test_ikey )
286
- j [4 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Request" )
286
+ j [4 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Request" )
287
287
j [4 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" ) // Context takes current time since it's not supplied
288
288
j [4 ].assertPath (t , "sampleRate" , 100.0 )
289
289
j [4 ].assertPath (t , "data.baseType" , "RequestData" )
@@ -303,7 +303,7 @@ func TestJsonSerializerNakedEvents(t *testing.T) {
303
303
304
304
// Remote dependency
305
305
j [5 ].assertPath (t , "iKey" , test_ikey )
306
- j [5 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.RemoteDependency" )
306
+ j [5 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. RemoteDependency" )
307
307
j [5 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
308
308
j [5 ].assertPath (t , "sampleRate" , 100.0 )
309
309
j [5 ].assertPath (t , "data.baseType" , "RemoteDependencyData" )
@@ -319,7 +319,7 @@ func TestJsonSerializerNakedEvents(t *testing.T) {
319
319
320
320
// Availability
321
321
j [6 ].assertPath (t , "iKey" , test_ikey )
322
- j [6 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.Availability" )
322
+ j [6 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. Availability" )
323
323
j [6 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
324
324
j [6 ].assertPath (t , "sampleRate" , 100.0 )
325
325
j [6 ].assertPath (t , "data.baseType" , "AvailabilityData" )
@@ -333,7 +333,7 @@ func TestJsonSerializerNakedEvents(t *testing.T) {
333
333
334
334
// Page view
335
335
j [7 ].assertPath (t , "iKey" , test_ikey )
336
- j [7 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.PageView" )
336
+ j [7 ].assertPath (t , "name" , "Microsoft.ApplicationInsights.01234567000089abcdef000000000000. PageView" )
337
337
j [7 ].assertPath (t , "time" , "2017-11-18T10:35:21Z" )
338
338
j [7 ].assertPath (t , "sampleRate" , 100.0 )
339
339
j [7 ].assertPath (t , "data.baseType" , "PageViewData" )
@@ -346,7 +346,7 @@ func TestJsonSerializerNakedEvents(t *testing.T) {
346
346
// Test helpers...
347
347
348
348
func telemetryBuffer (items ... Telemetry ) telemetryBufferItems {
349
- ctx := NewTelemetryContext ()
349
+ ctx := NewTelemetryContext (test_ikey )
350
350
ctx .iKey = test_ikey
351
351
352
352
var result telemetryBufferItems
0 commit comments