dependabot[bot]
435a63b3c5
Bump github.com/google/go-cmp from 0.5.5 to 0.5.6 ( #1954 )
...
* Bump github.com/google/go-cmp from 0.5.5 to 0.5.6
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.5...v0.5.6 )
Signed-off-by: dependabot[bot] <support@github.com>
* Auto-fix go.sum changes in dependent modules
* Auto-fix go.sum changes in dependent modules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-06-01 11:53:02 -07:00
Gustavo Silva Paiva
dfe2b6f143
OTLP trace gRPC exporter ( #1922 )
...
* draft: otlp exporter trace grpc
* address comments and improve usability
* change passthrough example to go 1.15
* code cleanups
* copy dependencies to `otlptrace`
* fix typo on makefile
* address comments
* update code with latest changes
* fix comments
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-05-27 13:47:01 -07:00
David Ashpole
d3b1280863
Add Passthrough example ( #1912 )
...
* Add passthrough example
* Update example/passthrough/handler/handler.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Update example/passthrough/README.md
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2021-05-18 14:03:10 -07:00
Gábor Lipták
d20e722830
CI builds validate against last two versions of Go, dropping 1.14 and adding 1.16 ( #1865 )
...
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-05-06 17:14:11 -04:00
Tyler Yahn
02d8bdd5d9
Release v0.20.0 ( #1837 )
...
* Prepare for releasing v0.20.0
* Update changelog
* Add version validation test
* lint
2021-04-23 11:19:07 -07:00
Tyler Yahn
2b4fa9681b
Release v0.19.0 ( #1710 )
...
Update project version to v0.19.0
2021-03-19 08:36:17 -07:00
dependabot[bot]
150b868d02
Bump github.com/google/go-cmp from 0.5.4 to 0.5.5 ( #1667 )
...
* Bump github.com/google/go-cmp from 0.5.4 to 0.5.5
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.4...v0.5.5 )
Signed-off-by: dependabot[bot] <support@github.com>
* Auto-fix go.sum changes in dependent modules
* Auto-fix go.sum changes in dependent modules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-03-08 12:15:49 -08:00
Anthony Mirabella
bb4c297eb3
Pre release v0.18.0 ( #1635 )
...
* Prepare for releasing v0.18.0
* Update CHANGELOG for v0.18.0 release
* Update CHANGELOG.md
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-03-03 14:40:00 -05:00
Punya Biswal
ecf65d7968
Rename otel/label -> otel/attribute ( #1541 )
...
* Rename otel/label -> otel/attr
Leave the imported name alone, to avoid a large diff and conflicts
* Better import comment
* Update CHANGELOG.md
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* otel/attr -> otel/attribute
* Missed the changelog entry
* Get rid of import renaming
* Merge remaining conflicts
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-02-18 12:59:37 -05:00
Tyler Yahn
76f9342277
Release v0.17.0 ( #1534 )
...
* Prepare for releasing v0.17.0
* Update CHANGELOG
2021-02-15 10:48:14 -08:00
Punya Biswal
9b242bc401
Organize API into Go modules based on stability and dependencies ( #1528 )
...
* Add a tool to auto-generate replace directives
* Auto-generated changes from previous commit
* Create new modules required for trace release
* otel/metric
* otel/trace
* otel/oteltest
* otel/sdk/export/metric
* otel/sdk/metric
Relates to #1467
* Move metric-related public API out of otel/ pkg
Move GetMeterProvider, Meter and SetMeterProvider to new package
otel/metric/global in the otel/metric module.
This will allow otel/ module to be released as v1.0.
* Include PR references in CHANGELOG
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Check for root dir
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-02-12 08:23:51 -08: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
Joshua MacDonald
eb28005e2f
Metric Accumulator fix for SumObservers ( #1381 )
...
* Let SynchronizedMove(nil) reset and discard
* Add common test for SynchronizedMove(nil)
* End-to-end test for the Processor and SumObserver
* Implement SynchronizedMove(nil) six ways
* Lint
* Changelog
* Test no reset for wrong aggregator type; Fix four Aggregators
* Cleanup
* imports
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-12-10 18:13:08 -08:00
Krzesimir Nowak
75d4911c95
Move metric code to a separate package ( #1321 )
...
* Move metrics code to metric package
* Update changelog
2020-11-12 07:28:32 -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
Joshua MacDonald
f9984f2d4e
Support configurable AggregationTemporality in exporters; add OTLP missing sum point temporality/monotonic fields ( #1296 )
...
* Restructure ExportKindSelector helpers; eliminate PassThroughExportKind; add StatelessExportKindSelector()
* WithExportKindSelector(); Additional testing
* Changelog update
* Test the new selectors
* From review feedback
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-11-10 07:44:42 -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
Tyler Yahn
396dd6053c
Rename Kind from the api/metric
package ( #1240 )
...
* 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
2020-10-13 07:55:31 -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
Matej Gera
a12224a454
Ensure exported interfaces have named method parameters ( #1172 )
...
* Ensure exported interface types have named arguments
* Update Styling Guide
* update CHANGELOG
2020-09-16 09:09:45 -07:00
Tyler Yahn
f995380e58
Unify api/label
and api/kv
in new label
package ( #1060 )
...
* Move `api/label` to `label`
* Move `api/kv` package contents into `label` package
* Unify label package name
* Move `api/internal/rawhelpers.go` to `internal`
* Propagate replacing `api/kv` with `label` pkg
* golint
* Fix over-aggressive change
* Update Changelog
2020-08-17 20:25:03 -07:00
ET
62d603f1a6
Build on newly released version of go, go 1.15 ( #1064 )
...
* Build on newly release version of go, go 1.15
Remove 1.13 build job per policy of supporting past two releases.
* String conversions in 1.15 require byte, rune or string.
Simply passing an integer now issues a warning.
2020-08-16 20:04:53 -07:00
Joshua MacDonald
1cdf4ee8e6
Create a export.Checkpointer API; refactor metric export pipeline test helpers ( #1055 )
...
* Add regexp filter in api/label, test
* Add regexp option to sdk.Config
* Return indistinct values only when keyRe != nil
* Filter in sdk
* Add an accumulator filter test
* SDK tests pass
* Precommit
* Undo set filters
* Backout related filter changes
* Add a new test
* Checkpoint
* Comments
* Comments in label.Set
* Lint
* Add Checkpointer
* Test refactor continues
* Refactor reducer test
* Checkpoint
* Update push_test
* Update pull controller
* Comment
* Remove pending PRs
* Remove exportertest pkg
* Revert basic changes
* Revert testing changes
* Restore processortest changes
* Precommit & comments
* Comments on pull semantics
* Comments
* Fix buggy test; incorrect expectation following error
* Finish this test
* Comments
* 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-08-13 13:12:32 -07:00
Tyler Yahn
c6611f4478
Move export test package to SDK ( #962 )
...
* Move export test package to SDK
* Rename package to metrictest
Follow Go std lib conventions in test package naming.
* Update import paths
2020-07-24 20:32:52 -07:00
Joshua MacDonald
2966505271
Rename Integrator to Processor ( #863 )
...
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-23 12:00:15 -07:00
Joshua MacDonald
0382850707
Rename AggregationSelector to AggregatorSelector ( #859 )
2020-06-23 10:51:15 -07:00
Joshua MacDonald
ea53fb4d1a
Rename SynchronizedCopy to SynchronizedMove and update comment ( #858 )
2020-06-23 10:41:11 -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
Joshua MacDonald
4e4271791f
Add export timestamps; distinguish Accumulation vs. Record ( #835 )
...
* Introduce Accumulation
* Refactor export structs
* FTB exporters
* Test timestamps
* Test no-start case
* From feedback
* Apply suggestions from code review
(Thanks @MrAlias!)
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Comments in sdk/metric/integrator/test
* Fix build
* Comments and feedback
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-18 10:16:33 -07:00
Joshua MacDonald
9925ebe517
Single-state Aggregator and test refactor ( #812 )
...
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-13 00:55:01 -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
Joshua MacDonald
9401bd9cda
Remove Context arguments from Aggregator.Checkpoint and Integrator.Process ( #803 )
...
* Typo
* Swap order of ddsketch.New for consistency w/ histogram.New
* Remove Integrator.Process ctx argument
* Remove Aggregator.Checkpoint ctx argument
* Revert bugfix
2020-06-09 11:00:50 -07:00
jmacd
9d2e78ae2b
Comment
2020-05-21 11:21:13 -07:00
jmacd
dacebd6430
Use []float64 for boundaries
2020-05-21 10:29:03 -07:00
Joshua MacDonald
c5f2252c48
Add the SumObserver instrument ( #747 )
...
* Add the SumObserver instrument
* Lint
2020-05-19 11:49:24 -07:00
Joshua MacDonald
21d094af43
Refactor the api/metrics push controller; add CheckpointSet synchronization ( #737 )
...
* Checkpoint
* Finish tests
* Checkpoint
* Checkpoint (builds)
* Checkpoint + RWMutex interface
* Comments
* Remove commitLock
* Apply feedback
2020-05-18 18:37:41 -07:00
Joshua MacDonald
69da3056f2
Move Resource into the metric export Record ( #739 )
...
* Checkpoint
* Tests pass
2020-05-18 17:44:28 -07:00
Joshua MacDonald
ee3c9ed1a5
Rename Observer to ValueObserver ( #734 )
...
* Observer -> ValueObserver
* Move wrappers into async.go
2020-05-18 11:03:43 -07:00
Joshua MacDonald
6bc14ffd2c
Replace Measure instrument by ValueRecorder instrument ( #732 )
...
* Measure->Value recorder and cleanups re: measure
* More edits
* More edits
* Feedback
2020-05-15 22:11:12 -07:00
Chen Yixiao
1301b6f3e4
Move core and key to kv package ( #720 )
...
* Move core to kv
* Move kv.Value to kv.value.Value
* Move key to kv
2020-05-13 16:06:03 -07:00
Joshua MacDonald
64afb05e53
Metric SDK renames to align with draft SDK spec ( #710 )
...
* Replace batcher w/ integrator; rename ungrouped to simple
* SDK -> Accumulator
* Cleamup
* Address feedback
2020-05-11 10:23:06 -07:00
Chen Yixiao
f0855b7d08
Move Number to api/metric package ( #706 )
...
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-05-10 23:44:42 -07:00
Joshua MacDonald
3008c1bf02
Pass Resources through the metrics export pipeline ( #659 )
2020-04-24 09:44:21 -07:00
Joshua MacDonald
0bb12d9b1b
New api/label
package, common label set impl ( #651 )
...
* New label set API
* Checkpoint
* Remove label.Labels interface
* Fix trace
* Remove label storage
* Restore metric_test.go
* Tidy tests
* More comments
* More comments
* Same changes as 654
* Checkpoint
* Fix batch labels
* Avoid Resource.Attributes() where possible
* Update comments and restore order in resource.go
* From feedback
* From feedback
* Move iterator_test & feedback
* Strenghten the label.Set test
* Feedback on typos
* Fix the set test per @krnowak
* Nit
2020-04-23 12:10:58 -07:00