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

stats, examples/helloworld/stats: runtime panic from non-existent method #240

@odeke-em

Description

@odeke-em

If currently you run the stats helloworld example
https://github.com/census-instrumentation/opencensus-python/blob/9cd14d36338ad55238317274189330e3b1162bb5/examples/stats/helloworld/main.py

in using OpenCensus 0.1.5 I get this error

Traceback (most recent call last):
  File "main.py", line 67, in <module>
    main()
  File "main.py", line 59, in main
    measure_map.record(tag_map)
  File "/usr/local/lib/python2.7/site-packages/opencensus-0.1.5-py2.7.egg/opencensus/stats/measurement_map.py", line 53, in record
    self.measure_to_view_map.record(
AttributeError: 'dict' object has no attribute 'record'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions