Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions javascript/sentry-conventions/src/op.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export const BROWSER_RESOURCE_IMG_SPAN_OP = 'resource.img';

export const BROWSER_RESOURCE_CSS_SPAN_OP = 'resource.css';

export const BROWSER_RESOURCE_AUDIO_SPAN_OP = 'resource.audio';

export const BROWSER_RESOURCE_VIDEO_SPAN_OP = 'resource.video';

export const BROWSER_RESOURCE_IFRAME_SPAN_OP = 'resource.iframe';

export const BROWSER_RESOURCE_OTHER_SPAN_OP = 'resource.other';

/**
Expand Down Expand Up @@ -80,6 +86,12 @@ export const DATABASE_DB_QUERY_SPAN_OP = 'db.query';

export const DATABASE_CACHE_SPAN_OP = 'cache';

export const DATABASE_CACHE_GET_SPAN_OP = 'cache.get';

export const DATABASE_CACHE_PUT_SPAN_OP = 'cache.put';

export const DATABASE_CACHE_REMOVE_SPAN_OP = 'cache.remove';

// Path: model/op/faas.json
// Name: faas

Expand Down
12 changes: 12 additions & 0 deletions model/description/cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"brief": "Cache",
"operations": [
{
"name": "Operations",
"brief": "Operations that interact with a cache, such as reading or writing cached values.",
"ops": ["cache", "cache.get", "cache.put", "cache.remove"],
"templates": ["{{cache.key}}"],
"examples": ["my-cache-key"]
}
]
}
22 changes: 22 additions & 0 deletions model/description/resource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"brief": "Resource",
"operations": [
{
"name": "Resources",
"brief": "Loading of resources in the browser.",
"ops": [
"resource",
"resource.script",
"resource.css",
"resource.link",
"resource.img",
"resource.audio",
"resource.video",
"resource.iframe",
"resource.other"
Comment thread
cleptric marked this conversation as resolved.
],
"templates": ["{{url.full}}"],
"examples": ["https://example.com/static/app.js"]
}
]
}
9 changes: 9 additions & 0 deletions model/op/browser.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
{
"name": "resource.css"
},
{
"name": "resource.audio"
},
{
"name": "resource.video"
},
{
"name": "resource.iframe"
},
{
"name": "resource.other"
},
Expand Down
9 changes: 9 additions & 0 deletions model/op/database.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
},
{
"name": "cache"
},
{
"name": "cache.get"
},
{
"name": "cache.put"
},
{
"name": "cache.remove"
}
]
}
12 changes: 12 additions & 0 deletions rust/src/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ pub const BROWSER_RESOURCE_IMG_SPAN_OP: &str = "resource.img";

pub const BROWSER_RESOURCE_CSS_SPAN_OP: &str = "resource.css";

pub const BROWSER_RESOURCE_AUDIO_SPAN_OP: &str = "resource.audio";

pub const BROWSER_RESOURCE_VIDEO_SPAN_OP: &str = "resource.video";

pub const BROWSER_RESOURCE_IFRAME_SPAN_OP: &str = "resource.iframe";

pub const BROWSER_RESOURCE_OTHER_SPAN_OP: &str = "resource.other";

/// Usage of browser APIs or functionality
Expand Down Expand Up @@ -67,6 +73,12 @@ pub const DATABASE_DB_QUERY_SPAN_OP: &str = "db.query";

pub const DATABASE_CACHE_SPAN_OP: &str = "cache";

pub const DATABASE_CACHE_GET_SPAN_OP: &str = "cache.get";

pub const DATABASE_CACHE_PUT_SPAN_OP: &str = "cache.put";

pub const DATABASE_CACHE_REMOVE_SPAN_OP: &str = "cache.remove";

// Path: model/op/faas.json
// Name: faas

Expand Down
Loading