I am using https://github.com/GoogleCloudPlatform/google-cloud-go/tree/master/trace to send custom traces to Stackdriver Trace from GCP. All these traces end up without a service or version. How do you add that information using the trace api ?
Is there a way to add the serviceContext in trace.NewClient or the span ?
EDIT :
The first answer helps but the Stackdriver UI does not show these unless they are GAE( or internal apps). Mine is a standlone Go app.
stackdriver ui
You can add these two labels to the span you're creating:
trace.cloud.google.com/gae/app/module
trace.cloud.google.com/gae/app/version
I'm having the exact same problem, here's the relevant part of my code:
span := tc.SpanFromRequest(r)
span.SetLabel("trace.cloud.google.com/gae/app/module", "my-service")
span.SetLabel("trace.cloud.google.com/gae/app/version", "v0.1")
defer span.Finish()
The dashboard shows me the correct service and version when I look at the span details, but I cannot filter by service/version, exactly as described in the original question.
Thoughts?
Related
I'd like to configure the Adobe Cloud Manager production pipeline to invalidate the whole dispatcher cache. What paths do I have to give at the production pipeline dispatcher invalidation configuration to have that done? Is it possible to give a pattern here that matches everything? The page-invalidate description talks about a path-pattern, but doesn't describe what exactly that means.
We work with statfilelevel=2. It seems the .stat files are very important for that, though the description given here is unfortunately not precise enough, not sure I understand that right.
I tried to configure /content as path - that just touches /mnt/var/www/html/.stat (/mnt/var/www/html is the docroot), which seems to apply to nodes like /* but not like /content/* .
If I give /content/oursite, that touches /mnt/var/www/html/content/.stat , too, but that does seem to apply to nodes like /content/oursite or /content/othersite, but not to pages like /content/oursite/about - for which would /mnt/var/www/html/content/oursite/.stat be relevant, if I understand that right.
Do I seriously have to enumerate a page in each site that has a .stat file, or is there a more sensible way to get everything invalidated? After all, a deployment could easily change the HTML of every page if a component has changed.
If you have ACS commons installed then you can try to use this powerful feature
https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-flush-rules/index.html
Has anyone tried to setup OSRM so it works in aerodromes. So, instead of routing on roads (highway:trunk, highway:primary, etc..) I can route on a aerodrome:runway, aerodrome:taxiway and aerodrome:parking_position.
According to https://github.com/Project-OSRM/osrm-backend/issues/4814, the WayHandlers file needs to be updated (as well as updating the profile).
However, there isn't any info on what specifically to do. I'm also using the docker images (osrm/osrm-backend) - is the profile/WayHandlers processing done only in the osrm-extract phase?
I am starting from the position of near absolute ignorance here.
I successfully set up a Bluemix account, added devices, got API keys, connected my Raspberry Pi running Node Red and a temperature sensor to Node Red on Bluemix, created a dashboard and was able to get data back and forth between Watson/Bluemix and my Pi. Cool. Unfortunately, I got all that way without ever really understanding the navigation of Watson/Bluemix nor all the terminology. I made NR work both ways and was happy.
Then one day last week, the route to my Bluemix Node Red application stopped being accessible:
404 Not Found: Requested route ('misterpi-01.mybluemix.net') does not exist.
I can browse my devices and see that they are sending data every few minutes, so clearly the connection is there. When I click on IBM Cloud Apps, I am told
There are no IBM Cloud applications bound to your organization
When I am on my IBM Cloud Dashboard and I click on Connections I see I have a connected application that is "Not Running" with a red dot. I can click Stop and the status goes to Stopped. When I click Start, after a short while,
I cannot add an another app because I can only have one.
Where did my NR app go and can I get it back (preferred) and if not, delete it?
At the suggestion of #hardillb I went looking for logs. I found them and it looks like the app is continuously started and crashing. I can't copy the text from the error logs but here is a screenshot.
The first thing you should do is get a copy of your flow source for backup. Go into the IBM Cloud Dashboard and click on Cloudant-ll (the suffix may be different?) and then Launch Cloudant Dashboard (alternatively, click on ...-cloudantNoSQLDB and then alias of Cloudant-ll). From there click on NodeRed and then select the id that ends with "/flow". Then you can extract everything inside "flow": [].
I would recommend emptying it out so you have no flows to ensure that Bluemix can start 'empty'. If you do this you will end up with something similar to mine below (don't change _rev).
{
"_id": "Home Assistant/flow",
"_rev": "102-2b38e1756eeb26def19b20858bc50a40",
"flow": []
}
Later you can paste the extracted code back into Node Red using Import > Clipboard.
You may also want to edit the ".../settings" document to remove any extra node types you installed.
Caveat - I had the same problems with Bluemix and eventually gave up - crashing at least weekly running out of memory and difficulty restarting. I suspect it can't reliably run with 256MB.
I had similar issues with log/errors and endpoint 404:
I followed Michaels advice to backup (nodered:flows and settings) in cloudant.
1. However what works(for now) was cleaning part of the nodered /settings.
2. Basically I removed the nodes part from the Json up until almost the end, leave _credentialSecret part at the end.
3. restart and go to your url, you will see your flows
4. if your flows use some nodes that produce warnings, it might be necessary to remove them to avoid future problems.
UPDATE 2: I saved every flow separately, and then deleted them all from the nodered flows. Then restarted, and have been importing one by one, and it is working.
I have a really bizarre one here...I have developed and deployed to my back end system a launchpad application that currently works OK. Part of this application is a report that, based on certain filters, returns a table and a chart (see snapshot below).
After finishing deployment next step is configuring the app so it runs from the launchpad within the SAP portal. Not familiar with the portal, another colleague undertook the task, application is now running from within the portal as well. With one exception - the chart above is not visible (see 2nd snapshot below).
Noticing the "No Data" message and NO exception in the Chrome debugger, thought as a good idea to debug the OData methods in the back end. To my big surprise, found out that while filters pass to the method just fine both for table and chart (two different entities but almost identical and accepting exactly the same parameters) when running outside portal, when running from within (the portal) parameters "get lost" on their way to the chart entity - no parameters for the chart method. See snapshots below and pay attention to the IT_FILTER_SELECT_OPTIONS at the bottom right.
Outside portal (parameter table filled)
Within Portal (parameter table empty)
Furthermore, the filter table passed to both OData tables is common, you can see the code underneath - just two lines: one for table and one for chart binding.
Closing with a clarification. Mentioned above that there are no errors in the debugger when calling the back end methods. There are actually a couple of them but they take place during the initialization of the app and do not seem to affect anything else in the app, which aside a set of reports has a lot of data operations (dialogs, tables etc), everything else works fine. These errors can be seen below.
Does this situation ring any bells to anyone?
Thanks in advance
Issue solved, it was a deployment issue...
I got a need to integrate various service webUIs into knox gateway.For now ,i use CAS as authentication and got hdfs,hbaseUI,sparkHistoryUI worked fine.I searched google and baidu and found no detailed materials or docs for knox rewrite.xml,so i got problems in integrating new services such as kibana,hue etc.The root cause is that rewrite.xml contains many tags and attr that i just know nothing about.
As a try,i integrate tomcat7.0 ROOT webapp.here is the correspond service.xml and rewrite.xml:
service.xml
rewrite.xml
when i connect the tomcat home page ,everything is ok.but when i clicked the hyper-link "configuration" in the navigation bar. i got infinite number of redirect and finally "ERR_TOO_MANY_REDIRECTS" in the browser.
My question is :1)how to write the rewrite.xml to make this demo work fine.
2)is there any materials or documents about the detail of rewrite tags to share
I will appreciate if any one would help.thanks!
Start with this article: https://cwiki.apache.org/confluence/display/KNOX/Proxying+a+UI+using+Knox
For additional information, you can also see the documentation for service definition files: http://knox.apache.org/books/knox-0-9-1/dev-guide.html#Service+Definition+Files
Hope this is helpful.