Add timeouts; make span size buffer limit precise (#58)

Add a timeout (customizeable by option) to the contexts used to
make API calls (default to 2 seconds).

Add a size limit on spans we buffer in memory and compute the size
of the span by converting to protobuf before buffering, rather
than estimating from the SpanData struct.

5 files changed
tree: 198afcb1c28a9240d842dfe9e9fe565edd242b23
  1. examples/
  2. internal/
  3. monitoredresource/
  4. propagation/
  5. .gitignore
  6. .travis.yml
  7. AUTHORS
  8. CONTRIBUTING.md
  9. example_test.go
  10. go.mod
  11. go.sum
  12. Gopkg.lock
  13. Gopkg.toml
  14. label.go
  15. LICENSE
  16. README.md
  17. sanitize.go
  18. sanitize_test.go
  19. stackdriver.go
  20. stackdriver_test.go
  21. stats.go
  22. stats_test.go
  23. trace.go
  24. trace_proto.go
  25. trace_proto_test.go
  26. trace_test.go
README.md

OpenCensus Go Stackdriver

Build Status GoDoc

Provides OpenCensus exporter support for Stackdriver Monitoring and Stackdriver Trace.

Installation

$ go get -u contrib.go.opencensus.io/exporter/stackdriver