Skip to content

Commit c709743

Browse files
committed
update metadata in entity
1 parent 2fd8364 commit c709743

File tree

5 files changed

+10
-22
lines changed

5 files changed

+10
-22
lines changed

validator/src/main/java/com/amazon/aoc/models/xray/Entity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ public class Entity {
5757
private Map<String, Object> sql;
5858
private Map<String, Object> service;
5959

60-
private Map<String, Map<String, Object>> metadata;
60+
private Map<String, Object> metadata;
6161
private Map<String, Object> annotations;
6262
}

validator/src/main/resources/expected-data-template/java/eks-otlp-ocb/aws-sdk-call-trace.mustache

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
"aws.local.environment": "^generic:default$"
1919
},
2020
"metadata": {
21-
"default": {
2221
"EC2.AutoScalingGroup": "^eks-.+",
2322
"EKS.Cluster": "^{{platformInfo}}$",
2423
"K8s.Namespace": "^{{appNamespace}}",
2524
"PlatformType": "^Generic$"
26-
}
2725
},
2826
"subsegments": [
2927
{
@@ -46,12 +44,10 @@
4644
"aws.local.environment": "^generic:default$"
4745
},
4846
"metadata": {
49-
"default": {
5047
"EC2.AutoScalingGroup": "^eks-.+",
5148
"EKS.Cluster": "^{{platformInfo}}$",
5249
"K8s.Namespace": "^{{appNamespace}}$",
53-
"PlatformType": "^Generic$",
54-
}
50+
"PlatformType": "^Generic$"
5551
},
5652
"namespace": "^aws$"
5753
}

validator/src/main/resources/expected-data-template/java/eks-otlp-ocb/client-call-trace.mustache

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
"aws.local.environment": "^generic:default$"
77
},
88
"metadata": {
9-
"default": {
109
"EC2.AutoScalingGroup": "^eks-.+",
1110
"EKS.Cluster": "^{{platformInfo}}$",
1211
"K8s.Namespace": "^{{appNamespace}}",
1312
"PlatformType": "^Generic$"
14-
}
1513
},
1614
"subsegments": [
1715
{
@@ -30,13 +28,11 @@
3028
"aws.local.environment": "^generic:default$"
3129
},
3230
"metadata": {
33-
"default": {
3431
"EC2.AutoScalingGroup": "^eks-.+",
3532
"EKS.Cluster": "^{{platformInfo}}$",
3633
"K8s.Namespace": "^{{appNamespace}}$",
3734
"PlatformType": "^Generic$",
3835
"aws.span.kind": "^LOCAL_ROOT$"
39-
}
4036
},
4137
"namespace": "^remote$"
4238
}

validator/src/main/resources/expected-data-template/java/eks-otlp-ocb/outgoing-http-call-trace.mustache

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
"aws.local.environment": "^generic:default$"
1919
},
2020
"metadata": {
21-
"default": {
2221
"EC2.AutoScalingGroup": "^eks-.+",
2322
"EKS.Cluster": "^{{platformInfo}}$",
2423
"K8s.Namespace": "^{{appNamespace}}",
2524
"PlatformType": "^Generic$"
26-
}
2725
},
2826
"subsegments": [
2927
{
@@ -44,12 +42,10 @@
4442
"aws.local.environment": "^generic:default$"
4543
},
4644
"metadata": {
47-
"default": {
4845
"EC2.AutoScalingGroup": "^eks-.+",
4946
"EKS.Cluster": "^{{platformInfo}}$",
5047
"K8s.Namespace": "^{{appNamespace}}$",
51-
"PlatformType": "^Generic$",
52-
}
48+
"PlatformType": "^Generic$"
5349
},
5450
"namespace": "^remote$"
5551
}

validator/src/main/resources/expected-data-template/java/eks-otlp-ocb/remote-service-trace.mustache

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
"aws.local.environment": "^generic:default$"
1919
},
2020
"metadata": {
21-
"default": {
2221
"EC2.AutoScalingGroup": "^eks-.+",
2322
"EKS.Cluster": "^{{platformInfo}}$",
2423
"K8s.Namespace": "^{{appNamespace}}",
2524
"PlatformType": "^Generic$"
26-
}
2725
},
2826
"subsegments": [
2927
{
@@ -45,12 +43,10 @@
4543
"aws.remote.environment": "^generic:default$"
4644
},
4745
"metadata": {
48-
"default": {
4946
"EC2.AutoScalingGroup": "^eks-.+",
5047
"EKS.Cluster": "^{{platformInfo}}$",
5148
"K8s.Namespace": "^{{appNamespace}}$",
52-
"PlatformType": "^Generic$",
53-
}
49+
"PlatformType": "^Generic$"
5450
},
5551
"namespace": "^remote$"
5652
}
@@ -72,8 +68,12 @@
7268
"aws.local.environment": "^generic:default$"
7369
},
7470
"metadata": {
75-
"default": {
76-
}
71+
"EC2.AutoScalingGroup": "^eks-.+",
72+
"EKS.Cluster": "^{{platformInfo}}$",
73+
"K8s.Namespace": "^{{appNamespace}}",
74+
"PlatformType": "^Generic$",
75+
"K8s.Workload": "^{{remoteServiceDeploymentName}}$",
76+
"K8s.Pod": "^{{remoteServiceDeploymentName}}(-[A-Za-z0-9]*)*$"
7777
},
7878
"subsegments": [
7979
{

0 commit comments

Comments
 (0)