File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ namespace stats {
2727// that measure can retrieve the data for those events. Measures can only be
2828// obtained from the static functions MeasureRegistry::Register() and
2929// MeasureRegistry::GetMeasureByName().
30- // Measure is immutable, and should be passed by value.
30+ // Measure is immutable, and should be passed by value. It has a trivial
31+ // destructor and can be safely used as a local static variable.
3132template <typename MeasureT>
3233class Measure final {
3334 public:
Original file line number Diff line number Diff line change 2424namespace opencensus {
2525namespace stats {
2626
27- // TagKey is a lightweight, immutable representation of a tag key.
27+ // TagKey is a lightweight, immutable representation of a tag key. It has a
28+ // trivial destructor and can be safely used as a local static variable.
2829class TagKey final {
2930 public:
3031 // Registers a tag key with 'name'. Registering the same name twice produces
You can’t perform that action at this time.
0 commit comments