Skip to content

Commit

Permalink
Add schema for the functions array
Browse files Browse the repository at this point in the history
  • Loading branch information
phacops committed Jan 9, 2024
1 parent aac68dd commit 12744ee
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
5 changes: 1 addition & 4 deletions examples/profile-functions/1/basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,5 @@
"received": 1687971966,
"retention_days": 90,
"timestamp": 1687971965,
"transaction_name": "GET /api/1/events",
"transaction_op": "http.server",
"transaction_status": "ok",
"http_method": "GET"
"transaction_name": "GET /api/1/events"
}
35 changes: 31 additions & 4 deletions schemas/profile-functions.v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"type": "object",
"properties": {
"functions": {
"type": "array",
"items": {
"type": "object"
}
"$ref": "#/definitions/Function"
},
"environment": {
"type": "string"
Expand Down Expand Up @@ -50,6 +47,36 @@
"timestamp",
"transaction_name"
]
},
"Function": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fingerprint": {
"$ref": "#/definitions/UInt"
},
"function": {
"type": "string"
},
"in_app": {
"type": "boolean"
},
"package": {
"type": "string"
},
"self_times_ns": {
"type": "array",
"items": {
"$ref": "#/definitions/UInt"
}
}
}
}
},
"UInt": {
"type": "integer",
"minimum": 0
}
}
}

0 comments on commit 12744ee

Please sign in to comment.