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-observability: add custom tags for all 3 - metrics, logging, traces and remove old env-vars impl #9402

Merged
merged 4 commits into from Jul 22, 2022

Conversation

sanjaypujare
Copy link
Contributor

We replace the env-vars based custom tags with JSON config based custom tags as per the latest o11y config design

CC @DNVindhya

@sanjaypujare sanjaypujare requested a review from temawi July 20, 2022 20:18
@@ -69,7 +69,7 @@ public static synchronized GcpObservability grpcInit() throws IOException {
GlobalLoggingTags globalLoggingTags = new GlobalLoggingTags();
ObservabilityConfigImpl observabilityConfig = ObservabilityConfigImpl.getInstance();
Sink sink = new GcpLogSink(observabilityConfig.getDestinationProjectId(),
globalLoggingTags.getLocationTags(), globalLoggingTags.getCustomTags(),
globalLoggingTags.getLocationTags(), observabilityConfig.getCustomTags(),
Copy link
Contributor

Choose a reason for hiding this comment

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

This only adds custom tags for logging. Don't we need to add same set of custom tags for metrics and traces as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, but that will be a separate PR (as per the task list we have created)

@@ -35,20 +33,16 @@
import java.util.logging.Level;
import java.util.logging.Logger;

/** A container of all global custom tags used for logging (for now). */
/** A container of all global location tags used for observability. */
final class GlobalLoggingTags {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the class specifically contains "location" tags, should the class be called GlobalLocationTags? Or more types of tags to be added?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Renamed everywhere.

@sanjaypujare
Copy link
Contributor Author

friendly ping

@sanjaypujare sanjaypujare merged commit 10979b2 into grpc:master Jul 22, 2022
@sanjaypujare sanjaypujare deleted the new-json-config branch July 22, 2022 20:02
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants