Skip to content

Commit

Permalink
[pkg/pdatatest] replace compare of span event and link from reflect.D…
Browse files Browse the repository at this point in the history
…eepEqual to compare functions (#18088)

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 authored Feb 1, 2023
1 parent c632573 commit 2106051
Show file tree
Hide file tree
Showing 21 changed files with 1,046 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "host.name",
"value": {
"stringValue": "node1"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"attributes": [
{
"key": "key1",
"value": {
"stringValue": "value1"
}
}
],
"events": [
{
"name": "event1",
"attributes": [
{
"key": "eventkey1",
"value": {
"stringValue": "value2"
}
}
],
"droppedAttributesCount": 0
}
],
"traceId": "8c8b1765a7b0acf0b66aa4623fcb7bd5"
}
],
"scope": {
"name": "collector",
"version": "v0.1.0"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "host.name",
"value": {
"stringValue": "node1"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"attributes": [
{
"key": "key1",
"value": {
"stringValue": "value1"
}
}
],
"events": [
{
"name": "event1",
"attributes": [
{
"key": "eventkey1",
"value": {
"stringValue": "value1"
}
}
],
"droppedAttributesCount": 0
}
],
"traceId": "8c8b1765a7b0acf0b66aa4623fcb7bd5"
}
],
"scope": {
"name": "collector",
"version": "v0.1.0"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "host.name",
"value": {
"stringValue": "node1"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"attributes": [
{
"key": "key1",
"value": {
"stringValue": "value1"
}
}
],
"events": [
{
"name": "event1",
"attributes": null,
"droppedAttributesCount": 0
}
],
"traceId": "8c8b1765a7b0acf0b66aa4623fcb7bd5"
}
],
"scope": {
"name": "collector",
"version": "v0.1.0"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "host.name",
"value": {
"stringValue": "node1"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"attributes": [
{
"key": "key1",
"value": {
"stringValue": "value1"
}
}
],
"events": [
{
"name": "event1",
"attributes": null,
"droppedAttributesCount": 1
}
],
"traceId": "8c8b1765a7b0acf0b66aa4623fcb7bd5"
}
],
"scope": {
"name": "collector",
"version": "v0.1.0"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{
"name": "Sub span event",
"attributes": null,
"droppedAttributeCount": 0
"droppedAttributesCount": 0
}
],
"traceId": "8c8b1765a7b0acf0b66aa4623fcb7bd5"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "host.name",
"value": {
"stringValue": "node1"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"attributes": [
{
"key": "key1",
"value": {
"stringValue": "value1"
}
}
],
"events": [
{
"name": "event1",
"attributes": null,
"droppedAttributesCount": 0
}
],
"traceId": "8c8b1765a7b0acf0b66aa4623fcb7bd5"
}
],
"scope": {
"name": "collector",
"version": "v0.1.0"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "host.name",
"value": {
"stringValue": "node1"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"attributes": [
{
"key": "key1",
"value": {
"stringValue": "value1"
}
}
],
"events": [
{
"name": "event2",
"attributes": null,
"droppedAttributesCount": 0
}
],
"traceId": "8c8b1765a7b0acf0b66aa4623fcb7bd5"
}
],
"scope": {
"name": "collector",
"version": "v0.1.0"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "host.name",
"value": {
"stringValue": "node1"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"attributes": [
{
"key": "key1",
"value": {
"stringValue": "value1"
}
}
],
"events": [
{
"name": "event1",
"attributes": null,
"droppedAttributesCount": 0,
"timeUnixNano": "11651379494838206464"
}
],
"traceId": "8c8b1765a7b0acf0b66aa4623fcb7bd5"
}
],
"scope": {
"name": "collector",
"version": "v0.1.0"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "host.name",
"value": {
"stringValue": "node1"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"attributes": [
{
"key": "key1",
"value": {
"stringValue": "value1"
}
}
],
"events": [
{
"name": "event1",
"attributes": null,
"droppedAttributesCount": 0,
"timeUnixNano": "11651379494838206400"
}
],
"traceId": "8c8b1765a7b0acf0b66aa4623fcb7bd5"
}
],
"scope": {
"name": "collector",
"version": "v0.1.0"
}
}
]
}
]
}
Loading

0 comments on commit 2106051

Please sign in to comment.