Aaron Clawson
18f4cb85ec
[API EPIC 4/4] Fix tests and examples ( #2587 )
...
* Empty All of the metrics dir
* Add instrument api with documentation
* Add a NoOp implementation.
* Updated to the new config standard
* Address PR comments
* This change moves components to sdk/metrics
The Moved components are:
- metric/metrictest
- metric/number
- metric/internal/registry
- metric/sdkapi
* The SDK changes necessary to satasify the new api
* This fixes the remaing tests.
* Update changelog
* refactor the Noop meter and instruments into one package.
* Renamed pkg.Instruments to pkg.InstrumentProvider
Co-authored-by: Aaron Clawson <MadVikingGod@users.noreply.github.com>
2022-03-02 09:50:29 -06:00
Bogdan Drutu
9778aa328f
Remove Min/Max unused interfaces from the moved code ( #2454 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-12-23 08:35:32 -08:00
Bogdan Drutu
6cafa6a060
Remove sdk/export/metric module, embed into the sdk/metric ( #2382 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-12-13 12:13:03 -08:00
Chester Cheung
a4f183be31
Remove metric MinMaxSumCount kind aggregation ( #2423 )
...
* remove metric MinMaxSumCount kind aggregation
* remove related files
* fix unittest
* fix changelog
* remove reference the removed aggregation type
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-12-06 11:47:40 -08:00
Joshua MacDonald
b8ae2721ed
Remove metric aggregator Subtract interface ( #2350 )
...
* Remove metric aggregator Subtract interface
* Apply suggestions from code review
Co-authored-by: Georg Pirklbauer <georg.pirklbauer@dynatrace.com>
* Apply suggestions from code review
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* make generate
* update changelog
Co-authored-by: Georg Pirklbauer <georg.pirklbauer@dynatrace.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-11-15 12:50:13 -08:00
Joshua MacDonald
6483b5c114
Remove exact aggregator for histogram instruments ( #2348 )
...
* remove exact aggregator
* remove exact kind, including workaround in opencensus
* generate w/ go-1.16
* Apply suggestions from code review
Co-authored-by: ET <evantorrie@users.noreply.github.com>
* cleanup
* Apply suggestions from code review
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: ET <evantorrie@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-11-15 10:05:14 -08:00
Anderson Queiroz
7a0cee7b3a
Replaces golint by revive and fix newly reported linter issues ( #1946 )
...
* replaces golint by revive and fix newly reported linter issues
* add pull request ID to CHANGELOG.md
* Update internal/matchers/temporal_matcher.go
Co-authored-by: Robert Pająk <pellared@hotmail.com>
* fix pull request issues
* explains why the linter is disabled
* Update semconv/http.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Update metric/unit/unit.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* restores 'example/passthrough/go.sum' to original state
* fix after rebase
* export ErrInvalidAsyncRunner again and add nolint
* Update trace/tracestate.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Update sdk/metric/sdk.go
Co-authored-by: Aaron Clawson <Aaron.Clawson@gmail.com>
* Fix ContextWithoutBaggage comment
* Fix SpanEndOption comment
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Aaron Clawson <Aaron.Clawson@gmail.com>
Co-authored-by: Tyler Yahn <codingalias@gmail.com>
2021-06-08 10:10:01 -07:00
Joshua MacDonald
49f699d657
Remove Quantile aggregation, DDSketch aggregator; add Exact timestamps ( #1412 )
...
* Remove quantile definition
* Complete removal of Quantile-related function
* Comment in selector/simple/simple.go
* Remove 'quantile' in mmsc
* Rename array->exact
* Update changelog
* Add PR number
* Rename exact benchmark
* New test for exact timestamps
* Add timestamp tests
* More test
* From feedback
* Apply suggestions from code review
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Samples->Points
* Rename
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-12 10:19:13 -08:00
Joshua MacDonald
fe9d1f7ec5
Use uint64 Count consistently in metric aggregation ( #1430 )
...
* Use uint64 Count consistently
* Number
2021-01-05 23:17:20 -08:00
Krzesimir Nowak
386331a472
Prepare to move metrics code to separate subpackage ( #1316 )
...
* Move registry package under metric
* Move Number type to the metric/number subpackage
This also renames NumberKind type to Kind.
* Update changelog
* Drop outdated comment
2020-11-11 07:24:12 -08:00
Tyler Yahn
818c7b14b3
Move metric api package into otel
( #1252 )
...
* Update metric Kind to InstrumentKind
* Update all the other modules with Kind rename
* Update metric Descriptor with instrument Kind rename
* Update other modules with Descriptor method rename
* Update OTLP exporter test field name
* Rename kind filenames
* Add changes to CHANGELOG
* Fix documentation for Grouping and PrecomputedSum
* Rename meter.go to metric.go
* Move descriptor.go into metric.go
* Move must.go into metric.go
* Move instruments into metric_instrument.go
* Rename metric api_test.go to metric_test.go
* Move instrumentkind_test.go into metric_test.go
* Rename sdkapi.go metric_sdkapi.go
* Move api/metric into otel
* Update to use moved packages
* Rename otel.go to error_handler.go
* Add changes to CHANGELOG
* Fix merge conflict resolution error
2020-10-17 09:48:21 -07:00
ET
04297f4d04
Enable exporting Histogram aggregation to OTLP metric ( #1209 )
...
* Add Count() to Histogram interface
* Fix copy/pasted comment for Count() interface
* Implement Histogram conversion to OTLP protobuf
* Add CHANGELOG message
* Filled in PR # for Changelog
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-09-28 17:58:15 -07:00
Joshua MacDonald
0e2fdfc682
Support cumulative, delta, and pass-through exporters ( #840 )
...
* Update Process()
* Checkpoint
* Add subtractor; fix test
* Fix all simple integrator tests
* Build the rest (checkpoint)
* Pass all but Prometheus tests
* Precommit pass
* Add aggregation.Kind argument to ExportKindFor
* Remove Subtractor support
* Remove dead test code
* Restore the Subtractor code
* Fix the tests
* Comments
* Add tests for MetricKind
* Add ChangeSign test
* Test ExportKind
* New file
* Rename ChangeSign
* Remove a TODO, add a TODO
* Remove Stateful remnants
* Typo
* Typo
* Test an invalid export kind
* Comments
* Lint
* Apply suggestions from code review
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-22 22:59:51 -07:00
jmacd
8b58f4f48e
Uppercase
2020-06-10 00:53:31 -07:00
jmacd
e3c9929313
Remove dead code
2020-06-10 00:52:41 -07:00
jmacd
a877fbbb85
Comments
2020-06-10 00:42:57 -07:00
jmacd
8483cc3d23
Add Aggregation.Kind()
2020-06-10 00:32:14 -07:00
jmacd
bb2eb8ee26
Comments
2020-06-10 00:05:17 -07:00
jmacd
da2bdb8249
Update aggregation.go/aggregator.go
2020-06-09 22:41:51 -07:00