Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metrics prototype SDK #2059

Closed
wants to merge 106 commits into from
Closed

Commits on Sep 29, 2021

  1. Adds metrics API (open-telemetry#1887)

    * Adds metric prototype
    
    Fixes open-telemetry#1835
    
    * Fix docs
    
    * Add API metrics doc
    
    * Add missing docs
    
    * Add files
    
    * Adding docs
    
    * Refactor to _initialize
    
    * Refactor initialize
    
    * Add more documentation
    
    * Add exporter test
    
    * Add process
    
    * Fix tests
    
    * Try to add aggregator_class argument
    
    Tests are failing here
    
    * Fix instrument parent classes
    
    * Test default aggregator
    
    * WIP
    
    * Add prototype test
    
    * Tests passing again
    
    * Use right counters
    
    * All tests passing
    
    * Rearrange instrument storage
    
    * Fix tests
    
    * Add HTTP server test
    
    * WIP
    
    * WIP
    
    * Add prototype
    
    * WIP
    
    * Fail the test
    
    * WIP
    
    * WIP
    
    * WIP
    
    * WIP
    
    * Add views
    
    * Discard instruments via views
    
    * Fix tests
    
    * WIP
    
    * WIP
    
    * Fix lint
    
    * WIP
    
    * Fix test
    
    * Fix lint
    
    * Fix method
    
    * Fix lint
    
    * Mypy workaround
    
    * Skip if 3.6
    
    * Fix lint
    
    * Add reason
    
    * Fix 3.6
    
    * Fix run
    
    * Fix lint
    
    * Remove SDK metrics
    
    * Remove SDK docs
    
    * Remove metrics
    
    * Remove assertnotraises mixin
    
    * Revert sdk docs conf
    
    * Remove SDK env var changes
    
    * Fix unit checking
    
    * Define positional-only arguments
    
    * Add Metrics plans
    
    * Add API tests
    
    * WIP
    
    * WIP test
    
    * WIP
    
    * WIP
    
    * WIP
    
    * Set provider test passing
    
    * Use a fixture
    
    * Add test for get_provider
    
    * Rename tests
    
    * WIP
    
    * WIP
    
    * WIP
    
    * WIP
    
    * Remove non specific requirement
    
    * Add meter requirements
    
    * Put all meter provider tests in one file
    
    * Add meter tests
    
    * Make attributes be passed as a dictionary
    
    * Make some interfaces private
    
    * Log an error instead
    
    * Remove ASCII flag
    
    * Add CHANGELOG entry
    
    * Add instrument tests
    
    * All tests passing
    
    * Add test
    
    * Add name tests
    
    * Add unit tests
    
    * Add description tests
    
    * Add counter tests
    
    * Add more tests
    
    * Add Histogram tests
    
    * Add observable gauge tests
    
    * Add updowncounter tests
    
    * Add observableupdowncounter tests
    
    * Fix lint
    
    * Fix docs
    
    * Fix lint
    
    * Ignore mypy
    
    * Remove useless pylint skip
    
    * Remove useless pylint skip
    
    * Remove useless pylint skip
    
    * Remove useless pylint skip
    
    * Remove useless pylint skip
    
    * Add locks to meter and meterprovider
    
    * Add lock to instruments
    
    * Fix fixmes
    
    * Fix lint
    
    * Add documentation placeholder
    
    * Remove blank line as requested.
    
    * Do not override Rlock
    
    * Remove unecessary super calls
    
    * Add missing super calls
    
    * Remove plan files
    
    * Add missing parameters
    
    * Rename observe to callback
    
    * Fix lint
    
    * Rename to secure_instrument_name
    
    * Remove locks
    
    * Fix lint
    
    * Remove args and kwargs
    
    * Remove implementation that gives meters access to meter provider
    
    * Allow creating async instruments with either a callback function or generator
    
    * add additional test with callback form of observable counter
    
    * add a test/example that reads measurements from proc stat
    
    * implement cpu time integration test with generator too
    
    Co-authored-by: Aaron Abbott <[email protected]>
    ocelotl and aabmass committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    1d3860d View commit details
    Browse the repository at this point in the history
  2. Make measurement a concrete class (open-telemetry#2153)

    * Make Measurement a concrete class
    
    * comments
    
    * update changelog
    aabmass authored and ocelotl committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    ae757a9 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2021

  1. Configuration menu
    Copy the full SHA
    258d4f1 View commit details
    Browse the repository at this point in the history
  2. Adds metric prototype

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    295442e View commit details
    Browse the repository at this point in the history
  3. Fix docs

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    0eb7d12 View commit details
    Browse the repository at this point in the history
  4. Add missing docs

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    4d3fb25 View commit details
    Browse the repository at this point in the history
  5. Add files

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    a086325 View commit details
    Browse the repository at this point in the history
  6. Adding docs

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    4f91a8b View commit details
    Browse the repository at this point in the history
  7. Refactor to _initialize

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    5711e5f View commit details
    Browse the repository at this point in the history
  8. Refactor initialize

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    ffcd7a4 View commit details
    Browse the repository at this point in the history
  9. Add more documentation

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    418e4e9 View commit details
    Browse the repository at this point in the history
  10. Add exporter test

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    a03a063 View commit details
    Browse the repository at this point in the history
  11. Add process

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    d69983c View commit details
    Browse the repository at this point in the history
  12. Fix tests

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    3df3385 View commit details
    Browse the repository at this point in the history
  13. Try to add aggregator_class argument

    Tests are failing here
    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    ac01322 View commit details
    Browse the repository at this point in the history
  14. Fix instrument parent classes

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    7e7c833 View commit details
    Browse the repository at this point in the history
  15. Test default aggregator

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    6ae0b69 View commit details
    Browse the repository at this point in the history
  16. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    ddc5022 View commit details
    Browse the repository at this point in the history
  17. Add prototype test

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    7be66f7 View commit details
    Browse the repository at this point in the history
  18. Tests passing again

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    fea0e9d View commit details
    Browse the repository at this point in the history
  19. Use right counters

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    ccb167c View commit details
    Browse the repository at this point in the history
  20. All tests passing

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    6794164 View commit details
    Browse the repository at this point in the history
  21. Rearrange instrument storage

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    03c567b View commit details
    Browse the repository at this point in the history
  22. Fix tests

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    818742c View commit details
    Browse the repository at this point in the history
  23. Add HTTP server test

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    c10fcd6 View commit details
    Browse the repository at this point in the history
  24. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    fa4b030 View commit details
    Browse the repository at this point in the history
  25. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    13e4011 View commit details
    Browse the repository at this point in the history
  26. Add prototype

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    4dd9d5a View commit details
    Browse the repository at this point in the history
  27. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    dfee58b View commit details
    Browse the repository at this point in the history
  28. Fail the test

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    7a7a586 View commit details
    Browse the repository at this point in the history
  29. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    23eefc8 View commit details
    Browse the repository at this point in the history
  30. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    975a5d2 View commit details
    Browse the repository at this point in the history
  31. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    c86e6f0 View commit details
    Browse the repository at this point in the history
  32. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    0328203 View commit details
    Browse the repository at this point in the history
  33. Add views

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    4192875 View commit details
    Browse the repository at this point in the history
  34. Discard instruments via views

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    595924f View commit details
    Browse the repository at this point in the history
  35. Fix tests

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    e2450be View commit details
    Browse the repository at this point in the history
  36. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    d298d0c View commit details
    Browse the repository at this point in the history
  37. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    cbf54ba View commit details
    Browse the repository at this point in the history
  38. Fix lint

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    328083f View commit details
    Browse the repository at this point in the history
  39. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    671dee6 View commit details
    Browse the repository at this point in the history
  40. Fix test

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    7d82a60 View commit details
    Browse the repository at this point in the history
  41. Fix lint

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    7155813 View commit details
    Browse the repository at this point in the history
  42. Fix method

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    c7bbfd1 View commit details
    Browse the repository at this point in the history
  43. Fix lint

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    6d1172c View commit details
    Browse the repository at this point in the history
  44. Skip if 3.6

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    4f72383 View commit details
    Browse the repository at this point in the history
  45. Fix lint

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    bdcfc0c View commit details
    Browse the repository at this point in the history
  46. Add reason

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    8663a14 View commit details
    Browse the repository at this point in the history
  47. Fix 3.6

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    f798cda View commit details
    Browse the repository at this point in the history
  48. Fix run

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    be0660f View commit details
    Browse the repository at this point in the history
  49. Fix lint

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    334e773 View commit details
    Browse the repository at this point in the history
  50. Remove SDK metrics

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    e9f6fdb View commit details
    Browse the repository at this point in the history
  51. Remove SDK docs

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    9340aac View commit details
    Browse the repository at this point in the history
  52. Remove metrics

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    caf63de View commit details
    Browse the repository at this point in the history
  53. Remove assertnotraises mixin

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    554b1bf View commit details
    Browse the repository at this point in the history
  54. Revert sdk docs conf

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    f9e0568 View commit details
    Browse the repository at this point in the history
  55. Remove SDK env var changes

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    5eea7d3 View commit details
    Browse the repository at this point in the history
  56. Fix unit checking

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    34c9603 View commit details
    Browse the repository at this point in the history
  57. Add Metrics plans

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    e7174d4 View commit details
    Browse the repository at this point in the history
  58. Add API tests

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    88872da View commit details
    Browse the repository at this point in the history
  59. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    9806eae View commit details
    Browse the repository at this point in the history
  60. WIP test

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    2c02b1d View commit details
    Browse the repository at this point in the history
  61. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    7496058 View commit details
    Browse the repository at this point in the history
  62. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    230d9d2 View commit details
    Browse the repository at this point in the history
  63. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    1b41bab View commit details
    Browse the repository at this point in the history
  64. Set provider test passing

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    e098556 View commit details
    Browse the repository at this point in the history
  65. Use a fixture

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    33d1f02 View commit details
    Browse the repository at this point in the history
  66. Add test for get_provider

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    1cf6d8a View commit details
    Browse the repository at this point in the history
  67. Rename tests

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    c4940fd View commit details
    Browse the repository at this point in the history
  68. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    b0bd59f View commit details
    Browse the repository at this point in the history
  69. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    8aa63b1 View commit details
    Browse the repository at this point in the history
  70. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    b75bcf1 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    3540361 View commit details
    Browse the repository at this point in the history
  72. Add meter requirements

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    d1b9f6e View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    7727899 View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    b2df422 View commit details
    Browse the repository at this point in the history
  75. Add CHANGELOG entry

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    bd63328 View commit details
    Browse the repository at this point in the history
  76. Add instrument tests

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    6ecd436 View commit details
    Browse the repository at this point in the history
  77. All tests passing

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    6950905 View commit details
    Browse the repository at this point in the history
  78. Add name tests

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    53a14e8 View commit details
    Browse the repository at this point in the history
  79. Add Histogram tests

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    1ef9e57 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    5b510ab View commit details
    Browse the repository at this point in the history
  81. Fix lint

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    97e7491 View commit details
    Browse the repository at this point in the history
  82. Fix docs

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    e719469 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    9a8bcad View commit details
    Browse the repository at this point in the history
  84. Add lock to instruments

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    b92b984 View commit details
    Browse the repository at this point in the history
  85. Fix fixmes

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    f02f8cf View commit details
    Browse the repository at this point in the history
  86. Fix lint

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    3fe0fd9 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    216aba5 View commit details
    Browse the repository at this point in the history
  88. Do not override Rlock

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    ba0acef View commit details
    Browse the repository at this point in the history
  89. Remove unecessary super calls

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    e47398e View commit details
    Browse the repository at this point in the history
  90. Remove plan files

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    ab21523 View commit details
    Browse the repository at this point in the history
  91. Rename observe to callback

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    15cbb40 View commit details
    Browse the repository at this point in the history
  92. Fix lint

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    e1c4c7e View commit details
    Browse the repository at this point in the history
  93. Adds metric prototype

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    37071fa View commit details
    Browse the repository at this point in the history
  94. Add metrics SDK prototype

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    05749c4 View commit details
    Browse the repository at this point in the history
  95. Add docs

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    d274443 View commit details
    Browse the repository at this point in the history
  96. Add metrics to docs

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    0b4d5cb View commit details
    Browse the repository at this point in the history
  97. Add changes from API PR

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    6b65e37 View commit details
    Browse the repository at this point in the history
  98. Fix callback tests

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    e843f2d View commit details
    Browse the repository at this point in the history
  99. Rebase with API

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    a94e6fc View commit details
    Browse the repository at this point in the history
  100. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    a5bcf7e View commit details
    Browse the repository at this point in the history
  101. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    1c676f5 View commit details
    Browse the repository at this point in the history
  102. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    aaba2b6 View commit details
    Browse the repository at this point in the history
  103. WIP

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    bce8eed View commit details
    Browse the repository at this point in the history
  104. Fix lint

    ocelotl committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    53f8976 View commit details
    Browse the repository at this point in the history