Merge pull request #112545 from dims/update-etcd-3.5.5-and-all-otel-related-to-latest

Update etcd 3.5.5 and all otel related libraries to newer versions
This commit is contained in:
Kubernetes Prow Robot
2022-09-19 19:15:31 -07:00
committed by GitHub
437 changed files with 25839 additions and 20216 deletions

View File

@@ -21,6 +21,7 @@ import (
"fmt"
"net"
"os"
"strings"
"testing"
"time"
@@ -107,15 +108,18 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
func containsNodeListSpan(req *traceservice.ExportTraceServiceRequest) bool {
for _, resourceSpans := range req.GetResourceSpans() {
for _, instrumentationSpans := range resourceSpans.GetInstrumentationLibrarySpans() {
for _, instrumentationSpans := range resourceSpans.GetScopeSpans() {
for _, span := range instrumentationSpans.GetSpans() {
if span.Name != "KubernetesAPI" {
if span.Name != "HTTP GET" {
continue
}
for _, attr := range span.GetAttributes() {
if attr.GetKey() == "http.target" && attr.GetValue().GetStringValue() == "/api/v1/nodes" {
// We found our request!
return true
if attr.GetKey() == "http.url" {
value := attr.GetValue().GetStringValue()
if strings.HasSuffix(value, "/api/v1/nodes") {
// We found our request!
return true
}
}
}
}