{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/opencensus-go-exporter-datadog/issues/23","repository_url":"https://api.github.com/repos/DataDog/opencensus-go-exporter-datadog","labels_url":"https://api.github.com/repos/DataDog/opencensus-go-exporter-datadog/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/opencensus-go-exporter-datadog/issues/23/comments","events_url":"https://api.github.com/repos/DataDog/opencensus-go-exporter-datadog/issues/23/events","html_url":"https://github.com/DataDog/opencensus-go-exporter-datadog/issues/23","id":386119511,"node_id":"MDU6SXNzdWUzODYxMTk1MTE=","number":23,"title":"stats: Why does the exporter always send gauge?","user":{"login":"rumyantseva","id":1684673,"node_id":"MDQ6VXNlcjE2ODQ2NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1684673?v=4","gravatar_id":"","url":"https://api.github.com/users/rumyantseva","html_url":"https://github.com/rumyantseva","followers_url":"https://api.github.com/users/rumyantseva/followers","following_url":"https://api.github.com/users/rumyantseva/following{/other_user}","gists_url":"https://api.github.com/users/rumyantseva/gists{/gist_id}","starred_url":"https://api.github.com/users/rumyantseva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rumyantseva/subscriptions","organizations_url":"https://api.github.com/users/rumyantseva/orgs","repos_url":"https://api.github.com/users/rumyantseva/repos","events_url":"https://api.github.com/users/rumyantseva/events{/privacy}","received_events_url":"https://api.github.com/users/rumyantseva/received_events","type":"User","site_admin":false},"labels":[{"id":962611973,"node_id":"MDU6TGFiZWw5NjI2MTE5NzM=","url":"https://api.github.com/repos/DataDog/opencensus-go-exporter-datadog/labels/stats","name":"stats","color":"6ad8cf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-30T10:07:59Z","updated_at":"2018-12-06T12:47:54Z","closed_at":null,"author_association":"NONE","body":"I was trying to use OpenCensus metrics with the DataDog Go exporter and noticed that for all kind of OpenCensus Views the exporter always send the gauge metric.\r\n\r\nIn the [source code](https://github.com/DataDog/opencensus-go-exporter-datadog/blob/2bef335f5ffffcfa296102765c21882a9158e52a/stats.go#L80) there is this switch statement:\r\n\r\n```go\r\ncase *view.CountData:\r\n\treturn client.Gauge(metricName, float64(data.Value), opt.tagMetrics(row.Tags, tags), rate)\r\n\r\ncase *view.SumData:\r\n\treturn client.Gauge(metricName, float64(data.Value), opt.tagMetrics(row.Tags, tags), rate)\r\n\r\ncase *view.LastValueData:\r\n\treturn client.Gauge(metricName, float64(data.Value), opt.tagMetrics(row.Tags, tags), rate)\r\n```\r\n\r\nSo, for `CountData`, `SumData` and `LastValueDate` absolutely the same gauge is always sent. Why?\r\n\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/DataDog/opencensus-go-exporter-datadog/issues/comments/444859874","html_url":"https://github.com/DataDog/opencensus-go-exporter-datadog/issues/23#issuecomment-444859874","issue_url":"https://api.github.com/repos/DataDog/opencensus-go-exporter-datadog/issues/23","id":444859874,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDg1OTg3NA==","user":{"login":"gbbr","id":6686356,"node_id":"MDQ6VXNlcjY2ODYzNTY=","avatar_url":"https://avatars2.githubusercontent.com/u/6686356?v=4","gravatar_id":"","url":"https://api.github.com/users/gbbr","html_url":"https://github.com/gbbr","followers_url":"https://api.github.com/users/gbbr/followers","following_url":"https://api.github.com/users/gbbr/following{/other_user}","gists_url":"https://api.github.com/users/gbbr/gists{/gist_id}","starred_url":"https://api.github.com/users/gbbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbbr/subscriptions","organizations_url":"https://api.github.com/users/gbbr/orgs","repos_url":"https://api.github.com/users/gbbr/repos","events_url":"https://api.github.com/users/gbbr/events{/privacy}","received_events_url":"https://api.github.com/users/gbbr/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T12:47:54Z","updated_at":"2018-12-06T12:47:54Z","author_association":"MEMBER","body":"@rumyantseva we did notice the issue but possibly nobody got around to it. I handle the `trace` part of the exporter. Possibly @masci can offer further pointers or ideas.\r\n\r\nAre you not getting the desired behavior or is this more like a question? I'm not sure what to make of it."}}
{"actor":{"display_login":"gbbr"}}