Commit Graph

13 Commits

Author SHA1 Message Date
Jamie King 1b4999f386
docs: spelling corrections (#4530)
* docs: spelling corrections

* chore: feedback on spelling changes
2024-03-11 10:18:41 +01:00
Daniel Dyla 969bb62696
fix(tracing): make spans resilient to performance clock drift (#3434)
* fix(tracing): make spans resilient to performance clock drift

* Fix changelog

* Do not export getTimeOrigin

* Apply shift to shim spans

* Lint

* Lint

* Remove unused imports

* Fix drift calculation

* Remove bad import

* Use Date.now for fetch span end

* Fetch changelog

* Test addHrTimes

* lint

* lint

* lint

* Fix flaky test

* lint

* Use perf timer for perf API

* Apply date fix to xhr

* Changelog

* lint

* Revert to previous addHrTimes impl

* Review comments

* Fix flaky test
2023-01-11 15:37:23 -05:00
Chengzhong Wu c93ab9e84e
fix(core): fix precision loss in numberToHrtime (#3480) 2023-01-03 23:53:25 +08:00
Gerhard Stöbich 67f7e70a3d
chore: update API to 0.18.0 (#1977) 2021-03-01 08:30:13 -05:00
Zoom Chan 73b8bd03fb
fix(opentelemetry-core): fixed timeInputToHrTime when time is Date type (#1784)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-01-12 14:28:30 -05:00
Mark Wolff e9b2cf9aeb
refactor: remove copyright year from file headers (#1150) 2020-06-12 09:27:21 -04:00
legendecas b1ea4543e7
refactor: normalize namespace import name for @opentelemetry/api (#1016) 2020-05-05 10:38:12 -07:00
Daniel Dyla 5d6c99d126
Api separation (#727)
* feat: create an api package

* chore: update circle for new api package

* chore: bring back getTracer

* chore: add wrongly removed dev dependency

* chore: review comments

* chore: review comments

* chore: lint

* chore: export all noop implementations

* chore: update API README

* chore: ignore known working links that are not yet published

* chore: add jsdoc for getInstance calls

* chore: add jsdoc for private constructors

* chore: review comments

* chore: fix readme npm url

* chore: fix old readmes without registry

* chore: update api calling convention
2020-01-29 13:30:49 -08:00
Bartlomiej Obecny b58ad102c4 Collector exporter (#552)
* chore: linting

* feat(collector-exporter): new exporter for opentelemetry collector

* chore: updating readme

* chore: undo auto lint fix - which is wrong

* chore: updates after comments

* chore: renaming util to transform

* chore: renaming types, last comments from review

* chore: adding missing links

* chore: fixes after comments

* chore: fixes after comments

* chore: fixes after comments

* chore: updating jsdoc

* chore: enabling attributes

* chore: adding script to generate package version file

* chore: naming

* chore: adding todo

* chore: updating types for link

* chore: fixing typo

* chore: removing unnecessary typing

* chore: const for enum

* chore: adding missing interface for message event

* chore: adding timestamp example

* chore: changes after review

* chore: adding case when the exporter is shutdown but export is called

* chore: adding missing header for request to prevent instrumentation
2019-12-04 08:43:09 -08:00
Bartlomiej Obecny b21ed9706a feat(plugin-document-load): new plugin for document load for web tracer (#433)
* feat(plugin-document-load): new plugin for document load for web tracer

* chore: lint

* chore: removing unused dependency

* chore: adding prepare script

* chore: cleanup of not used span processor

* chore: merging exporter-console into tracing

* chore: fixing timeOrigin when browser is using older version of performance (safari for example)

* chore: removing @private

* chore: cleaning the docs

* chore: using stubs on public instead of private

* chore: added explanation when span can be undefined

* chore: adding unit test for case when passed "performanceNow" is equal to 0

* chore: adding unit test for case when passed "performanceNow" is null or undefined

* chore: fixing unit test with null

* chore: bump version

* chore: after changing enum keys to capitals I had to use values to align them with performance metric in type "PerformanceEntries"

* chore: adding comments for interfaces

* feat: adding possibility of setting start time for event

* chore: refactoring document load to use events instead of new spans

* chore: reformatting

* chore: updating loop

* chore: changing type for time

* chore: refactoring loop, updating jsdoc

* chore: splitting events into 2 spans

* chore: adding possibility of calling addEvent with 2nd param as time

* chore: updating the last event to be "load end"

* chore: updating the name for attributes

* chore: fixing test

* chore: cleanups

* chore: adding isTimeInput function with unit tests

* chore: adding component name

* chore: adding license and readme

* chore: updating lint and docs jobs to use node12 image in circleci
2019-10-23 10:32:22 -07:00
Mayur Kale 42f4e2c5c4
feat: add hrTimeToMicroseconds and fix numberToHrtime func (#281)
* feat: add hrTimeToMicroeconds and fix numberToHrtime func

* fix: build

* fix: lint
2019-09-19 13:57:47 -07:00
Mayur Kale 7fff5383ab
Continuation of #206 (#279)
* fix: performance.now() is relative from start time

* fix: grpc plugin tests

* fix: import performance
2019-09-18 10:13:23 -07:00
Peter Marton c2a7febfaa fix(basic-tracer): performance.now() is relative from start time (#206)
* fix(basic-tracer): performance.now() is relative from start time

* refactor(time): tuples

* refactor(span): change name of toHrTime

* fix(span): duration default

* fix(hrtime): conver to tuple

* fix(basic-tracer): nanosecond accuracy

* feat(core): move time utils to core

* feat(core): add millis and nanos converter

* test(basic-tracer): fix span time tests
2019-09-17 16:43:04 -07:00