Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

fix: add client id and update trace id population for StreamWriter and JsonWriter#2389

Merged
yirutang merged 12 commits into
googleapis:mainfrom
yirutang:java-id
Feb 7, 2024
Merged

fix: add client id and update trace id population for StreamWriter and JsonWriter#2389
yirutang merged 12 commits into
googleapis:mainfrom
yirutang:java-id

Conversation

@yirutang

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

@yirutang yirutang requested review from a team and kiraksi January 31, 2024 23:05
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. labels Jan 31, 2024
@yirutang yirutang requested a review from GaoleMeng February 2, 2024 06:02
@yirutang yirutang changed the title fix: add client id for StreamWriter fix: add client id and update trace id population for StreamWriter and JsonWriter. Feb 2, 2024
@yirutang yirutang changed the title fix: add client id and update trace id population for StreamWriter and JsonWriter. fix: add client id and update trace id population for StreamWriter and JsonWriter Feb 2, 2024
@yirutang yirutang requested a review from a team February 2, 2024 06:06
@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 3, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 3, 2024
@yirutang yirutang added kokoro:run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 3, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 3, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Feb 3, 2024

private String traceId = null;

private String clientId = "java-streamwriter";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static final

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is settable.

private Builder(SchemaAwareStreamWriter.Builder<Object> schemaAwareStreamWriterBuilder) {
this.schemaAwareStreamWriterBuilder =
schemaAwareStreamWriterBuilder.setTraceIdBase("JsonWriter");
schemaAwareStreamWriterBuilder.setClientId("java-jsonwriter");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to static final

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean this? In theory this can be set too but we just don't bother exposing it.

@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 6, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 6, 2024
@yirutang yirutang added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 6, 2024
@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 6, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 6, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 6, 2024
@yirutang yirutang merged commit 4258af4 into googleapis:main Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants