Commit Graph

7 Commits

Author SHA1 Message Date
Daniel Dyla 9a3fd7b560
Rename scope to context (#853) 2020-03-13 15:01:07 -04:00
Daniel Dyla ac2dbddc95
Rename api init methods to set (#839) 2020-03-10 11:00:17 -04:00
Daniel Dyla 3c60157e07
feat: use context-based tracing (#816)
* feat: use context-based tracing

* chore: use withSpan where possible

* chore: propagate context in tests

* chore: allow spanoptions to override parent from context
2020-03-02 13:47:35 -05:00
Daniel Dyla d2e96ba3f9
chore: rename registry to provider (#749)
* chore: rename registry to provider

* chore: revert changelog modification

* chore: remove examples and getting started from rename
2020-02-03 10:36:12 -08: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
Daniel Dyla 18c6aa4f19 Named Tracers / Tracer Registry (#582)
* feat: spike of named tracer registry

* chore: mysql/mongo tracer registry support

* fix: lint

* chore: add getTracer back

* chore: change default tracer name to empty string

* fix: lint

* chore: update examples for registry

* chore(tracer-registry): make name required

* chore: lint

* chore: update examples for required tracer name

* chore: remove unused tracer delegate

* chore: remove references to basic tracer

* chore: remove references to NodeTracer

* chore: update xhr for tracer registry

* chore: update tracer names to match package names

* chore: add version script to all packages

* chore: update plugins to use version script

* chore: add jsdoc to noop tracer registry

* chore: update ioredis for tracer registry

* chore: update pg pool for tracer registry

* fix: lint

* chore: fix tests

* chore: lint

* chore: lint

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-01-09 08:29:38 -08:00
Naseem 3ca2df4ac3 Add ioredis (#558)
* Add ioredis

* remove unused util

* Console error when callback cannot be found in command object

* fix

* There never seems to be a this.address

* err can be made non-optional here since it is currently always passed in

* No address property

* Update packages

* Adjust value of DB_STATEMENT

* Add DB_TYPE attribute

* Handle async/await ioredis commands that have no cb

* Fix promise handling and adjust attributes

* Use template literal

* Add same comments as pg plugin for promise handling

* Use endSpan  function

* fix: combine 2 lines into 1

* chore: update modules

* fix: tests

* style: rename error

* docs: update min version

* fix: nullish coalescing

* Revert "fix: nullish coalescing"

This reverts commit 16a1f40244.

* fix: make DB_TYPE a const

* fix: update links

* fix: move ioredis to dependencies, update @types/ioredis

* fix: add a comment about nullish coalescing

* fix: move done from try/catch to finally

* fix: gts fix

* fix: callback type

* style: move cb tests up

* fix: gts

* fix: remove unused code

* fix: update ts-node

* fix: nested cb for cb style call tests

* fix: prevent span leaking with better if statement, add else

* fix: remove unneeded || undefined

* fix: ioredis as dev dependency

* fix: do not return a new promise, end span in .then handler

* fix: if statement

* fix: guard against args not being an array

* fix: tests

* Update packages/opentelemetry-plugin-ioredis/README.md

Reword sentence to read better

Co-Authored-By: Daniel Dyla <dyladan@users.noreply.github.com>

* docs: remove sentence from Usage section

* fix: remove unecessary check, rename functions

* fix: rename functions

* fix: port type is number

* docs: add link to available options

* fix: always convert string port to number

* fix: improve inherit options type from ioredis types

* fix: options always exists

* fix: options is always there and all we need

* test: streamify scanning

* test: lua

* test: cb tests were flawed

* fix: trace cb invocations properly

* refactor: same code handles cb and promise style invocations

* fix: update packages

* fix: db statement format

* test: add pipeline test

* fix: allow arguments to be greater than 1

* fix: gts

* test: trace client connection/disconnection

* feat: trace connection

* test: pubsub

* fix: quit instead of disconnect

* fix: update packages

* feat: use test-utils package

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
Co-authored-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-12-24 08:58:50 -05:00