Commit Graph

25 Commits

Author SHA1 Message Date
David Luna fddcd199a0
chore!: update typescript to version `5.0.4` (#5145)
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
2025-01-09 16:49:52 +00:00
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
Daniel Dyla 5818129631
feat: anchored clock (#3134)
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Co-authored-by: Gerhard Stöbich <deb2001-github@yahoo.de>
2022-09-10 11:39:40 +02:00
Gerhard Stöbich 67f7e70a3d
chore: update API to 0.18.0 (#1977) 2021-03-01 08:30:13 -05:00
Nev 62f8695d3f
feat(diag-logger): part 2 - breaking changes - remove api.Logger, api… (#1925) 2021-02-17 15:46:27 -05:00
Gerhard Stöbich 65277da18d
chore: update to typescript 4.1 and gts 3 (#1890) 2021-02-03 11:53:25 -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
Matthew Wear 240f852cc4
feat: add global error handler (#1514) 2020-10-07 15:45:37 -04:00
Daniel Dyla be9d552b16
chore: ensure attributes are spec compliant (#1488) 2020-09-21 17:13:14 -04:00
Naseem cf0049478c
feat: add OTEL_LOG_LEVEL env var (#974) 2020-07-27 15:19:57 -04: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
Olivier Albertini d6b2e62a76
fix: change loglevel for beta (#856)
* fix: change loglevel for beta

closes #578

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>

* test: update to  new default LogLevel

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2020-03-13 10:41:25 -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
Mayur Kale b1255217a6
feat: tslint rules for license headers (#258) 2019-09-13 15:20:53 -07:00
Mayur Kale f4ed3f28f5
feat(sdk): add console logger (#203)
* feat: add console logger

* fix: review comments
2019-08-26 09:17:28 -07:00
Dave Raffensperger ce8446dc33 Move Node/browser specific code to platform folder, add browser tests (#84)
* Setup `platform` folder and add browser tests

* Add @types/webpack-env to fix TS compile error

* Add CHROME_BIN environment variable for CircleCI

* Use the Node 12 with browsers CircleCI image
2019-07-08 12:01:51 -07:00
Mayur Kale be3321d38b
Minor Fix (#76)
* Minor fix

* Remove Codecov from empty packages
2019-07-02 15:57:16 -07:00