skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

'spanLayer' is null in optional plugin(gateway-2.0.x-plugin gateway-2.1.x-plugin) for springcloud gateway?

Open panghuchi opened this issue 5 years ago • 4 comments

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • [X] Question or discussion

Question

  • What do you want to know? 'spanLayer' is null in optional plugin(gateway-2.0.x-plugin gateway-2.1.x-plugin) for springcloud gateway. Dingtalk_20210206090616

panghuchi avatar Feb 06 '21 01:02 panghuchi

You are welcome to fix this through pull request.

wu-sheng avatar Feb 06 '21 01:02 wu-sheng

Also, Why NettyRoutingFilterInterceptor In Spring Cloud Gateway Plugin using LocalSpan, and setting "SpringCloudGateway/RoutingFilter" as default operation name? Would it be better to use EntrySpan and set different request path as operation name?

panghuchi avatar Feb 06 '21 05:02 panghuchi

Because the webflux plugin takes the responsibility of creating entry span. Routing is only for propagating the context.

wu-sheng avatar Feb 06 '21 06:02 wu-sheng

Read this expected data file in the test, https://github.com/apache/skywalking/blob/master/test/plugin/scenarios/gateway-2.0.x-scenario/config/expectedData.yaml#L46

wu-sheng avatar Feb 06 '21 06:02 wu-sheng