Closed jackshirazi closed 1 year ago
The latest snapshot doesn't show this, so I suspect the version included may be non-deterministic (or it's been fixed?)
Okay, it was just that we were including an old API version (1.22.0) up until recently, it was fixed in #3359 so will be correct in the next release
Describe the bug
The agent jar includes shaded classes (.esclazz) which are used by the agent classloader. The opentelemetry-api included should be version 1.31.0 but it seems to have included a cached 1.14.0 version (which should only be used for a specific old-version compilation support)
Steps to reproduce
Any otel metric with a name longer than 63 characters should be okay with 1.31.0 but if used with the agent it is rejected (which was the case in the 1.14.0 version) Specifically, changing the name of the metric in the example plugin from
page_views
topage_viewsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
and then doingmvn clean install
at the project root to run the tests, will produce the stack trace below. Note that ValidationUtil is no longer present in opentelemetry-api 1.31.0. (note also upgrade the versions of otel and elastic in the pom, to 1.31.0 and 1.43.0 respectively)Expected behavior
The metric name longer than 63 characters should now be accepted (the limit is higher)
Debug logs