OpenTelemetry - AWS ID Generator #33154
-
In the quarkus docs there's an example of a custom IDGenerator for AWS using AwsXrayIdGenerator.getInstance(); To compile this, a dependency is needed, and I added the following
The JVM version works fine, But with this, the native compilation fails with the following exception:
Is this not supported? (the docs say that native compilation will work). |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
/cc @brunobat (opentelemetry), @radcortez (opentelemetry) |
Beta Was this translation helpful? Give feedback.
-
I tried --initialize-at-run-time=io.opentelemetry.contrib.awsxray, but this results in another error
|
Beta Was this translation helpful? Give feedback.
-
The issue appears with version 3.0.1-Final (GraalVM 22.3.2.1-Final Java 17 Mandrel Distribution) ; the compilation to native is successful with version 2.9.1-Final (GraalVM 22.0.0.2 Java 17 CE). A sample is at https://github.com/akil-rails/opentelemetry-microservices (project is_odd)
Looking for advice on what I can do/try to resolve this. |
Beta Was this translation helpful? Give feedback.
-
Removing the dependency and adding just the IdGenerator implementation works and looks to be the way ahead for now . |
Beta Was this translation helpful? Give feedback.
-
@akil-rails What do you mean by just adding the IdGenerator? |
Beta Was this translation helpful? Give feedback.
-
I could fix the random but I found another, bigger problem. The OkHttp client is being used in the XraySamplerClient to get the sampling rules and it requires OkHttp v 4.11. Quarkus only allows 3.x and the called method is not available in 3.x. Created this: open-telemetry/opentelemetry-java-contrib#863 |
Beta Was this translation helpful? Give feedback.
Removing the dependency and adding just the IdGenerator implementation works and looks to be the way ahead for now .