skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

[Feature] Support for Micronaut plugin

Open pg-yang opened this issue 3 years ago • 3 comments

Search before asking

  • [X] I had searched in the issues and found no similar feature requirement.

Description

The first step is support Micronaut Server Application and Micronaut Client

Use case

No response

Related issues

No response

Are you willing to submit a PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

pg-yang avatar Aug 05 '22 12:08 pg-yang

endTo receive actual data
To validate
[2022-08-08 15:06:30:826] [ERROR] - org.apache.skywalking.plugin.test.agent.tool.Main.verify(Main.java:53) - 
assert failed.
SegmentNotFoundException:
expected: 
  Segment:
  - span[-1, 0] GET:/micronaut/success

actual: 
  Segment[52b9160c868a4b7a95852f01acd16b25.37.16599711821650000] e
  expected:     Span[-1, 0] GET:/micronaut/success
  actual:       span[-1, 0] HEAD:/micronaut/healthCheck
  reason:       [operation name]: expected=>{GET:/micronaut/success}, actual=>{HEAD:/micronaut/healthCheck}

  Segment[52b9160c868a4b7a95852f01acd16b25.41.16599711841430000] e
  expected:     Span[-1, 0] GET:/micronaut/success
  actual:       span[-1, 0] GET:/micronaut/success
  reason:       [tag(url) value]: expected=>{/micronaut/success}, actual=>{http://localhost:8080/micronaut/success}


  Segment[52b9160c868a4b7a95852f01acd16b25.44.16599711842720000] e
  expected:     Span[-1, 0] GET:/micronaut/success
  actual:       span[-1, 0] GET:/micronaut/404
  reason:       [operation name]: expected=>{GET:/micronaut/success}, actual=>{GET:/micronaut/404}

  Segment[52b9160c868a4b7a95852f01acd16b25.48.16599711847720000] e
  expected:     Span[-1, 0] GET:/micronaut/success
  actual:       span[-1, 0] GET:/micronaut/error
  reason:       [operation name]: expected=>{GET:/micronaut/success}, actual=>{GET:/micronaut/error}

My test-scenario is a web server , it accept healthy check request and test request . When I run my test-scenario , I got above error .It seems like Plugin automatic test framework compare healthy check request with test request Is there some way to ignore healthy-check-url when comparing segment info ? Or some else reason cause this problem ?

@wu-sheng

pg-yang avatar Aug 08 '22 15:08 pg-yang

This is the issue. URI GET:/micronaut/success is checked, but fails, because tag doesn't match.

wu-sheng avatar Aug 08 '22 15:08 wu-sheng

I misunderstood the report message . Haha

This is the issue. URI GET:/micronaut/success is checked, but fails, because tag doesn't match.

pg-yang avatar Aug 09 '22 08:08 pg-yang