File tree Expand file tree Collapse file tree
dd-java-agent/appsec/src/main/java/com/datadog/appsec/gateway
dd-smoke-tests/appsec/springboot-grpc/src/test/groovy/datadog/smoketest/appsec Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ public class GatewayBridge {
6161 private static final Pattern QUERY_PARAM_VALUE_SPLITTER = Pattern .compile ("=" );
6262 private static final Pattern QUERY_PARAM_SPLITTER = Pattern .compile ("&" );
6363 private static final Map <String , List <String >> EMPTY_QUERY_PARAMS = Collections .emptyMap ();
64- private static final String GRPC_FULL_METHOD_NAME_TAG = "rpc.grpc.full_method" ;
6564
6665 /** User tracking tags that will force the collection of request headers */
6766 private static final String [] USER_TRACKING_TAGS = {
@@ -370,9 +369,6 @@ public void init() {
370369 if (ctx == null || method == null || method .isEmpty ()) {
371370 return NoopFlow .INSTANCE ;
372371 }
373- // set the tag used by the backend to generate the grpc pass-lists
374- TraceSegment segment = ctx_ .getTraceSegment ();
375- segment .setTagCurrent (GRPC_FULL_METHOD_NAME_TAG , method );
376372 while (true ) {
377373 DataSubscriberInfo subInfo = grpcServerMethodSubInfo ;
378374 if (subInfo == null ) {
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ class ServerMethodTest extends AbstractSpringBootWithGRPCAppSecTest {
2828 [
2929 parameters : [
3030 inputs : [[address : ' grpc.server.method' ]],
31- list : [ ' /smoketest. Greeter/Hello ' ] ,
31+ regex : ' Greeter' ,
3232 ],
33- operator : ' phrase_match ' ,
33+ operator : ' match_regex ' ,
3434 ]
3535 ],
3636 transformers : [],
@@ -66,6 +66,5 @@ class ServerMethodTest extends AbstractSpringBootWithGRPCAppSecTest {
6666 match != null
6767 match[' parameters' ][0 ][' address' ] == ' grpc.server.method'
6868 match[' parameters' ][0 ][' value' ] == ' smoketest.Greeter/Hello'
69- grpcRootSpan. meta[' rpc.grpc.full_method' ] == ' smoketest.Greeter/Hello'
7069 }
7170}
You can’t perform that action at this time.
0 commit comments