fix(logging): remove instance_name resource label
GCE instance resource labels are aligned with
@@ -193,16 +193,11 @@ func detectGCEResource() *mrpb.MonitoredResource {
if err != nil {
return nil
}
- name, err := metadata.InstanceName()
- if err != nil {
- return nil
- }
return &mrpb.MonitoredResource{
Type: "gce_instance",
Labels: map[string]string{
"project_id": projectID,
"instance_id": id,
- "instance_name": name,
"zone": zone,
},
}
