GKE Stack Driver Trace Reporting By Cluster By Environment By Service By Service VersionHow to add missing metadata to Google logging agentConfiguring Spring Boot with Spring-Cloud-Connectors to use the PWS Config-ServerHow do I present a custom GCP service account to kubernetes workloads?Spring Boot GCP Data Spanner Latency Issuesaws sns to sqs, message not getting convertedCan a Spring Cloud Gateway App be Enabled as a Cloud Config Server?Spring Cloud could not resolve “$spring.util.timeout.sec:$SPRING_UTIL_TIMEOUT_SEC:1” when PropertySourcesPlaceholderConfigurer is usedHow to use google cloud datastore from google kubernetes engine(GKE)Spring Cloud Zuul behind Azure B2C, could not obtain access tokenSpring boot 2.1 application not able to publish traces to Spring boot 1.5 Zipkin server
Looking after a wayward brother in mother's will
How do I remove these transparent pixels?
Do you play the upbeat when beginning to play a series of notes, and then after?
Mother abusing my finances
Yandex Programming Contest: Alarms
What environment would goblins be best adapted for?
What is the 中 in ダウンロード中?
Infinitely many hats
Employer demanding to see degree after poor code review
Leading and Suffering Numbers
What caused the tendency for conservatives to not support climate change reform?
How to return && object from function?
What are the benefits of cryosleep?
Uses of T extends U?
Tic-Tac-Toe for the terminal
If a massive object like Jupiter flew past the Earth how close would it need to come to pull people off of the surface?
How to extract lower and upper bound in numeric format from a confidence interval string?
File globbing pattern, !(*example), behaves differently in bash script than it does in bash shell
How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?
What does "Marchentalender" on the front of a postcard mean?
What are these (utility?) boxes at the side of the house?
Is it possible to change original filename of an exe?
Is my router's IP address really public?
Smart people send dumb people to a new planet on a space craft that crashes into a body of water
GKE Stack Driver Trace Reporting By Cluster By Environment By Service By Service Version
How to add missing metadata to Google logging agentConfiguring Spring Boot with Spring-Cloud-Connectors to use the PWS Config-ServerHow do I present a custom GCP service account to kubernetes workloads?Spring Boot GCP Data Spanner Latency Issuesaws sns to sqs, message not getting convertedCan a Spring Cloud Gateway App be Enabled as a Cloud Config Server?Spring Cloud could not resolve “$spring.util.timeout.sec:$SPRING_UTIL_TIMEOUT_SEC:1” when PropertySourcesPlaceholderConfigurer is usedHow to use google cloud datastore from google kubernetes engine(GKE)Spring Cloud Zuul behind Azure B2C, could not obtain access tokenSpring boot 2.1 application not able to publish traces to Spring boot 1.5 Zipkin server
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
We have multiple spring boot and python apps running on top of GKE and for spring boot applications am using spring-cloud-gcp-starter-trace to log traces to stack driver so that I can debug those traces via the stack driver UI.
Am not able to figure out how to add labels like service_name, service_version and cluster_name so that I can filter out only those traces for reporting purposes because right now we have istio configured on one cluster and even with one percent sampling rate it's generating tons of telemetry data and with UN-availability of filters or am missing some configuration, the trace UI has almost become useless for me
I had a look at the documentation for spring-cloud-gcp-starter-trace, they don't have any properties through which I can set these fields, Am setting app name and app version via the metadata tags of the kubernetes deployment template but they aren't getting picked up.
Can some one please let me know how can I achieve this.
google-cloud-platform spring-cloud google-kubernetes-engine google-cloud-stackdriver
add a comment |
We have multiple spring boot and python apps running on top of GKE and for spring boot applications am using spring-cloud-gcp-starter-trace to log traces to stack driver so that I can debug those traces via the stack driver UI.
Am not able to figure out how to add labels like service_name, service_version and cluster_name so that I can filter out only those traces for reporting purposes because right now we have istio configured on one cluster and even with one percent sampling rate it's generating tons of telemetry data and with UN-availability of filters or am missing some configuration, the trace UI has almost become useless for me
I had a look at the documentation for spring-cloud-gcp-starter-trace, they don't have any properties through which I can set these fields, Am setting app name and app version via the metadata tags of the kubernetes deployment template but they aren't getting picked up.
Can some one please let me know how can I achieve this.
google-cloud-platform spring-cloud google-kubernetes-engine google-cloud-stackdriver
add a comment |
We have multiple spring boot and python apps running on top of GKE and for spring boot applications am using spring-cloud-gcp-starter-trace to log traces to stack driver so that I can debug those traces via the stack driver UI.
Am not able to figure out how to add labels like service_name, service_version and cluster_name so that I can filter out only those traces for reporting purposes because right now we have istio configured on one cluster and even with one percent sampling rate it's generating tons of telemetry data and with UN-availability of filters or am missing some configuration, the trace UI has almost become useless for me
I had a look at the documentation for spring-cloud-gcp-starter-trace, they don't have any properties through which I can set these fields, Am setting app name and app version via the metadata tags of the kubernetes deployment template but they aren't getting picked up.
Can some one please let me know how can I achieve this.
google-cloud-platform spring-cloud google-kubernetes-engine google-cloud-stackdriver
We have multiple spring boot and python apps running on top of GKE and for spring boot applications am using spring-cloud-gcp-starter-trace to log traces to stack driver so that I can debug those traces via the stack driver UI.
Am not able to figure out how to add labels like service_name, service_version and cluster_name so that I can filter out only those traces for reporting purposes because right now we have istio configured on one cluster and even with one percent sampling rate it's generating tons of telemetry data and with UN-availability of filters or am missing some configuration, the trace UI has almost become useless for me
I had a look at the documentation for spring-cloud-gcp-starter-trace, they don't have any properties through which I can set these fields, Am setting app name and app version via the metadata tags of the kubernetes deployment template but they aren't getting picked up.
Can some one please let me know how can I achieve this.
google-cloud-platform spring-cloud google-kubernetes-engine google-cloud-stackdriver
google-cloud-platform spring-cloud google-kubernetes-engine google-cloud-stackdriver
edited Mar 24 at 8:08
Rajiv
asked Mar 24 at 4:49
RajivRajiv
129114
129114
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can add custom tags using the brave.SpanCustomizer
. Just autowire it in as the bean already exists in the application context.
You can then add tags like this:
@Autowired
SpanCustomizer spanCustomizer;
...
spanCustomizer.tag("my-tag", "my tag value");
These will turn into labels on you traces in Stackdriver Trace, on which you can search.
add a comment |
If you're using OpenCensus, you can use annotations to pass metadata into the Trace backend:
https://cloud.google.com/trace/docs/setup/java#custom_spans.
I don't see anything in spring-cloud-gcp-starter-trace documentation (what little I could find) regarding annotations however.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320822%2fgke-stack-driver-trace-reporting-by-cluster-by-environment-by-service-by-service%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can add custom tags using the brave.SpanCustomizer
. Just autowire it in as the bean already exists in the application context.
You can then add tags like this:
@Autowired
SpanCustomizer spanCustomizer;
...
spanCustomizer.tag("my-tag", "my tag value");
These will turn into labels on you traces in Stackdriver Trace, on which you can search.
add a comment |
You can add custom tags using the brave.SpanCustomizer
. Just autowire it in as the bean already exists in the application context.
You can then add tags like this:
@Autowired
SpanCustomizer spanCustomizer;
...
spanCustomizer.tag("my-tag", "my tag value");
These will turn into labels on you traces in Stackdriver Trace, on which you can search.
add a comment |
You can add custom tags using the brave.SpanCustomizer
. Just autowire it in as the bean already exists in the application context.
You can then add tags like this:
@Autowired
SpanCustomizer spanCustomizer;
...
spanCustomizer.tag("my-tag", "my tag value");
These will turn into labels on you traces in Stackdriver Trace, on which you can search.
You can add custom tags using the brave.SpanCustomizer
. Just autowire it in as the bean already exists in the application context.
You can then add tags like this:
@Autowired
SpanCustomizer spanCustomizer;
...
spanCustomizer.tag("my-tag", "my tag value");
These will turn into labels on you traces in Stackdriver Trace, on which you can search.
answered Mar 28 at 18:47
Mike E.Mike E.
1855
1855
add a comment |
add a comment |
If you're using OpenCensus, you can use annotations to pass metadata into the Trace backend:
https://cloud.google.com/trace/docs/setup/java#custom_spans.
I don't see anything in spring-cloud-gcp-starter-trace documentation (what little I could find) regarding annotations however.
add a comment |
If you're using OpenCensus, you can use annotations to pass metadata into the Trace backend:
https://cloud.google.com/trace/docs/setup/java#custom_spans.
I don't see anything in spring-cloud-gcp-starter-trace documentation (what little I could find) regarding annotations however.
add a comment |
If you're using OpenCensus, you can use annotations to pass metadata into the Trace backend:
https://cloud.google.com/trace/docs/setup/java#custom_spans.
I don't see anything in spring-cloud-gcp-starter-trace documentation (what little I could find) regarding annotations however.
If you're using OpenCensus, you can use annotations to pass metadata into the Trace backend:
https://cloud.google.com/trace/docs/setup/java#custom_spans.
I don't see anything in spring-cloud-gcp-starter-trace documentation (what little I could find) regarding annotations however.
answered Mar 25 at 16:25
Yuri GrinshteynYuri Grinshteyn
26616
26616
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320822%2fgke-stack-driver-trace-reporting-by-cluster-by-environment-by-service-by-service%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown