Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Fix bug in updating aggregation map.#253

Merged
songy23 merged 4 commits intocensus-instrumentation:masterfrom
songy23:fix-stats
Aug 23, 2018
Merged

Fix bug in updating aggregation map.#253
songy23 merged 4 commits intocensus-instrumentation:masterfrom
songy23:fix-stats

Conversation

@songy23
Copy link
Copy Markdown
Contributor

@songy23 songy23 commented Aug 9, 2018

Fixes #231.

  1. Remove _tag_map and get_tag_map from view_data. view_data.record() should always use the given context.
  2. The key for ViewData.tag_value_aggregation_map should be tuples of TagValues, rather than individual TagValue.
  3. When creating a new entry in ViewData.tag_value_aggregation_map, use copy.deepcopy() to create a blank AggregationData.
  4. Use tag_value_aggregation_data_map instead of tag_value_aggregation_map.

@songy23 songy23 merged commit a7e7573 into census-instrumentation:master Aug 23, 2018
@songy23
Copy link
Copy Markdown
Contributor Author

songy23 commented Aug 23, 2018

Thanks!

@songy23 songy23 deleted the fix-stats branch August 23, 2018 22:13
eduardoemery pushed a commit to CESARBR/opencensus-python that referenced this pull request Aug 30, 2018
* Fix bug in updating aggregation map.

* Update unit tests.

* Use tag_value_aggregation_data_map instead of tag_value_aggregation_map.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants