Commit Graph

458 Commits

Author SHA1 Message Date
Xiao 25d1028ab3 chore: fix pg-pool test env (#706) 2020-01-17 15:54:11 -05:00
Daniel Dyla 82828b7fa9 feat: stackdriver trace exporter (#648)
* feat: stackdriver trace exporter

* Update packages/opentelemetry-exporter-stackdriver-trace/README.md

Co-Authored-By: Mayur Kale <mayurkale@google.com>

* chore: undo changes to basic tracer example

* chore: remove dependent type from sdt export

* chore: make properties readonly

* chore: remove throw

* chore: document unused types

* chore: remove unused type

* fix: lint

* feat: infer google application credentials

* chore: move stackdriver trace to its own example

* chore: missing service name is actually fine

* chore: add link to stackdriver trace example

* test: add tests for transformer

* test: add tests for stackdriver trace export

* test: speed up tests

* chore: update agent label version

* chore: update test

* fix: lint

* fix: lint

* chore: update example

* chore: remove service name

* chore: fix tests

* chore: remove serviceName from readme

* chore: fix lint

* chore: review comments

* chore: review comments

* chore: add screenshot of stackdriver trace

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-01-16 13:22:59 -08:00
Daniel Dyla 0d73dd7113
chore: fix compilation (#705) 2020-01-16 15:41:30 -05:00
Daniel Dyla 33098e2929 chore: add missing semver type dependency (#702) 2020-01-16 09:16:37 -08:00
Mayur Kale 349674480e
chore: skip david-dm.org url from docs-test (#660)
* chore: skip david-dm.org url from docs-test

* chore: revert versiont

* minor
2020-01-13 15:22:59 -08:00
Mayur Kale ebe0b1d874
chore: update date for v0.4 (#677)
* chore: update date for v0.4

* chore: update date for v0.4
2020-01-13 11:56:39 -08:00
Mayur Kale 49824c2120
chore: upgrade ts-node version to ^8.6.2 (#687)
* chore: upgrade ts-node version to fix the build

* chore: upgrade ts-node in test-utils package
2020-01-13 11:44:36 -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
Nina Stawski 059595a215 chore(getting-started): Added a TypeScript version for Getting Started Guide (#673)
* TS example for packages

* TS example for tracking

* Updated example for tracing with TypeScript

* upped the Prometheus version

* Initial fully working version of the TS getting started guide

* Updated separated guides for TS and JS

* Link to the TS guide

* Interlinked documents

* Interlinked documents fixed

* Interlinked documents fixed

* Interlinked documents fixed

* fixed initial links

* Style formatting

* Style formatting

* Style formatting

* Update getting-started/ts-example/README.md

Co-Authored-By: Mayur Kale <mayurkale@google.com>

* Update getting-started/ts-example/README.md

Co-Authored-By: Mayur Kale <mayurkale@google.com>

* Update getting-started/ts-example/README.md

Co-Authored-By: Mayur Kale <mayurkale@google.com>

* Pull review fixes

* Code cleanup

* Code cleanup

* Code cleanup

* Updated the package.json

* Typo fixes

* Typo fixes

* Added an example for Jaeger

* Code formatting

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-01-08 21:36:05 -08:00
Mayur Kale 7affa2b56e
chore: remove http2 skeleton (#676) 2020-01-08 12:11:51 -08:00
Bartlomiej Obecny 2bb847b606 chore: adding missing information about exporter-collector (#675) 2020-01-08 11:04:46 -08:00
Mayur Kale 1ef341070c
Code cleanup (#664)
* chore: remove unused MetricProducerManager & MetricProducer

* fix: typos
2020-01-07 09:46:34 -08:00
Mayur Kale 854256a9c0
feat: add pg-pool to default list of instrumented plugins (#662) 2020-01-06 10:07:14 -08:00
Mayur Kale 7124f5f819
chore(plugin-pg-pool): fix codecov path (#657) 2020-01-04 13:22:03 -08:00
Mayur Kale fda23b69c0
chore: post release: update CHANGELOG.md (#663) 2020-01-04 13:11:19 -08:00
Mayur Kale 3669648ef4
chore: 0.3.2 (patch) release proposal (#659)
* chore: 0.3.2 release proposal

* chore: bump getting-started/ version

* chore: generate version.ts for mongodb plugin after merge
2020-01-03 12:27:10 -08:00
Joshua Stupplebeen 6f0084f557 chore: rename Metric Handle to Bound Instrument (#634) (#638)
* chore: fix renames in metrics test

* chore: fix formatting

* chore: rename BaseInstrument to BaseBoundInstrument

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-01-03 12:14:58 -08:00
Valentin Marchaud 53c40c1201 feat: port mongodb-core plugin to mongodb #622 (#652)
* feat: port mongodb-core plugin to mongodb #622

* chore: address PR comments
2020-01-03 10:30:04 -08:00
Mayur Kale 6c98ab9fcf
chore: update default plugins list and fix npm badge (#646)
* chore: update default plugins list and fix npm badge

* fix: review comment

* chore: add ioredis to the list of default enabled plugins
2020-01-02 13:28:47 -08:00
Daniel Dyla b158cbeb3e chore: add version script to all packages (#651)
* chore: add version script to all packages

* chore: remove hard coded version string

* chore: move version update script to root

* chore: add version:update to package.json

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-01-02 10:46:57 -08:00
Olivier Albertini 3d9b8228b5 feat(plugin-http): add/modify attributes (#643)
* feat(plugin-http): add/modify attributes

closes #373, #394

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

* fix: change remotePort to localPort

refactor: remove useless checks
test: add assertions

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

* test(plugin-https): sync with http plugin

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

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-01-01 23:07:39 -08:00
Mayur Kale e859b8e930 chore: update plugin readme with example links (#647) 2019-12-27 08:58:24 -05:00
Mark Wolff 093a73826b chore(docs:postgres): add usage instructions (#539)
* chore(docs:postgres): add usage instructions

* docs: add pg-pool install

* docs: add pg-pool version

Co-authored-by: Valentin Marchaud <thisismac47@gmail.com>
2019-12-26 13:35:33 -05: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
Naseem 67d22567d4 feat: test-utils (#644)
* feat: test-utils

* fix: add check,fix scripts

* feat: use test-utils package in pg pool plugin

* feat: include assertionUtils in test-utils package

And use for redis and pg

* fix: install required packages

* fix: gts
2019-12-23 16:55:15 -08:00
Xiao c829a9c86f feat: add example for postgres plugin (#542)
* feat: add example for pg plugin

* fix: typos

* Update examples/postgres/README.md

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

* Update examples/postgres/client.js

Co-Authored-By: Olivier Albertini <olivier.albertini@montreal.ca>

* Update examples/postgres/server.js

Co-Authored-By: Olivier Albertini <olivier.albertini@montreal.ca>

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
Co-authored-by: Olivier Albertini <olivier.albertini@montreal.ca>
Co-authored-by: Mayur Kale <mayurkale@google.com>
2019-12-23 15:15:49 -08:00
Xiao 1a2d926e02 feat(plugin): pg-pool plugin implementation (#501)
* feat: pg-pool plugin implementation

* feat: pg-pool plugin implementation

* fix: linting

* fix: add attributes for span & add tests for pool.query()

* fix: add span.setStatus

* chore: address comments

* fix: linting

Co-authored-by: Mayur Kale <mayurkale@google.com>
2019-12-23 12:02:34 -08:00
Mayur Kale 38ce1c3eac
chore(plugin-pg): move dependencies to devDependencies (#645) 2019-12-23 11:46:23 -08:00
Mayur Kale 17ee64914b
chore(circleci): update cache paths (#640) 2019-12-23 09:58:21 -08:00
Mayur Kale 47563bebfe
chore: post release (#641) 2019-12-23 09:45:19 -08:00
Mayur Kale d8c85096c4
chore: 0.3.1 (patch) release proposal (#639)
* chore: 0.3.1 release proposal

* chore: npm run bootstrap
2019-12-20 15:45:34 -08:00
Daniel Dyla 3593a69d69 ci: deploy documentation on releases (#629)
* ci: deploy documentation on releases

* ci: only deploy docs on x.x.0 updates

* fix: remove personal email from ci

* chore: add docs-deploy script

Co-authored-by: Mayur Kale <mayurkale@google.com>
2019-12-20 10:37:43 -08:00
Mayur Kale 587a5f5f83
fix(grpc): patch original client methods (#631)
* fix(grpc): patch original client methods

* fix: review comments and build

* fix: add test
2019-12-19 22:31:55 -08:00
Bartlomiej Obecny bc583b8ac5 XMLHttpRequest (#595)
* feat(xml-http-request): new plugin for auto instrumentation for xml-http-request

* chore: new example for xml-http-request and updated examples structure for web

* chore: updating readme

* chore: linting

* chore: fixing origin for tests

* chore: linting

* chore: updating to use b3 format from core

* chore: updates after reviews

* chore: wrong function call

* chore: updating attribute names

* chore: linting

* chore: adding preflight requests, fixing few other issues

* chore: adding image to examples, updating readme

* chore: forcing async to be true, but propagate rest params

* chore: fixing type for open and send function

* chore: fixing format for headers

* chore: reviews

* chore: decrement task count when span exists

* chore: changes after review

* chore: adding weakmap for keeping information connected with xhr

* chore: renaming config param

* chore: not needed cast

* chore: updating title

* chore: refactored xhr, removed tracing dependency, few other issues fixed

* chore: reviews

* chore: refactored for collecting timing resources

* chore: fixes after merging

* chore: reviews

* chore: reviews

Co-authored-by: Mayur Kale <mayurkale@google.com>
2019-12-19 15:34:09 -08:00
Daniel Dyla e8db33acfb chore: enable incremental builds (#633) 2019-12-18 11:13:40 -08:00
Even af5a364efd feat: add OpenTracing example (#581)
* feat: add OpenTracing example

* fix: review comments

- Combine `Tracer` and `.init` to one line
- Use `setTimeout` to be consistent with other example
- Remove unused dependency
- Add missing keywords
- Update README
- Add missing `"use strict";`

* fix: review comments

- Update README
- Separate shim to another file

* fix: remove unnecessary file
2019-12-17 16:52:08 -08:00
Gerhard Stöbich 4b25d4a26f fix: transpile to es2017 as esnext may result in unsupported JS code (#593)
Transpile to es2017 to ensure compatiblity with Node.Js 8. Otherwise use of
e.g. the optional chaining operator ?. supported since typescript 3.7 results
in js not running on nodejs 8. Es2017 is the minimum to get native await support.
2019-12-16 14:07:31 -08:00
Mayur Kale 9458390b32
Post Release: update CHANGELOG, ReadMe (#619)
* chore: update CHANGELOG.md

* chore: update README, add npm version badge

* fix: npm-url
2019-12-14 14:41:11 -08:00
Mayur Kale 517f6d5a6b
chore: 0.3.0 release proposal (#599)
* chore: 0.3.0 release proposal

* chore: bump examples version and generate version.ts
2019-12-13 11:10:59 -08:00
Daniel Dyla b4ab8a557c Jaeger no flush interval (#609)
* fix: remove flush timer from jaeger exporter

* chore: remove deprecated flushInterval

* feat: force flush on each export

* chore: make export noop on empty span array

* chore: do not flush empty batch span processor
2019-12-13 09:56:28 -08:00
Olivier Albertini 9a91434cfc fix(plugin-dns): remove from default plugin list (#613)
closes #612

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-12-12 10:29:44 -08:00
Daniel Khan d32565acf8 Maintainers: Add dyladan, remove danielkhan (#607)
* chore: add dyladan remove danielkhan

* chore: removed formatting
2019-12-11 15:02:13 -08:00
Mayur Kale 6e22fd511c
chore(plugin-mongodb-core): add missing codecov script (#601)
* chore(plugin-mongodb-core): add missing codecov script

* fix(mongodb-plugin): check currentSpan against undefined

* chore(scope-managers): return undefined if no scope is found (following #569)
2019-12-10 10:41:29 -08:00
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
Mayur Kale daff102296
fix(jaeger-exporter): export SpanKind as Tag (#596) 2019-12-09 20:35:30 -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
Daniel Dyla 5ab4f13697 chore: add discussion issue type (#592) 2019-12-05 13:48:36 -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
Mayur Kale c14d12239b
chore: add CHANGELOG.md (#574)
* chore: add CHANGELOG.md

* chore: add CHANGELOG.md

* chore: add CHANGELOG.md
2019-12-03 11:07:46 -08:00
Daniel Dyla c2ddd0f01a chore: alias static labels (#576) 2019-12-02 14:08:21 -08:00