ET
463c458daf
Add more database-specific semantic attributes ( #899 )
...
* Adds Database-specific semantic attributes.
* Add CHANGELOG
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-07-07 09:22:26 -07:00
Matej Gera
5a4b68c7bf
Add semantic convention for faas.coldstart
and container.id
( #909 )
...
* Add semantic convention for faas coldstart and container ID
* Update Changelog
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-07-07 09:05:30 -07:00
ET
bd1e174e60
Add "peer.service" semantic to standard attributes ( #898 )
...
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-07-06 11:36:49 -04:00
Tyler Yahn
8205b0b1e0
Update B3 header names ( #881 )
...
* Update B3 header names
Correct the B3 single header name from `X-B3` to `b3`.
Use the lowercase version of the B3 multiple headers. This is based on
the fact that HTTP headers are case-insensitive, however, other
protocols may not be.
* Update Changelog
2020-06-30 18:21:13 -07:00
Andrew
e8226c4e1d
Add default metrics to othttp instrumentation Fixes #542 ( #861 )
...
* Add default metrics to othttp instrumentation
* Changed metrics names, add tests, add standard labels to metrics
* Initialization global error handling, remove requests count metric, tuneup test
* Apply suggestions from code review
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-26 12:19:57 -07:00
Mujtaba Ahmed
5be82c0e47
Added support array attributes ( #798 )
...
* Added support array attributes
* Changed function signature for AsArray attribute
* Fixed code comments for array attributes
* Fixed typos in comments in value.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-24 15:58:08 -07:00
ET
a8faf8cacc
Eliminate Uint64NumberKind from API ( #864 )
...
fixes #851
This includes all of the associated methods, such as
AsUint64, AsUint64Atomic, AsUint64Ptr, CoerceToUint64, SetUint64
SetUint64Atomic, SwapUint64, SwapUint64Atomic, AddUint64,
AddUint64Atomic, CompamreAndSwapUint64, CompareUint64
Only significant change as a result was converting the histogram
aggregator's `count` state field into an int64 from a `metric.Number`.
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-23 16:28:04 -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
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
Tyler Yahn
288a3dd435
Metrics instrumentation version ( #811 )
...
* Support instrumentation library in metrics
* Update stdout exporter to display instrumentation info
* Fix tests that use the STDOUT exporter
* Refactor to keep SDK out of API
* Update global Meter and test Meter version
* Revert unneeded import syntax change
* Fix Unit comment
* Update comments
* Update comment
* Revert no-op change to import
2020-06-12 09:11:17 -07:00
Tyler Yahn
b2b914984d
Delay the sends to not overload
2020-06-09 17:21:01 -07:00
Tyler Yahn
388dbc785f
Update global handler_test.go
...
On slower VMs (like the CI VMs), this test was timing out in 2ms and
failing. Additionally, in the process of failing, the suite tear-down
function would reset the globalHandler and cause a race with the spawned
goroutine that was abandoned.
This increases the pause from 2ms to 10ms, unifies and simplifies the
wait logic, and stops the child goroutine on failure.
2020-06-09 12:07:23 -07:00
Tyler Yahn
a98bb979df
Update Tracer API with instrumentation version ( #802 )
...
* Update Tracer API with instrumentation version
Add option to the `Provider.Tracer` method to specify the
instrumentation version.
Update the global, noop, opentracing bridge, and default SDK
implementations.
This does not propagate the instrumentation library version to the
exported span. That is left for a follow-on PR.
* Revert trace_test.go
This is for the next PR.
* Update SDK to include version for default instrumentation
If the instrumentation library name is empty and the default
instrumentation is uses, include the SDK version.
* Update comments and documentation
* Remove default instrumentation version
2020-06-09 11:47:54 -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
Tyler Yahn
c50803d259
Update global Handler delegate to atomic value
2020-06-01 11:50:35 -07:00
Tyler Yahn
57e65fe7f8
Fix tests
...
Old tests were masking the underlying function they were trying to test.
2020-06-01 10:38:05 -07:00
Tyler Yahn
7967e53fd9
Fix spelling in handler_test.go
2020-06-01 09:28:27 -07:00
Tyler Yahn
e70d9092b1
Update global Handle
...
Move delegate call outside of lock to avoid deadlock.
2020-06-01 09:13:30 -07:00
Tyler Yahn
f736b8b0e2
Merge remote-tracking branch 'upstream/master' into oterror
2020-06-01 09:12:10 -07:00
Joshua MacDonald
86a10268b8
Minor cleanups in sdk/metric/aggregator ( #781 )
...
* Typo
* Swap order of ddsketch.New for consistency w/ histogram.New
2020-05-30 20:16:40 -07:00
Tyler Yahn
61f51b4f0e
Update Handler comments
2020-05-29 15:53:42 -07:00
Tyler Yahn
ec6512f656
Lint
2020-05-29 15:49:58 -07:00
Tyler Yahn
559606c419
Add global handler test
2020-05-29 15:34:53 -07:00
Tyler Yahn
39b4eb5806
Add global handler
2020-05-29 13:30:11 -07:00
Tyler Yahn
8e70cfb5c4
Split global.go
2020-05-29 13:04:55 -07:00
Tyler Yahn
7cccff7944
Add api/oterror package
2020-05-29 12:57:04 -07:00
Paulo Janotti
b3f17329c8
Remove SpanID from sampling parameters
...
Update code per latest spec, see:
https://github.com/open-telemetry/opentelemetry-specification/pull/621
2020-05-28 16:08:04 -07:00
Tyler Yahn
ebc7d02bef
Merge branch 'master' into http_semantics
2020-05-27 09:04:08 -07:00
Sean Slattery
f5364569c2
minor typo fix
2020-05-26 23:06:16 -07:00
Anthony J Mirabella
a6f6d402a2
Use HTTP attribute functions from standard package in othttp.Transport
2020-05-26 21:53:16 -04:00
Anthony J Mirabella
90703756d4
Move HTTP request semantic convention extractors from contrib
2020-05-26 21:06:13 -04:00
Joshua MacDonald
b17a7845df
Rename Register* to New* ( #761 )
2020-05-21 15:42:14 -07:00
jmacd
c829d3ea67
Tests pass
2020-05-21 00:36:17 -07:00
jmacd
1c8c5df4db
resource.Merge uses label.MergeIterator
2020-05-21 00:33:39 -07:00
jmacd
63df1b5e22
Add merged iterator
2020-05-20 23:20:29 -07:00
Joshua MacDonald
15e8edd498
Add the UpDownSumObserver instrument ( #750 )
...
* Add the UpDownSumObserver instrument
* Precommit
* Downcase error message
2020-05-20 10:19:51 -07:00
Joshua MacDonald
1fab21ddbf
Support use of synchronous instruments in async callbacks ( #725 )
...
* Support use of synchronous instruments in async callbacks
* Add a test
2020-05-19 21:33:10 -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
0a333cade1
Add the UpDownCounter instrument ( #745 )
...
* Add UpDownCounter to the API
* Add an SDK test
* Comment fix
2020-05-19 10:00:22 -07:00
Vladimir Mihailenco
9adedba214
Fix String in Infer ( #746 )
2020-05-19 09:10:30 -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
76baa9cc7a
Remove the push controller named Meter map ( #738 )
...
* Remove the push controller named Meter map
* Checkpoint
* Remove Provider impls
* Add a test
* Expose Provider() getter instead of implementing the interface
2020-05-18 10:48:58 -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
Tyler Yahn
5abfeb02a9
Add tracing standards
2020-05-15 15:20:30 -07:00
Tyler Yahn
5c160d31e5
Update to v0.4.0 specification
...
Change `library.*` to `telemetry.sdk.*`.
Add FaaS.
Add comments to all constants.
2020-05-15 13:21:52 -07:00
Tyler Yahn
721628d402
Update standard package docs
2020-05-15 12:46:53 -07:00
Tyler Yahn
1d554f34c1
Add standard package contain all semantic conventions
2020-05-15 12:42:13 -07:00