Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Request attributes: Pick a value from comma separated values

ashik_h2k
Visitor

Currently In Distributed Tracing, I can see the value as below, under Request attributes, using the below mentioned payload. 
1. [key1,key2,key3] when "argumentIndex": 1
2. [value1,value2,value3] when "argumentIndex": 2

Please advise on how I can get the value of "Request-attributes-1" as only "value2"?

 

{
"name": "Request-attributes-1",
"enabled": true,
"dataType": "STRING",
"dataSources": [
{
"enabled": true,
"source": "METHOD_PARAM",
"technology": "JAVA",
"methods": [
{
"method": {
"visibility": "PUBLIC",
"modifiers": [
"ABSTRACT"
],
"className": "javax.class1.class2",
"methodName": "setAttribute",
"argumentTypes": [
"java.lang.String",
"java.lang.Object"
],
"returnType": "void"
},
"capture": "ARGUMENT",
"argumentIndex": X,
"deepObjectAccess": "toString().trim()"
}
]
}
],
"normalization": "ORIGINAL",
"aggregation": "ALL_DISTINCT_VALUES",
"confidential": false,
"skipPersonalDataMasking": false
}
0 REPLIES 0

Featured Posts