Commit Graph

13 Commits

Author SHA1 Message Date
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
Gerhard Stöbich 811d7a686b fix(plugin-http): correct handling of WHATWG urls (#589)
* fix(plugin-http): correct handling of WHATWG urls

Add parsing and conversion of WHATWG URL objects for client http
requests to ensure semantics of HTTP request are not modifed and
tracestate header is correctly added.

* chore: review findings

* chore: fix review finding

* chore: check options.port instead optionsParsed.port

* chore: fix lint, rename getResponseCb to onGetResponseCb

* chore: improve readablilty

* chore: remove import of https
2019-12-06 09:35:30 -08:00
Olivier Albertini 52d3dc32b6 fix(plugin-http): ensure no leaks (#398)
* fix(plugin-http): ensure no leaks

closes #397

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

* fix: add @Flarna recommandations

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-10-11 11:51:29 -07:00
Daniel Khan a411313cb3
Refactor: Consistent package naming and structure (#413)
* fix(http-plugin): move node-sdk to dev deps

* refactor: rename opentelemetry-sdk-base

* refactor: rename opentelemetry-tracer-basic

* refactor: rename opentelemetry-node-sdk

* docs: update readme

* docs: update readme

* refactor: rename opentelemetry-tracer-web

* fix: styling

* fix: doc consistency

* fix: sliiped in typo

* fix: postgres and doc
2019-10-08 22:01:47 +02:00
Olivier Albertini 9d9691f57a refactor(plugin-http): remove utility class container (#391)
closes #345

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-10-02 11:15:37 -07:00
Olivier Albertini f3f25dc9a2 feat(plugin-http): handle client errors (#374)
* feat(plugin-http): handle client errors

closes #347

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

* fix: handling error in line with spec

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-10-01 11:54:18 -07:00
Mayur Kale 75a329776a
chore: rename opentelemetry-basic-tracer -> opentelemetry-tracer-basic (#380) 2019-10-01 10:27:11 -07:00
Olivier Albertini 700502603d test(plugin-http): increase coverage (#371)
closes #370

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-09-29 02:29:12 +02:00
Olivier Albertini 4e9d0824f5 fix: dont trace ourselves (#335)
* fix: dont trace ourselves

closes #332

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

* fix: add mayurkale22 recommendations

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-09-27 15:17:05 +02:00
Olivier Albertini cee42d8a97 fix(plugin-http): improve formatting for url attribute (#317)
closes #316

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-09-23 16:01:45 -07:00
Olivier Albertini ce2bc95f75
fix(http-plugin): ensure exceptions are handled (#273)
* fix(http-plugin): ensure exceptions are handled

refactor(test): remove unnecessary code
add tests
closes #222

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-09-20 14:13:26 -04:00
Mayur Kale b1255217a6
feat: tslint rules for license headers (#258) 2019-09-13 15:20:53 -07:00
Olivier Albertini 3f90bf97dc feat(plugin): add http plugin (#161)
* feat(plugin): add http plugin

Closes #157

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

* fix: integrate vmarchaud recommandations

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

* fix: wip revert - gts fix issue on all packages

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

* fix: integrate mayurkale22 recommendations

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

* ci: gts fix for ci build

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

* refactor: add mayurkale22 recommendations

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

* fix: integrate bg451 recommendations

test: increase coverage
fix: attributes requirements from the spec.

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

* fix: add missing header and revert scopeManager to private field

test: rename some tests
fix: copy/paste tests

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

* fix: add tests and improve attributes from spec

fix parentSpanId instead of parentId from rebase
add workaround with got and node12+ (real http call)
improve args passed to function (url, options, cb)

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

* fix: add mayurkale22 recommendations

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

* fix: rebase and remove/replace wrapEmitter to bind

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

* fix: add Flarna recommendations

fix: add Flarna recommendations
fix: tests
fix: OC bugs in OT only
test: add assertions
Allow options object as second argument

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

* refactor: simplify propagation usage

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

* fix: add Flarna recommandations

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

* refactor(test): use ReadableSpan

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

* feat: export class/enums for https module

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

* refactor: plugin.enable has logger param

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

* fix: add license header, rename enum files and refactoring

refactor: make integration tests mandatory for ci only
remove duplicate tests
remove dead comments

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-08-30 15:28:45 -07:00