Commit Graph

275 Commits

Author SHA1 Message Date
Daniel Dyla bbc424dd85 chore: add prometheus example (#560)
* chore: add prometheus example

* Update examples/prometheus/index.js

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

* Apply suggestions from code review

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

* fix: typo in prometheus example

Ensure monotonic gauge always counts up
2019-11-25 14:13:03 -08:00
Nina Stawski b048bb9ae1 chore(web-example): Added a README for the existing example (#562)
* Added a README for the existing example

* Fixed typo

* A few updates to the README

* A few updates to the README

* Changed the link to point to the  instead of tracing

* Update examples/tracer-web/README.md

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

* Updated tracing to web
2019-11-21 11:49:28 -08:00
Mayur Kale e8abddbb07
examples(tracing): add multi exporter example (#537)
* docs: add multi exporter example

* chore: add script and update readme
2019-11-19 10:47:54 -08:00
Bartlomiej Obecny 3d01be67fd feat(scope-zone): new scope manager to support async operations in web (#461)
* feat(scope-zone): new scope manager to support async operations in web

* chore: removing not needed dependency

* chore: updating readme

* chore: clean up

* chore: refactored the bind method

* chore: updated example for web tracer

* chore: updated readme

* chore: updating jsdoc

* fix: fixing flaky test for BatchSpanProcessor with timeout

* chore: missing link

* chore: updating karma files

* chore: adding docs and tests for utils

* chore: refactoring zone scope manager

* chore: adding test for web and zone scope manager for parallel actions

* chore: updating example for web tracer with zone scope manager

* chore: updating example for web tracer with zone scope manager

* chore: adding test for parallel run
2019-11-11 08:53:13 -08:00
Bartlomiej Obecny 4f48357b7d feat(traceparent): setting parent span from server (#477)
* feat(traceparent): setting parent span from server

* chore: exposing the parse functionality

* chore: refactored to use existing functionality

* chore: adding jsdoc to exported function

* chore: updating readme with example for traceparent

* chore: moving the traceparent to meta instead of window

* chore: updating the jsdoc

* chore: updating the copy as suggested
2019-11-08 13:08:21 -08:00
Mayur Kale 7e1cdd5c45
chore: 0.2.0 release proposal (#479) 2019-11-04 12:07:59 -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 ee1533a957
gRPC example using proto-loader (#385)
* chore: gRPC example using proto-loader

* chore: gRPC example using proto-loader

* fix: review comments

* fix: we use latest OT package versions
2019-10-18 15:31:29 -07:00
Mayur Kale aab87a2e81
chore: post release update examples, README (#436)
* chore: post release update examples, README

* fix: update remaining files
2019-10-18 15:04:45 -07:00
Olivier Albertini 502f9e46b9 feat(plugin-dns): add lookup patches (#424)
* feat(plugin-dns): add lookup patches

ref: #423
add docs
add example
include promise patch for lookup

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

* fix: add mayurkale22 recommendations
2019-10-16 12:06:18 -07:00
Olivier Albertini 1d672e0636 docs: fix broken links (#428)
closes #427

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2019-10-15 10:49:36 -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
Bartlomiej Obecny 82b5fad03f Tracer web (#334)
* feat(tracer-web): adding tracer web

* feat(basic-tracer): adding karma tests

* feat(tracer-web): adding some example for easier debugging in browser - for development purposes

* fix: lint

* fix: creating base for karma

* fix: fixing problem with target for browser, cleanup tests

* refactor: moving polyfills for node karma tests to one file

* fix: adding missing package

* refactor: removing unneeded file

* refactor: prefixing privates, cleanup

* fix: duplicate package

* refactor: aligning tslint with other tslint packages

* refactor: cleanups, adding comments for class

* fix: linting

* fix: type

* refactor: generation of id for scope

* refactor: removed previous uid for scope as originally it was meant to be used with async which is not the case anymore

* chore: adding test for restoring scope

* fix: lint

* refactor: simplifying the stack scope manager

* chore: updating readme with basic example

* chore: fixes after merge

* fix: updating test to accept greater or equal - fails on browser

* refactor: moving example for web tracer

* refactor: removing WebTracerConfig to use BasicTracerConfig which changed recently

* chore: updating types

* chore: spacing

* chore: removing mocha tests for tracer-web

* chore: updating types and linting

* chore: updating packages after merge

* chore: adding nyc report for karma tests for browser

* chore: updating lerna script to run coverage for browsers

* feat(tracer-web): bump version to 0.1.0
2019-10-07 11:08:55 -07: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
Daniel Khan 32572c6c5c Bump version to 0.1.0 (#388)
* fix(http-plugin): move node-sdk to dev deps

* chore: nump version of all packages to 0.1.0

* fix: update interdependencies and tests

* fix: styling
2019-10-03 09:41:31 -07:00
Mayur Kale 42a0e265b3
fix(example): add flushInterval to report spans to Jaeger exporter (#383) 2019-10-02 09:37:11 -07:00
Mayur Kale 75a329776a
chore: rename opentelemetry-basic-tracer -> opentelemetry-tracer-basic (#380) 2019-10-01 10:27:11 -07:00
Mayur Kale b0f3d3e6b4 fix(jaeger): assign correct scope for flush operation (#378) 2019-09-30 16:17:29 -04:00
Daniel Khan 28ca1f6a37
chore: Docs wording and example for basic-tracer (#361)
* docs: docs and example for basic-tracer

* chore: rename to node-basic-tracer for clarity

* chore: rename again to basic-tracer-node

* docs: update docs and example
2019-09-28 02:26:19 +02:00
Daniel Khan bd5f7c839f
chore: add examples folder to lerna (#360)
* chore: add examples folder to lerna

* fix: add private to package.json files in examples
2019-09-28 01:40:05 +02:00
Mark Wolff 0aa4fb57ef docs(grpc): add grpc example (#326)
* docs(grpc): add grpc example

* docs(readme): add zipkin ui image

* fix: typos, add local images, refactor

* fix: typo
2019-09-26 09:35:16 -07:00
Mayur Kale d85ee8813b
chore: update HTTP Readme (#343) 2019-09-26 09:12:40 -07:00
Olivier Albertini af06a2da60 feat(plugin-http): add example (#318)
* feat(plugin-http): add example

closes #245

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

* refactor: removes duplicated code

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

* fix: exporter variable

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

* docs: add image for jaeger

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

* chore: remove todo
2019-09-25 13:36:28 -07:00
Mayur Kale 03cbd00f2b feat: update example with Jaeger exporter (#283) 2019-09-18 19:41:36 -04:00
Mayur Kale 45be4b524e
chore: add basic tracer example (#277) 2019-09-18 10:38:51 -07:00