Giter Site home page Giter Site logo

Comments (9)

someone1 avatar someone1 commented on August 19, 2024

And of course I figure out it was an issue on my end as soon as I post the issue... Middleware was wrong by using the passed in Handler vs the ochttp one...

Should be:

        fn := func(w http.ResponseWriter, r *http.Request) {
		traceHandler.ServeHTTP(w, r)
	}

However, I'm still not sure how to link things like Service/Version to the traces, are there special labels we can use? Is there a master list of all special labels for the Stackdriver platform and/or to AppEngine specifically somewhere?

from opencensus-go-exporter-stackdriver.

gottwald avatar gottwald commented on August 19, 2024

I guess PR #2 would solve this issue for you, wouldn't it?

from opencensus-go-exporter-stackdriver.

someone1 avatar someone1 commented on August 19, 2024

Looks like a useful feature but it's not relevant to the issue I've described here. I am able to figure out some labels that the StackDriver platform uses but it still doesn't seem to work correctly (I pulled these from older trace libraries I found for NodeJS/Python/etc.):

attrs = append(attrs, trace.StringAttribute("g.co/gae/app/version", os.Getenv("GAE_VERSION")))
attrs = append(attrs, trace.StringAttribute("gae/instance_id", os.Getenv("GAE_INSTANCE")))
attrs = append(attrs, trace.StringAttribute("g.co/gae/app/module", os.Getenv("GAE_SERVICE")))
attrs = append(attrs, trace.StringAttribute("g.co/gae/app/module_version", os.Getenv("GAE_VERSION")))

These seem to label themselves correctly in the dashboard but when I filter on say Version from the dropdown, no traces show up, even though the Version seems to be tagged appropriately?

I can Filter on Service:
image

But not on Version:
image

from opencensus-go-exporter-stackdriver.

gottwald avatar gottwald commented on August 19, 2024

gotcha. Sadly I don't know the fields either. Maybe this is something that's faster solved by asking Google support.

from opencensus-go-exporter-stackdriver.

rakyll avatar rakyll commented on August 19, 2024

/cc @Ramonza

from opencensus-go-exporter-stackdriver.

gottwald avatar gottwald commented on August 19, 2024

Wanted to have that for us as well so I opened a Google Support ticket yesterday and asked (Case 15951800). Once I have a positive response I'll share it here.

from opencensus-go-exporter-stackdriver.

gottwald avatar gottwald commented on August 19, 2024

@someone1 They converted my support ticket to a "official" public feature request. You can star this issue to get updates on the implementation progress: https://issuetracker.google.com/issues/109733852
As always there's no ETA given for this FR.

from opencensus-go-exporter-stackdriver.

odeke-em avatar odeke-em commented on August 19, 2024

I think this issue has been solved since, because:
We now have resource detection as per #84

Kindly paging @songy23 @rghetia @bogdandrutu

from opencensus-go-exporter-stackdriver.

nickm4062 avatar nickm4062 commented on August 19, 2024

This issue still exists, is there a reason https://github.com/census-ecosystem/opencensus-go-exporter-stackdriver/blob/master/trace_proto.go#L189 is prefixing all attributes with g.co/r/ ?

looking at the traces that do work in GAE standard it seems they are using
g.co/gae/app/module
go.co/gae/app/version
for these

from opencensus-go-exporter-stackdriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.