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

Parse JSON structured logs in the Java SDK #10728

Open
pmbrull opened this issue Mar 22, 2023 · 0 comments
Open

Parse JSON structured logs in the Java SDK #10728

pmbrull opened this issue Mar 22, 2023 · 0 comments
Labels

Comments

@pmbrull
Copy link

pmbrull commented Mar 22, 2023

Summary

This issue is related to #6856

When getting the workflow logs from the Java SDK,, we get an object that is not parseable as a JSON (it's formatted as a JSONL).

The call fails internally in the SDK with com.google.gson.JsonSyntaxException. The only workaround is to patch internal calls to cast the result to a String we need to cook.

This is reproducible in the following example: https://github.com/pmbrull/argo-java-examples/blob/main/playground/src/main/java/SimpleWorkflowLogs.java

Opening this separate issue since the UI one has been closed already.

Thanks!

Use Cases

When working with the Java SDK to manage the workflow lifecycle.


Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

@pmbrull pmbrull added the type/feature Feature request label Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants