Skip to content

Commit

Permalink
fix span name when using the OpenTelemetry tracing provider (#51072)
Browse files Browse the repository at this point in the history
* fix TestProxyTracingOpenTelemetryProvider

* root span name

* fix span name

* release-notes

* updat proxy to latest
  • Loading branch information
zirain committed May 15, 2024
1 parent b434956 commit cf4ef83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion istio.deps
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "PROXY_REPO_SHA",
"repoName": "proxy",
"file": "",
"lastStableSHA": "db29233591803de3bab068eee51e5a0431fa2d76"
"lastStableSHA": "f352a04be1e2bc99776e80cd99af25377ab05266"
},
{
"_comment": "",
Expand Down
6 changes: 6 additions & 0 deletions releasenotes/notes/51072.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: release-notes/v2
kind: bug-fix
area: telemetry
releaseNotes:
- |
**Fixed** an issue that span name isn't set when using the OpenTelemetry tracing provider.
4 changes: 2 additions & 2 deletions tests/integration/telemetry/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ func VerifyOtelEchoTraces(t framework.TestContext, namespace, clName string, tra

func WantOtelTraceRoot(namespace, clName string) (root zipkin.Span) {
serverSpan := zipkin.Span{
Name: "ingress",
Name: fmt.Sprintf("server.%s.svc.cluster.local:80/*", namespace),
ServiceName: fmt.Sprintf("server.%s", namespace),
}

root = zipkin.Span{
Name: fmt.Sprintf("egress server.%s.svc.cluster.local", namespace),
Name: fmt.Sprintf("server.%s.svc.cluster.local:80/*", namespace),
ServiceName: fmt.Sprintf("client-%s.%s", clName, namespace),
ChildSpans: []*zipkin.Span{&serverSpan},
}
Expand Down

0 comments on commit cf4ef83

Please sign in to comment.