Skip to content

Commit

Permalink
Fix NoSuchMethodError in mvc-annotation-commons and change deprecated…
Browse files Browse the repository at this point in the history
… method
  • Loading branch information
CzyerChen committed Dec 14, 2023
1 parent 045c1e7 commit 1287ea4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Release Notes.
9.2.0
------------------

* Fix NoSuchMethodError in mvc-annotation-commons and change deprecated method


#### Documentation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allAr
next.setHeadValue(serverHttpRequest.getHeaders().getFirst(next.getHeadKey()));
}

String operationName = this.buildOperationName(method, serverHttpRequest.getMethodValue(),
String operationName = this.buildOperationName(method, serverHttpRequest.getMethod().name(),
(EnhanceRequireObjectCache) objInst.getSkyWalkingDynamicField());
AbstractSpan span = ContextManager.createEntrySpan(operationName, contextCarrier);
Tags.URL.set(span, serverHttpRequest.getURI().toString());
Tags.HTTP.METHOD.set(span, serverHttpRequest.getMethodValue());
Tags.HTTP.METHOD.set(span, serverHttpRequest.getMethod().name());
span.setComponent(ComponentsDefine.SPRING_MVC_ANNOTATION);
SpanLayer.asHttp(span);

Expand Down

0 comments on commit 1287ea4

Please sign in to comment.