-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Namespace instrumentation e2e + uninstrumentation e2e
- Loading branch information
Showing
7 changed files
with
343 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: Source | ||
metadata: | ||
name: default | ||
namespace: default | ||
labels: | ||
odigos.io/e2e: source | ||
spec: | ||
workload: | ||
name: default | ||
namespace: default | ||
kind: Namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: e2e.tests.odigos.io/v1 | ||
kind: TraceTest | ||
description: This test checks if the context propagation is working correctly between different languages | ||
query: | | ||
{ resource.service.name = "frontend" && resource.telemetry.sdk.language = "java" && | ||
span.http.request.method = "POST" && span.http.route = "/buy" && span:kind = server } | ||
>> ( | ||
{ resource.service.name = "pricing" && resource.telemetry.sdk.language = "dotnet" } && | ||
{ resource.service.name = "inventory" && resource.telemetry.sdk.language = "python" } && | ||
({ resource.service.name = "coupon" && resource.telemetry.sdk.language = "nodejs" } | ||
>> { resource.service.name = "membership" && resource.telemetry.sdk.language = "go" })) | ||
expected: | ||
count: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: e2e.tests.odigos.io/v1 | ||
kind: TraceTest | ||
description: | | ||
This test check the following resource attributes: | ||
A. odigos.version attribute exists on all spans and has the correct value | ||
B. Kubernetes attributes are correctly set on all spans | ||
At the time of writing this test, TraceQL api does not support not equal to nil so we use regex instead. | ||
query: | | ||
{ resource.odigos.version !~ ".*" || | ||
resource.k8s.deployment.name !~ ".*" || | ||
resource.k8s.node.name !~ "(kind-control-plane|aks-.*)" || | ||
resource.k8s.pod.name !~ ".*" } | ||
expected: | ||
count: 0 |
Oops, something went wrong.