diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index 8036315b1..92097737d 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -3113,7 +3113,7 @@ export type AWS_S3_COPY_SOURCE_TYPE = string; // Path: model/attributes/aws/aws__s3__delete.json /** - * The delete request container that specifies the objects to be deleted. `aws.s3.delete` + * The JSON-serialized value of Delete request field, which specifies the objects to be deleted. `aws.s3.delete` * * Attribute Value Type: `string` {@link AWS_S3_DELETE_TYPE} * @@ -3122,7 +3122,7 @@ export type AWS_S3_COPY_SOURCE_TYPE = string; * Attribute defined in OTEL: Yes * Visibility: public * - * @example "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean" + * @example "{\"Objects\":[{\"Key\":\"someFile.yml\",\"VersionId\":\"3HL4kqtJlcpXroDTDmJ\"}],\"Quiet\":false}" */ export const AWS_S3_DELETE = 'aws.s3.delete'; @@ -5381,6 +5381,7 @@ export type CULTURE_TIMEZONE_TYPE = string; * Aliases: {@link DB_MONGODB_COLLECTION} `db.mongodb.collection` * * @example "users" + * @example ",customers,orders," */ export const DB_COLLECTION_NAME = 'db.collection.name'; @@ -25432,7 +25433,7 @@ export const ATTRIBUTE_METADATA: Record = { ], }, 'aws.s3.delete': { - brief: 'The delete request container that specifies the objects to be deleted.', + brief: 'The JSON-serialized value of Delete request field, which specifies the objects to be deleted.', type: 'string', keys: ['aws.s3.delete'], applyScrubbing: { @@ -25440,9 +25441,10 @@ export const ATTRIBUTE_METADATA: Record = { }, isInOtel: true, visibility: 'public', - example: 'Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean', - examples: ['Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean'], + example: '{"Objects":[{"Key":"someFile.yml","VersionId":"3HL4kqtJlcpXroDTDmJ"}],"Quiet":false}', + examples: ['{"Objects":[{"Key":"someFile.yml","VersionId":"3HL4kqtJlcpXroDTDmJ"}],"Quiet":false}'], changelog: [ + { version: 'next', description: 'Changed the value to a JSON-serialized field, with an example' }, { version: '0.28.0', prs: [713], description: 'Changed apply_scrubbing from manual to auto' }, { version: '0.27.0', prs: [672], description: 'Added aws.s3.delete attribute' }, ], @@ -26973,12 +26975,17 @@ export const ATTRIBUTE_METADATA: Record = { isInOtel: true, visibility: 'public', example: 'users', + examples: ['users', ',customers,orders,'], aliases: ['db.mongodb.collection'], changelog: [ + { version: 'next', description: 'Add comma-wrapped format for calls on more than one collection' }, { version: '0.19.0', prs: [483], description: 'Added db.mongodb.collection as an alias' }, { version: '0.1.0', prs: [106, 127] }, { version: '0.0.0' }, ], + additionalContext: [ + 'For a call on more than one collection: the unique names, sorted and wrapped in commas (`,customers,orders,`), so each name matches `,,`.', + ], }, 'db.connection_string': { brief: 'The connection string used to connect to the database.', diff --git a/javascript/sentry-conventions/src/search.ts b/javascript/sentry-conventions/src/search.ts index 18ec3db90..bbc2666c3 100644 --- a/javascript/sentry-conventions/src/search.ts +++ b/javascript/sentry-conventions/src/search.ts @@ -7357,7 +7357,7 @@ export const ATTRIBUTE_SEARCH_METADATA: Record 'aws.s3.delete': { canonicalName: 'aws.s3.delete', type: 'string', - brief: 'The delete request container that specifies the objects to be deleted.', + brief: 'The JSON-serialized value of Delete request field, which specifies the objects to be deleted.', deprecationChain: ['aws.s3.delete'], }, 'aws.s3.key': { diff --git a/model/attributes/aws/aws__s3__delete.json b/model/attributes/aws/aws__s3__delete.json index 102a16e87..a0f5de626 100644 --- a/model/attributes/aws/aws__s3__delete.json +++ b/model/attributes/aws/aws__s3__delete.json @@ -1,6 +1,6 @@ { "key": "aws.s3.delete", - "brief": "The delete request container that specifies the objects to be deleted.", + "brief": "The JSON-serialized value of Delete request field, which specifies the objects to be deleted.", "additional_context": ["Applicable only to the delete-objects operation, corresponding to its Delete parameter."], "type": "string", "apply_scrubbing": { @@ -8,8 +8,12 @@ }, "is_in_otel": true, "visibility": "public", - "examples": ["Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"], + "examples": ["{\"Objects\":[{\"Key\":\"someFile.yml\",\"VersionId\":\"3HL4kqtJlcpXroDTDmJ\"}],\"Quiet\":false}"], "changelog": [ + { + "version": "next", + "description": "Changed the value to a JSON-serialized field, with an example" + }, { "version": "0.28.0", "prs": [713], diff --git a/model/attributes/db/db__collection__name.json b/model/attributes/db/db__collection__name.json index 674533e44..442619050 100644 --- a/model/attributes/db/db__collection__name.json +++ b/model/attributes/db/db__collection__name.json @@ -1,15 +1,22 @@ { "key": "db.collection.name", "brief": "The name of a collection (table, container) within the database.", + "additional_context": [ + "For a call on more than one collection: the unique names, sorted and wrapped in commas (`,customers,orders,`), so each name matches `,,`." + ], "type": "string", "apply_scrubbing": { "key": "manual" }, "is_in_otel": true, - "example": "users", + "examples": ["users", ",customers,orders,"], "alias": ["db.mongodb.collection"], "visibility": "public", "changelog": [ + { + "version": "next", + "description": "Add comma-wrapped format for calls on more than one collection" + }, { "version": "0.19.0", "prs": [483], diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index 3d914ba0b..bf90259ed 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -2196,13 +2196,13 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): # Path: model/attributes/aws/aws__s3__delete.json AWS_S3_DELETE: Literal["aws.s3.delete"] = "aws.s3.delete" - """The delete request container that specifies the objects to be deleted. + """The JSON-serialized value of Delete request field, which specifies the objects to be deleted. Type: str Apply Scrubbing: auto Defined in OTEL: Yes Visibility: public - Example: "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean" + Example: "{\"Objects\":[{\"Key\":\"someFile.yml\",\"VersionId\":\"3HL4kqtJlcpXroDTDmJ\"}],\"Quiet\":false}" """ # Path: model/attributes/aws/aws__s3__key.json @@ -3512,6 +3512,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Visibility: public Aliases: db.mongodb.collection Example: "users" + Example: ",customers,orders," """ # Path: model/attributes/db/db__connection_string.json @@ -15205,17 +15206,21 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): ], ), "aws.s3.delete": AttributeMetadata( - brief="The delete request container that specifies the objects to be deleted.", + brief="The JSON-serialized value of Delete request field, which specifies the objects to be deleted.", type=AttributeType.STRING, keys=("aws.s3.delete",), apply_scrubbing=ApplyScrubbingInfo(key=ApplyScrubbing.AUTO), is_in_otel=True, visibility=Visibility.PUBLIC, - example="Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean", + example='{"Objects":[{"Key":"someFile.yml","VersionId":"3HL4kqtJlcpXroDTDmJ"}],"Quiet":false}', examples=[ - "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean" + '{"Objects":[{"Key":"someFile.yml","VersionId":"3HL4kqtJlcpXroDTDmJ"}],"Quiet":false}' ], changelog=[ + ChangelogEntry( + version="next", + description="Changed the value to a JSON-serialized field, with an example", + ), ChangelogEntry( version="0.28.0", prs=[713], @@ -17068,8 +17073,13 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): is_in_otel=True, visibility=Visibility.PUBLIC, example="users", + examples=["users", ",customers,orders,"], aliases=["db.mongodb.collection"], changelog=[ + ChangelogEntry( + version="next", + description="Add comma-wrapped format for calls on more than one collection", + ), ChangelogEntry( version="0.19.0", prs=[483], @@ -17078,6 +17088,9 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): ChangelogEntry(version="0.1.0", prs=[106, 127]), ChangelogEntry(version="0.0.0"), ], + additional_context=[ + "For a call on more than one collection: the unique names, sorted and wrapped in commas (`,customers,orders,`), so each name matches `,,`." + ], ), "db.connection_string": AttributeMetadata( brief="The connection string used to connect to the database.",