feat(google-cloud-serverless): Emit low cardinality function.gcp span names - #24060
Conversation
0ea6adc to
ae80636
Compare
| // not yet in conventions but this attribute will also determine the span description | ||
| [GCP_FUNCTION_CONTEXT_EVENT_TYPE]: context.eventType, | ||
| [GCP_FUNCTION_CONTEXT_EVENT_ID]: context.eventId, | ||
| [GCP_FUNCTION_CONTEXT_RESOURCE]: context.resource, |
There was a problem hiding this comment.
Object resource set as span attribute
Medium Severity
gcp.function.context.resource is written from context.resource with no type check. Legacy GCP event contexts often supply resource as an object (service, name, type), including Pub/Sub. setAttribute stores that object, so spans can carry a non-primitive attribute. The existing gcpContextIntegration already skips non-string resource values for this reason.
Reviewed by Cursor Bugbot for commit ae80636. Configure here.
size-limit report 📦
|
ae80636 to
a568b71
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a568b71. Configure here.
a568b71 to
f6bba3d
Compare
nicohrubec
left a comment
There was a problem hiding this comment.
just some minor comments, lgtm!
f6bba3d to
43dfada
Compare


Adjusts
function.gcpspans:function.gcpspan description rules sentry-conventions#624 adds new needed description rules to conventions.gcp.function.contextattributes which were previously only set on the transaction event contextref #23954