Skip to content
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

GCP Exporter with quarkus native #102

Open
allevimi-nttdata opened this issue Oct 4, 2023 · 9 comments
Open

GCP Exporter with quarkus native #102

allevimi-nttdata opened this issue Oct 4, 2023 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@allevimi-nttdata
Copy link

I'm trying to deploy a native quarkus project in order to export on GCP, but I had some problems.

  • first of all a com.google.common.base.Preconditions.checkArgument error
    resolved with putting --initialize-at-run-time=com.google.cloud.opentelemetry, but I think it's too much
  • after that, I had a unable to create new instance of class com.google.api.client.json.GenericJson because it has no accessible default constructor and another due to class com.google.api.client.json.GenericJson error
    resolved with creating a reflection-config.json file with those 2 classes

My question is, there is a most valuable solution, that cloud be integrated in the extension codebase? ty

@brunobat
Copy link
Collaborator

brunobat commented Oct 6, 2023

Which version of Quarkus are you using?

@allevimi-nttdata
Copy link
Author

3.4.1

@brunobat brunobat self-assigned this Oct 6, 2023
@brunobat brunobat added the bug Something isn't working label Oct 6, 2023
@allevimi-nttdata
Copy link
Author

runtime initialization could be restricted to com.google.cloud.opentelemetry.trace.TraceConfiguration

@brunobat
Copy link
Collaborator

PR #104 is mandatory to fix the exporters. We might need additional PRs.

@brunobat
Copy link
Collaborator

brunobat commented Nov 3, 2023

We have a fix for the native image but we are stuck in a GraalVM bug now.

@hazzyeer
Copy link

I have the same issue, that's a blocking one.

@brunobat
Copy link
Collaborator

brunobat commented Feb 15, 2024

Unfortunately the exiting PR #104 will not fix this issue.
The UdsNameResolverProvider is forced to be initialised at run time with no good reason.
This can be related to oracle/graal#8230.
This happens because Netty is being delivered in a shaded jar.

@leonardo2204
Copy link

It seems that the issue you mentioned, @brunobat, has been fixed. Is it working now?

@brunobat
Copy link
Collaborator

Will have to check on the next upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants