@@ -46,7 +46,6 @@ func TestDetect(t *testing.T) {
46
46
projectID : "my-project" ,
47
47
cloudPlatform : gcp .GKE ,
48
48
gkeHostID : "1472385723456792345" ,
49
- gkeHostName : "my-gke-node-1234" ,
50
49
gkeClusterName : "my-cluster" ,
51
50
gkeAvailabilityZone : "us-central1-c" ,
52
51
}},
@@ -57,7 +56,6 @@ func TestDetect(t *testing.T) {
57
56
conventions .AttributeK8SClusterName : "my-cluster" ,
58
57
conventions .AttributeCloudAvailabilityZone : "us-central1-c" ,
59
58
conventions .AttributeHostID : "1472385723456792345" ,
60
- conventions .AttributeHostName : "my-gke-node-1234" ,
61
59
}),
62
60
},
63
61
{
@@ -66,7 +64,6 @@ func TestDetect(t *testing.T) {
66
64
projectID : "my-project" ,
67
65
cloudPlatform : gcp .GKE ,
68
66
gkeHostID : "1472385723456792345" ,
69
- gkeHostName : "my-gke-node-1234" ,
70
67
gkeClusterName : "my-cluster" ,
71
68
gkeRegion : "us-central1" ,
72
69
}},
@@ -77,7 +74,6 @@ func TestDetect(t *testing.T) {
77
74
conventions .AttributeK8SClusterName : "my-cluster" ,
78
75
conventions .AttributeCloudRegion : "us-central1" ,
79
76
conventions .AttributeHostID : "1472385723456792345" ,
80
- conventions .AttributeHostName : "my-gke-node-1234" ,
81
77
}),
82
78
},
83
79
{
@@ -210,7 +206,6 @@ type fakeGCPDetector struct {
210
206
gkeRegion string
211
207
gkeClusterName string
212
208
gkeHostID string
213
- gkeHostName string
214
209
faaSName string
215
210
faaSVersion string
216
211
faaSID string
@@ -262,13 +257,6 @@ func (f *fakeGCPDetector) GKEHostID() (string, error) {
262
257
return f .gkeHostID , nil
263
258
}
264
259
265
- func (f * fakeGCPDetector ) GKEHostName () (string , error ) {
266
- if f .err != nil {
267
- return "" , f .err
268
- }
269
- return f .gkeHostName , nil
270
- }
271
-
272
260
func (f * fakeGCPDetector ) FaaSName () (string , error ) {
273
261
if f .err != nil {
274
262
return "" , f .err
0 commit comments