-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AgentTestingExporterAccess.getExportedMetrics() doesn't get any metrics #13401
Comments
Could you provide a minimal sample application that reproduces the issue so it would be easier for us to debug this. |
Well the test I posted is a sample application. Basically it's an extended version of AgentForTestingTest.exportAndRetrieve() -- I just added a part with testing |
Hopefully this PR is helpful for reproducing and debugging this issue: #13414 |
And here is the example (full log) of the test failure:
|
Just in case let's cover the logging part with a test: #13459 |
Describe the bug
I'm trying to test the traces/metrics my Java app emits with the help of
io.opentelemetry.javaagent.testing
.It allowed me to check spans, but it didn't work with the metrics.
AgentTestingExporterAccess.getExportedMetrics()
seems to always return an empty list.Steps to reproduce
Expected behavior
Test passes:
Actual behavior
Test fails:
Javaagent or library instrumentation version
2.13.1
Environment
JDK:
OS:
Additional context
build.gradle
:The text was updated successfully, but these errors were encountered: