mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-09 16:16:23 +00:00
tracing: add span for cacher.Get
Also updates tracing integration tests for cacher.GetList
This commit is contained in:
@@ -472,6 +472,23 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
|
||||
"Writing http response done",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "cacher.Get",
|
||||
attributes: map[string]func(*commonv1.AnyValue) bool{
|
||||
"audit-id": func(v *commonv1.AnyValue) bool {
|
||||
return v.GetStringValue() != ""
|
||||
},
|
||||
"key": func(v *commonv1.AnyValue) bool {
|
||||
return v.GetStringValue() == "/minions/fake"
|
||||
},
|
||||
"resource-version": func(v *commonv1.AnyValue) bool {
|
||||
return v.GetStringValue() == ""
|
||||
},
|
||||
},
|
||||
events: []string{
|
||||
"About to Get from underlying storage",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "etcdserverpb.KV/Range",
|
||||
attributes: map[string]func(*commonv1.AnyValue) bool{
|
||||
@@ -562,6 +579,22 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
|
||||
"Writing http response done",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "cacher.GetList",
|
||||
attributes: map[string]func(*commonv1.AnyValue) bool{
|
||||
"audit-id": func(v *commonv1.AnyValue) bool {
|
||||
return v.GetStringValue() != ""
|
||||
},
|
||||
"type": func(v *commonv1.AnyValue) bool {
|
||||
return v.GetStringValue() == "nodes"
|
||||
},
|
||||
},
|
||||
events: []string{
|
||||
"Ready",
|
||||
"Listed items from cache",
|
||||
"Filtered items",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "SerializeObject",
|
||||
attributes: map[string]func(*commonv1.AnyValue) bool{
|
||||
|
||||
Reference in New Issue
Block a user