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
50 changes: 50 additions & 0 deletions javascript/sentry-conventions/src/op.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,56 @@ export const MOBILE_SERIALIZE_SPAN_OP = 'serialize';

export const MOBILE_HTTP_SPAN_OP = 'http';

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

// Description: Object storage related spans represent operations on object storage systems such as Cloudflare R2, Amazon S3, and compatible services.

/**
* Retrieving an object from an object store.
*/
export const OBJECT_OBJECT_GET_SPAN_OP = 'object.get';

/**
* Retrieving the metadata of an object from an object store.
*/
export const OBJECT_OBJECT_HEAD_SPAN_OP = 'object.head';

/**
* Storing an object in an object store.
*/
export const OBJECT_OBJECT_PUT_SPAN_OP = 'object.put';

/**
* Deleting an object from an object store.
*/
export const OBJECT_OBJECT_DELETE_SPAN_OP = 'object.delete';

/**
* Listing objects in an object store.
*/
export const OBJECT_OBJECT_LIST_SPAN_OP = 'object.list';

/**
* Uploading a single part of a multipart upload to an object store.
*/
export const OBJECT_OBJECT_UPLOAD_PART_SPAN_OP = 'object.upload_part';

/**
* Aborting a multipart upload to an object store.
*/
export const OBJECT_OBJECT_MULTIPART_UPLOAD_ABORT_SPAN_OP = 'object.multipart_upload.abort';

/**
* Creating a multipart upload to an object store.
*/
export const OBJECT_OBJECT_MULTIPART_UPLOAD_CREATE_SPAN_OP = 'object.multipart_upload.create';

/**
* Completing a multipart upload to an object store.
*/
export const OBJECT_OBJECT_MULTIPART_UPLOAD_COMPLETE_SPAN_OP = 'object.multipart_upload.complete';

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

Expand Down
42 changes: 42 additions & 0 deletions model/op/object.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "object",
"description": "Object storage related spans represent operations on object storage systems such as Cloudflare R2, Amazon S3, and compatible services.",
"fields": [
{
"name": "object.get",
"description": "Retrieving an object from an object store."
},
{
"name": "object.head",
"description": "Retrieving the metadata of an object from an object store."
},
{
"name": "object.put",
"description": "Storing an object in an object store."
},
{
"name": "object.delete",
"description": "Deleting an object from an object store."
},
{
"name": "object.list",
"description": "Listing objects in an object store."
},
{
"name": "object.upload_part",

@msonnb msonnb Jul 31, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it would make sense to also put this under object.multipart_upload.*, but object.upload_part is how we currently set it in the JS R2 instrumentation (which we could change of course). Python doesn't seem to have any object.* ops at all.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah generally agreed but I think it's fine. this op is also mentioned in dev docs: https://develop.sentry.dev/sdk/telemetry/traces/span-operations/#web-server, so it's somewhat "official".

"description": "Uploading a single part of a multipart upload to an object store."
},
{
"name": "object.multipart_upload.abort",
"description": "Aborting a multipart upload to an object store."
},
{
"name": "object.multipart_upload.create",
"description": "Creating a multipart upload to an object store."
},
{
"name": "object.multipart_upload.complete",
"description": "Completing a multipart upload to an object store."
}
]
}
31 changes: 31 additions & 0 deletions rust/src/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,37 @@ pub const MOBILE_SERIALIZE_SPAN_OP: &str = "serialize";

pub const MOBILE_HTTP_SPAN_OP: &str = "http";

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

// Description: Object storage related spans represent operations on object storage systems such as Cloudflare R2, Amazon S3, and compatible services.
/// Retrieving an object from an object store.
pub const OBJECT_OBJECT_GET_SPAN_OP: &str = "object.get";

/// Retrieving the metadata of an object from an object store.
pub const OBJECT_OBJECT_HEAD_SPAN_OP: &str = "object.head";

/// Storing an object in an object store.
pub const OBJECT_OBJECT_PUT_SPAN_OP: &str = "object.put";

/// Deleting an object from an object store.
pub const OBJECT_OBJECT_DELETE_SPAN_OP: &str = "object.delete";

/// Listing objects in an object store.
pub const OBJECT_OBJECT_LIST_SPAN_OP: &str = "object.list";

/// Uploading a single part of a multipart upload to an object store.
pub const OBJECT_OBJECT_UPLOAD_PART_SPAN_OP: &str = "object.upload_part";

/// Aborting a multipart upload to an object store.
pub const OBJECT_OBJECT_MULTIPART_UPLOAD_ABORT_SPAN_OP: &str = "object.multipart_upload.abort";

/// Creating a multipart upload to an object store.
pub const OBJECT_OBJECT_MULTIPART_UPLOAD_CREATE_SPAN_OP: &str = "object.multipart_upload.create";

/// Completing a multipart upload to an object store.
pub const OBJECT_OBJECT_MULTIPART_UPLOAD_COMPLETE_SPAN_OP: &str = "object.multipart_upload.complete";

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

Expand Down
Loading