Payload names for 'sql.active_record' instrumentation

When I subscribe to sql.active_record, when a Post is loaded the payload name is “Post Load”, which is great and seems to set a pattern on payload naming. Following that pattern:

  • When a Post is created I would expect the payload name to be “Post Create” (or something similar).

  • When a Post is updated I would expect the payload name to be “Post Update” (or something similar).

  • When a Post is deleted I would expect the payload name to be “Post Delete” (or something similar). Actual behavior is:

  • When a Post is created the payload name is “SQL”.

  • When a Post is updated the payload name is “SQL”.

  • When a Post is deleted the payload name is “SQL”. Is there a reason for the difference? If not, would a patch to fix this be considered for merging?

Cheers,

Jeremy

Please do investigate, maybe there is no reason for that difference and we would be really happy to merge a fix for this.