Skip to content

Commit

Permalink
integers are strings now
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Jul 8, 2024
1 parent 42cfe9b commit 1c9ebfa
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions relay-spans/src/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ mod tests {
"parentSpanId": "0c7a7dea069bf5a6",
"name": "middleware - fastify -> @fastify/multipart",
"kind": 1,
"startTimeUnixNano": 1697620454980000000,
"endTimeUnixNano": 1697620454980078800,
"startTimeUnixNano": "1697620454980000000",
"endTimeUnixNano": "1697620454980078800",
"attributes": [
{
"key": "sentry.environment",
Expand Down Expand Up @@ -314,7 +314,7 @@ mod tests {
{
"key": "sentry.sample_rate",
"value": {
"intValue": 1
"intValue": "1"
}
},
{
Expand All @@ -326,7 +326,7 @@ mod tests {
{
"key": "sentry.exclusive_time_nano",
"value": {
"intValue": 1000000000
"intValue": "1000000000"
}
}
],
Expand Down Expand Up @@ -358,13 +358,13 @@ mod tests {
"parentSpanId": "0c7a7dea069bf5a6",
"name": "middleware - fastify -> @fastify/multipart",
"kind": 1,
"startTimeUnixNano": 1697620454980000000,
"endTimeUnixNano": 1697620454980078800,
"startTimeUnixNano": "1697620454980000000",
"endTimeUnixNano": "1697620454980078800",
"attributes": [
{
"key": "sentry.exclusive_time_nano",
"value": {
"intValue": 3200000000
"intValue": "3200000000"
}
}
]
Expand All @@ -382,8 +382,8 @@ mod tests {
"parentSpanId": "0c7a7dea069bf5a6",
"name": "middleware - fastify -> @fastify/multipart",
"kind": 1,
"startTimeUnixNano": 1697620454980000000,
"endTimeUnixNano": 1697620454980078800
"startTimeUnixNano": "1697620454980000000",
"endTimeUnixNano": "1697620454980078800"
}"#;
let otel_span: OtelSpan = serde_json::from_str(json).unwrap();
let event_span: EventSpan = otel_to_sentry_span(otel_span);
Expand All @@ -398,8 +398,8 @@ mod tests {
"parentSpanId": "0c7a7dea069bf5a6",
"name": "database query",
"kind": 3,
"startTimeUnixNano": 1697620454980000000,
"endTimeUnixNano": 1697620454980078800,
"startTimeUnixNano": "1697620454980000000",
"endTimeUnixNano": "1697620454980078800",
"attributes": [
{
"key" : "db.name",
Expand Down Expand Up @@ -440,8 +440,8 @@ mod tests {
"parentSpanId": "0c7a7dea069bf5a6",
"name": "http client request",
"kind": 3,
"startTimeUnixNano": 1697620454980000000,
"endTimeUnixNano": 1697620454980078800,
"startTimeUnixNano": "1697620454980000000",
"endTimeUnixNano": "1697620454980078800",
"attributes": [
{
"key" : "http.request.method",
Expand Down Expand Up @@ -473,8 +473,8 @@ mod tests {
"traceId": "4c79f60c11214eb38604f4ae0781bfb2",
"spanId": "fa90fdead5f74052",
"parentSpanId": "fa90fdead5f74051",
"startTimeUnixNano": 123000000000,
"endTimeUnixNano": 123500000000,
"startTimeUnixNano": "123000000000",
"endTimeUnixNano": "123500000000",
"status": {"code": 0, "message": "foo"},
"attributes": [
{
Expand Down Expand Up @@ -561,7 +561,7 @@ mod tests {
{
"key": "count",
"value": {
"intValue": 2
"intValue": "2"
}
},
{
Expand Down

0 comments on commit 1c9ebfa

Please sign in to comment.