SNMP Trap extension add attribute to log and custom device

I agree that this would really be very practical to be able to use “var:” in custom extensions based on SNMP Traps.  Furthermore, it looks like a bug because the use of variables works fine with the datasource “snmp” (in poll mode) but does not work with “snmptraps”. The problem is that in certain cases, the workaround with log processing is not possible if the expected information is not present in the content of the SNMP Trap received.