-
Notifications
You must be signed in to change notification settings - Fork 647
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
Metrics Implementation #160
Merged
Merged
Changes from 90 commits
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
6ca4274
Create functions
lzchen b23cec1
fix lint
lzchen 981eece
Fix lint
lzchen 8ea9709
fix typing
lzchen 00b4f11
Remove options, constructors, seperate labels
lzchen 34c87ce
Consistent naming for float and int
lzchen df8ae34
Abstract time series
lzchen a2561ac
Use ABC
lzchen 1ece493
Fix typo
lzchen ce9268a
Fix docs
lzchen f5f9f01
seperate measure classes
lzchen 74a1815
Add examples
lzchen 0a0b8ee
fix lint
lzchen 555bf50
Update to RFC 0003
lzchen d6b1113
Add spancontext, measurebatch
lzchen c819109
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
lzchen 18cfc71
Fix docs
lzchen f646555
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
lzchen a44cb47
Fix comments
lzchen 94eaad9
fix lint
lzchen fc251b2
fix lint
lzchen 262f312
fix lint
lzchen 66c0a56
skip examples
lzchen e2c4a7e
white space
lzchen 2fb7646
fix spacing
lzchen eb711cb
fix imports
lzchen baa3a32
fix imports
lzchen 5c30a9c
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
lzchen 211b20c
LabelValues to str
lzchen bffe040
Black formatting
lzchen 0759b9a
fix isort
lzchen 44d62f8
Remove aggregation
lzchen c5ab2df
Fix names
lzchen 50d2de5
Remove aggregation from docs
lzchen d79bc7d
Fix lint
lzchen 7fb7cdf
metric changes
lzchen 79322f5
Typing
lzchen db242f0
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
lzchen f9c7cc3
Fix lint
lzchen 4465929
Fix lint
lzchen 695e596
Add space
lzchen ee43e39
Fix lint
lzchen e59f7c4
fix comments
lzchen 9946028
handle, recordbatch
lzchen e1a3101
docs
lzchen 47d5209
Update recordbatch
lzchen 2553b89
black
lzchen 15c2894
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
lzchen ebcc567
Fix typo
lzchen 41ee12c
remove ValueType
lzchen 62862a2
fix lint
lzchen b99dd3f
sdk
lzchen dda2966
metrics
lzchen 38e5130
example
lzchen 006bd89
counter
lzchen ae94dea
Tests
lzchen eed2cce
merge
lzchen a16556e
Address comments
lzchen 3b0d251
ADd tests
lzchen 8f2a216
Fix typing and examples
lzchen 4f4e385
black
lzchen c0f1d10
fix lint
lzchen bbdc9df
remove override
lzchen bc617c0
Fix tests
lzchen 081556b
mypy
lzchen 77650be
fix lint
lzchen d1b8c32
fix type
lzchen 1a8a037
fix typing
lzchen 5c58f93
fix tests
lzchen 1886a7e
isort
lzchen 90fbbbb
isort
lzchen f602d70
isort
lzchen 3d6654b
isort
lzchen 6cd6ede
noop
lzchen d8e9a64
lint
lzchen 311b1c4
lint
lzchen 8ea1bd7
fix tuple typing
lzchen 417231d
Merge branch 'metrics' of https://github.com/lzchen/opentelemetry-pyt…
lzchen 1090a6c
fix type
lzchen 18e6a11
black
lzchen 4b03cb7
address comments
lzchen cedcd1e
fix type
lzchen 77854c9
fix lint
lzchen 605c947
remove imports
lzchen 031bd1f
default tests
lzchen 071b25b
fix lint
lzchen 00eaea3
usse sequence
lzchen 554b7b1
remove ellipses
lzchen 7668de4
remove ellipses
lzchen 61bef29
black
lzchen b26abba
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
lzchen 6564a3a
Fix typo
lzchen 1083d7e
fix example
lzchen 248e53e
fix type
lzchen 56df6ac
fix type
lzchen 2130ce8
address comments
lzchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not to bikeshed on type annotations, but you don't need this or
MetricT
below unless you want the generic type for something. E.g. to declare that a function's return type matches one of its argument's type. As I understand itUnion[int, float]
would do the same thing here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think according to @Oberon00 , mypy cannot deduce the actual return type of the parameter/function if
Union
is used, although I'm not really sure now what is meant by that. As well, sphinx does not seem to be able to readTypeVar
in the docs.This comment, I was using
Union
previously.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that seems indeed unused. Maybe I mixed something up in that comment, I'll have a closer look later. But as this PR discussion is getting too long and this is certainly no blocker, I guess we can make a follow-up for that.EDIT: See #160 (comment), they would make sense.