Comments (2)
Unfortunately, the change that added the functions (and description), #121, doesn't have any details on why having Start and Stop functions is preferable to registering the exporter with a View. The authors of the change have moved on.
The stackdriver view Exporter does look a bit more complicated than the IntervalReader. The view Exporter has to aggregate multiple ExportView calls with a bundler
, whereas the IntervalReader just exports on an interval.
from opencensus-go-exporter-stackdriver.
I see. I don't know about IntervalReader or bundler or anything like that. I was just using OpenCensus according to its public documentation without worrying about how it's implemented. I was noticing this pattern of registering exporters to the views. I used it in production with Stackdriver and Prometheus exporters for a while.
I'm not sure if this is related but I noticed that when it came to overriding the reporting interval, if I did it on the view, it had no effect. I wanted to change it from its default of every 1 minute to every 5 minutes instead to save costs. I tried setting the reporting interval on the Stackdriver exporter and this did work. I reported this a while ago in census-instrumentation/opencensus-go#1153.
EDIT:
Actually, when I check that issue again, I notice that I wasn't able to reproduce my problem from my app in production. In a minimal example, setting the reporting interval while registering views did work. My takeaway from this is that there might be an issue with setting a reporting interval depending on how you happened to wire everything up, now that it's evident to me that there are multiple ways to wire this up and get data in Google Cloud Monitoring.
If you did into the issues linked to in that issue, you go down an interesting rabbit hole where they talk more about why view.RegisterExporter
shouldn't be used, and they talk about knowing that a lot of users still do it this way (#193). I'm not sure what to make of it yet, but at least it means people encountering this can do some reading if they're feeling adventurous. :P
from opencensus-go-exporter-stackdriver.
Related Issues (20)
- make travis-ci fails with goimports error in test.pb.go
- PushTraceSpans should return dropped spans instead of good spans
- Go exporter should detect GKE resource labels automatically HOT 10
- Stackdriver fails to export metrics after living long enough HOT 3
- "panic: assignment to entry in nil map" error HOT 4
- The start time must be before the end time for the non-gauge metric HOT 6
- Can't see any metrics after running example code HOT 2
- Unexpectedly large custom metric ingest volume generated HOT 3
- Rebrand to Cloud Monitoring
- Use Zap library for logging to support JSON
- Add an option `OnExport` to exporter
- MetricDescriptor should be created as soon as the view is registered HOT 3
- Traces don't respect X-Cloud-Trace-Context
- 0.13.5 was tagged, but not yet released? HOT 1
- Stop assuming zonal cluster deployment HOT 1
- go: warning: github.com/prometheus/[email protected]+incompatible: retracted by module author HOT 1
- Security Policy violation SECURITY.md HOT 5
- GetMetricDisplayName option does not work HOT 1
- Error while updating imports: cannot find module providing package github.com/prometheus/prometheus/model/value HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencensus-go-exporter-stackdriver.