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;








1















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.










share|improve this question






























    1















    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.










    share|improve this question


























      1












      1








      1


      1






      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 24 at 8:08







      Rajiv

















      asked Mar 24 at 4:49









      RajivRajiv

      129114




      129114






















          2 Answers
          2






          active

          oldest

          votes


















          2














          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.






          share|improve this answer






























            0














            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.






            share|improve this answer























              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
              );



              );













              draft saved

              draft discarded


















              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









              2














              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.






              share|improve this answer



























                2














                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.






                share|improve this answer

























                  2












                  2








                  2







                  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.






                  share|improve this answer













                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 28 at 18:47









                  Mike E.Mike E.

                  1855




                  1855























                      0














                      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.






                      share|improve this answer



























                        0














                        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.






                        share|improve this answer

























                          0












                          0








                          0







                          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.






                          share|improve this answer













                          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.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 25 at 16:25









                          Yuri GrinshteynYuri Grinshteyn

                          26616




                          26616



























                              draft saved

                              draft discarded
















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                              Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                              Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript