diff --git a/javascript/sentry-conventions/src/op.ts b/javascript/sentry-conventions/src/op.ts index 52ee4e58..a8c63f72 100644 --- a/javascript/sentry-conventions/src/op.ts +++ b/javascript/sentry-conventions/src/op.ts @@ -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'; /** @@ -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 diff --git a/model/description/cache.json b/model/description/cache.json new file mode 100644 index 00000000..d83557c1 --- /dev/null +++ b/model/description/cache.json @@ -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"] + } + ] +} diff --git a/model/description/resource.json b/model/description/resource.json new file mode 100644 index 00000000..337edab5 --- /dev/null +++ b/model/description/resource.json @@ -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" + ], + "templates": ["{{url.full}}"], + "examples": ["https://example.com/static/app.js"] + } + ] +} diff --git a/model/op/browser.json b/model/op/browser.json index 4d694fe8..5d47a678 100644 --- a/model/op/browser.json +++ b/model/op/browser.json @@ -26,6 +26,15 @@ { "name": "resource.css" }, + { + "name": "resource.audio" + }, + { + "name": "resource.video" + }, + { + "name": "resource.iframe" + }, { "name": "resource.other" }, diff --git a/model/op/database.json b/model/op/database.json index 79fb2965..74c587b0 100644 --- a/model/op/database.json +++ b/model/op/database.json @@ -10,6 +10,15 @@ }, { "name": "cache" + }, + { + "name": "cache.get" + }, + { + "name": "cache.put" + }, + { + "name": "cache.remove" } ] } diff --git a/rust/src/op.rs b/rust/src/op.rs index 24850c73..89db85e1 100644 --- a/rust/src/op.rs +++ b/rust/src/op.rs @@ -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 @@ -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