* chore: adding metric observable to be able to support async update
* chore: reviews
* chore: reviews
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
* chore: adding example for collector-exporter for node with opentelemetry-collector
* chore: fixing readme
* chore: fixing readme
* chore: using fixed version of global gts for circle ci
* chore: cleaning up docker config
* chore: aligning global packages version to those used in project
* chore: adding example for collector-exporter for node with opentelemetry-collector
* chore: testing circle ci
* chore: trying to fix circleci
* chore: trying to fix circleci
* chore: trying to fix circleci
* chore: trying to fix circleci
* chore: trying to fix circleci
* chore: trying to fix circleci
* chore: trying to fix circleci
* chore: updating circle ci gtc command name
* chore: reviews
* chore: lint
* chore: fixing documentation for web tracer provider, fixing examples for web, enable manager when registering
* chore: fixing span extraction from zone after context updates
* chore: bump
I doubt it's the cause of any trouble but I saw that otel-api is
importend twice in package.json
Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
* chore: rename formatter to propagator
* chore: lint
* chore: last few formatter renames
* chore: remove test of removed function
* chore: remove unused imports
* chore: rename provider in examples and getting started
* chore: update examples, bench, and getting started for api
* chore: update examples for latest changes
* chore: lint examples
* chore: fix typos and minor README
* Update packages/opentelemetry-core/README.md
Co-Authored-By: Daniel Dyla <dyladan@users.noreply.github.com>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
* docs: add ioredis example
* refactor: simplify example
* fix: ioredis example
* fix: tracerRegistry not tracer
* fix: test only with set command
* fix: only use Jaeger as backend
Signed-off-by: Naseem <naseem@transit.app>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
* refactor: use a single eslintrc for all examples folders
furthermore, override the strict rule that ships with airbnb
* fix: turn off no-use-before-define
* fix: install eslint in ci container
Co-Authored-By: Daniel Dyla <dyladan@users.noreply.github.com>
* fix: ignore uninstalled packages lint errors
We will not want to install all examples in CI
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
Co-authored-by: Mayur Kale <mayurkale@google.com>
* feat: implement named meter
* chore: update name provider to registry, remove 'default' name on MeterProvider
* chore: remove duplicated types import
* chore: address comments
* 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>
* 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
* 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
* 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
* fix: prometheus counters can only count up #553
* chore: review comments
* chore: uncomment fixed example
* fix: monotonic missing from proto
* fix: casing
* chore: set up mysql plugin
* feat: wip mysql plugin
* fix: lint
* feat(mysql-plugin): trace cluster pool queries
* chore: update attributes to match spec names
* feat(mysql): add query overloads
* test(mysql): add tests
* test(mysql): run tests in ci
* test(mysql): use environment for test params
* test(mysql): fix environment
* chore(mysql): set supported versions
* test(mysql): fix version number
* ci: fix build and add mysql to cache
* chore: pin @types/node to fix compile error
* ci: add mysql port to env
* test(mysql): increase coverage
* chore: add mysql to supported plugins list
* test: fix typo
* fix: reference to this module
rename plugin to thisPlugin to avoid confusion
* fix: lint
* test: add pool.getConnection tests
* Update examples/mysql/package.json
Co-Authored-By: Mayur Kale <mayurkale@google.com>
* docs: update mysql example
* chore: add redis to default plugins list
* chore: remove wip mysql plugin from defaults
* chore: add codecov script
* chore(mysql): add supported version to readme
* fix: lint
* chore: remove ts-ignore, set status ok
* chore: unwrap connections on next call after unwrap
* chore: updates from review comments
* ci: order envs
* chore: add mysql to default plugins
* chore: update README plugin list
* 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
* 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
* 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
* 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
* 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
* 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
* 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