question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.26.0 upgrade to 1.31.0 can't enhance class

See original GitHub issue

Hi, when i upgrade elastic agent to 1.31.0, i can’t found any transaction in kibana. i found some different log when i sent a http request to my app. in 1.31.0:

2022-09-24 17:33:37,430 [XNIO-1 I/O-2] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Type match for instrumentation JavaxStartAsyncInstrumentation: (not(isInterface()) and hasSuperType(erasure(name(equals(javax.servlet.ServletRequest))))) matches class io.undertow.servlet.spec.HttpServletRequestImpl
2022-09-24 17:33:37,430 [XNIO-1 I/O-2] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Type match for instrumentation JavaxRequestStreamRecordingInstrumentation: (hasSuperType(erasure(name(equals(javax.servlet.ServletRequest)))) and not(isInterface())) matches class io.undertow.servlet.spec.HttpServletRequestImpl
2022-09-24 17:33:37,521 [XNIO-1 task-1] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Type match for instrumentation JavaxFilterChainInstrumentation: (not(isInterface()) and hasSuperType(erasure(name(equals(javax.servlet.FilterChain))))) matches class io.undertow.servlet.handlers.FilterHandler$FilterChainImpl
2022-09-24 17:33:37,728 [XNIO-1 task-1] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Type match for instrumentation JavaxAsyncContextInstrumentation: (not(isInterface()) and hasSuperType(erasure(name(equals(javax.servlet.AsyncContext))))) matches class io.undertow.servlet.spec.AsyncContextImpl

in 1.26.0

2022-09-24 17:40:26,445 [XNIO-1 I/O-2] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Type match for instrumentation JavaxStartAsyncInstrumentation: (not(isInterface()) and hasSuperType(erasure(name(equals(javax.servlet.ServletRequest))))) matches class io.undertow.servlet.spec.HttpServletRequestImpl
2022-09-24 17:40:26,445 [XNIO-1 I/O-2] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Type match for instrumentation JavaxRequestStreamRecordingInstrumentation: (hasSuperType(erasure(name(equals(javax.servlet.ServletRequest)))) and not(isInterface())) matches class io.undertow.servlet.spec.HttpServletRequestImpl
2022-09-24 17:40:26,456 [XNIO-1 I/O-2] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Method match for instrumentation JavaxRequestStreamRecordingInstrumentation: (name(equals(getInputStream)) and returns(erasure(hasSuperType(erasure(name(equals(javax.servlet.ServletInputStream)))))) and not(isAbstract())) matches public javax.servlet.ServletInputStream io.undertow.servlet.spec.HttpServletRequestImpl.getInputStream() throws java.io.IOException
2022-09-24 17:40:26,457 [XNIO-1 I/O-2] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Method match for instrumentation JavaxStartAsyncInstrumentation: (isPublic() and name(equals(startAsync)) and returns(erasure(hasSuperType(erasure(name(equals(javax.servlet.AsyncContext)))))) and (hasParameter(ofSize(0)) or (hasParameter(hasTypes(with(0 matches erasure(name(equals(javax.servlet.ServletRequest)))))) and hasParameter(hasTypes(with(1 matches erasure(name(equals(javax.servlet.ServletResponse)))))))) and not(isAbstract())) matches public javax.servlet.AsyncContext io.undertow.servlet.spec.HttpServletRequestImpl.startAsync() throws java.lang.IllegalStateException
2022-09-24 17:40:26,458 [XNIO-1 I/O-2] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Method match for instrumentation JavaxStartAsyncInstrumentation: (isPublic() and name(equals(startAsync)) and returns(erasure(hasSuperType(erasure(name(equals(javax.servlet.AsyncContext)))))) and (hasParameter(ofSize(0)) or (hasParameter(hasTypes(with(0 matches erasure(name(equals(javax.servlet.ServletRequest)))))) and hasParameter(hasTypes(with(1 matches erasure(name(equals(javax.servlet.ServletResponse)))))))) and not(isAbstract())) matches public javax.servlet.AsyncContext io.undertow.servlet.spec.HttpServletRequestImpl.startAsync(javax.servlet.ServletRequest,javax.servlet.ServletResponse) throws java.lang.IllegalStateException
2022-09-24 17:40:26,492 [XNIO-1 task-1] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Type match for instrumentation JavaxFilterChainInstrumentation: (not(isInterface()) and hasSuperType(erasure(name(equals(javax.servlet.FilterChain))))) matches class io.undertow.servlet.handlers.FilterHandler$FilterChainImpl
2022-09-24 17:40:26,495 [XNIO-1 task-1] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Method match for instrumentation JavaxFilterChainInstrumentation: (name(equals(doFilter)) and hasParameter(hasTypes(with(0 matches erasure(name(equals(javax.servlet.ServletRequest)))))) and hasParameter(hasTypes(with(1 matches erasure(name(equals(javax.servlet.ServletResponse)))))) and not(isAbstract())) matches public void io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(javax.servlet.ServletRequest,javax.servlet.ServletResponse) throws java.io.IOException,javax.servlet.ServletException

when i debug apm , i found 1.31.0 will no step to co.elastic.apm.agent.bci.ElasticApmAgent#getTransformer, can you give me some suggestions to solve this problem?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JonasKunzcommented, Oct 10, 2022

You problem might also be resolved by upgrading the elastic-agent to at least 1.34.0. This version contains a change (#2728) which should isolate the elastic agent from any dependencies your custom agent loads. In addition this should save you the overhead of always keeping the dependencies of both in sync.

0reactions
LeePuicommented, Nov 15, 2022

Hi @LeePui did that resolve the issue?

yes, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flex UI Release Notes for v1.x.x
View the changelog for Twilio Flex v1 including new features, fixes, and updates.
Read more >
jaeger-operator/CHANGELOG.md at main
Jaeger Operator for Kubernetes simplifies deploying and running Jaeger on Kubernetes. - jaeger-operator/CHANGELOG.md at main ...
Read more >
Java Agent version 1.x
Another potentially problematic area is that we now dynamically raise the bytecode version of instrumented classes to be at least bytecode version 51...
Read more >
CMDB CI Class Models release notes
Version history for the IT Operations Management CMDB CI Class Models on the ServiceNow Store. ... The OT Form View of the Protocol...
Read more >
Release notes for Azure Data Studio
July 2021, 1.31.0, July 21, 2021, N/A. June 2021, 1.30.0, June 17, 2021, N/A ... February 2021, 1.26.0, February 18, 2021, N/A.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found