Closed
Description
Expected behavior
Include filter with non-string value should be correctly applied.
Actual behavior
Currently only string filter fields are supported.
To Reproduce
Create such applicationinsights.json file:
{
"preview": {
"processors": [
{
"type": "attribute",
"include": {
"matchType": "regexp",
"attributes": [
{
"key": "http.status_code",
"value": 400
}
]
},
"actions": [
{
"action": "insert",
"key": "key",
"value": "value"
}
]
}
]
}
}
As "http.status_code" is not a string key (AttributeKey.stringKey
) but rather long (AttributeKey.longKey
), it will not be resolved, and this code will return null instead of actual value.
Same for regexp: