Gerhard Stöbich
54879ab3d6
chore(plugin-https): sync https tests with http ( #597 )
...
* chore(plugin-https): sync https tests with http
* chore: use Http instead typeof http
* chore: review finding, improve https detection
* chore: fix node 8
* chore: fix path to test files
2019-12-10 11:21:27 -05: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
8567061992
feat(plugin-https): patch https requests ( #379 )
...
* feat(plugin-https): patch https requests
closes #375
add tests
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
* docs(plugin-https): add jaeger image
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
* fix: add mayurkale22 recommendations
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
* fix: add markwolff recommendations
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
* fix: file name utils
* fix: add danielkhan and bg451 recommendations
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-10-03 14:43:09 -07: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
f82a2d8acd
feat(plugin-http): handle aborted request ( #365 )
...
closes #364
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-09-30 08:08:57 +02: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
013a1e4d4f
fix: change options to config based on BasePlugin ( #314 )
...
closes #313
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-09-24 11:11:20 -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
7fc72dc2b0
chore: rename node-tracer to node-sdk ( #266 )
...
* chore: rename node-tracer to node-sdk
* fix: build
2019-09-18 23:28:46 -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
Valentin Marchaud
4ff14da8ed
tests: use node-tracer scope manager instead of creating one ( #271 )
2019-09-18 17:08:01 +02: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
Olivier Albertini
260a5e6b1d
refactor(http-plugin): use SpanProcessor for tests ( #244 )
...
* refactor(http-plugin): use SpanProcessor
Remove TracerTest
Remove SpanAuditProcessor
Closes #209
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
* refactor: add mayurkale22 recommendations
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-09-11 09:58:20 -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