Commit Graph

458 Commits

Author SHA1 Message Date
Daniel Dyla e5e7179d10
chore: remove stackdriver trace exporter (#859) 2020-03-13 23:12:18 -04:00
Mayur Kale e31b975675
Update core README with Built-in Implementations (#857)
* Update core README with Built-in Implementations

* fix link

* remove desc
2020-03-13 17:03:32 -07:00
Gianluca Arbezzano ab9d48e6f2
fix: removed pkg otel-api because imported twice (#860)
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>
2020-03-13 15:28:02 -07:00
Daniel Dyla 9a3fd7b560
Rename scope to context (#853) 2020-03-13 15:01:07 -04:00
Mayur Kale 6b9d3afff9
chore: update out-of-date dependencies (#858) 2020-03-13 11:32:05 -07:00
Olivier Albertini d6b2e62a76
fix: change loglevel for beta (#856)
* fix: change loglevel for beta

closes #578

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

* test: update to  new default LogLevel

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2020-03-13 10:41:25 -07:00
Daniel Dyla 11be782e10
Rename formatter to propagator (#851)
* chore: rename formatter to propagator

* chore: lint

* chore: last few formatter renames

* chore: remove test of removed function

* chore: remove unused imports
2020-03-13 09:22:59 -07:00
Mayur Kale 4627892c4a
export resource to exporters (#843)
* export resource to exporters

* update Zipkin and Stackdriver exporter to use Resource

* chore: remove redundant dependency

* update Collector exporter to use Resource

* rebase with #846

* minor

* fix collector resource

* fix build
2020-03-12 16:03:03 -07:00
Daniel Dyla 02c1d66b76
chore: update examples to use register (#848) 2020-03-12 16:50:22 -04:00
Mayur Kale c8421172f5
Remove Leftover configs (#850)
* Add DEFAULT_SDK_REGISTRATION_CONFIG

* remove DEFAULT_SDK_REGISTRATION_CONFIG

* fix: build
2020-03-11 16:52:47 -07:00
Matthew Wear abd191bef3
SDK Resource (#846)
* feat: add Resource.empty() method

* feat: add resource to BasicTracerProvider and assign to Spans

* feat: add Resource.createLibraryResource method

* refactor: rename LIBARY_RESOURCE -> TELEMETRY_SDK_RESOURCE

* feat: add resource to ReadableSpan interface

* feat: add Resource to NodeTracerProvider

* feat: add Resource to WebTracerProvider

* refactor: move resource-assertions

* feat: add Resource to instruments

* refactor: add SDK_INFO to core; simplify SDK resource creation

* chore: docs and cleanup

* docs: no need to update the copyright

* chore: move resources to devDependencies where applicable

* refactor: add resource to TraceConfig

* refactor: add resource to MeterConfig

* refactor: change resource visibility on Meter

* refactor: move resource-assertions to test/util
2020-03-11 13:41:22 -07:00
Mayur Kale 69d738c21b
Simplify Basic Tracer example (#842)
* Simplify Basic Tracer example

* fix: review

* end span separately
2020-03-10 16:42:46 -07:00
Gerhard Stöbich 7498ae60be
feat: introduce ended property on Span (#625)
* feat: introduce ended property on Span

Add a getter to Span and ReadableSpan to allow checking if the span is
ended without using a private field or rely on internals like
span.duration[0] < 0.

Refs: https://github.com/open-telemetry/opentelemetry-java/pull/693
Refs: https://github.com/open-telemetry/opentelemetry-java/pull/697

* chore: adapt after merge from master

* chore: revert changes in API

* chore: remove unneeded isEnded
2020-03-10 17:43:17 -04:00
Mayur Kale 3171946efb
chore: move Beta v1 release date target to 3/16 (#847)
* chore: move Beta v1 release date target to 3/16

* Move OpenCensus Bridge to unknown release date
2020-03-10 12:13:10 -07:00
Daniel Dyla ac2dbddc95
Rename api init methods to set (#839) 2020-03-10 11:00:17 -04:00
Daniel Dyla 5883e4e178
Simplify SDK registration (#837) 2020-03-10 08:39:05 -04:00
Mayur Kale cd59fcc2a4
chore: fix typos (#844) 2020-03-06 15:28:43 -08:00
Gerhard Stöbich 3c41f564a8
fix: change SpanContext.traceFlags to mandatory (#818)
* fix: change SpanContext.traceFlags to mandatory

According to spec SpanContext represents the W3C tracestate which
includes traceId, spanId and traceFlags.

As a side effect a new LinkContext types was added as links don't
have traceFlags according to spec.

* chore: review findings, rename TraceFlags.UNSAMPLED to NONE

* fix: build

* fix: tests

* fix: correct merge

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-03-06 08:40:13 -08:00
Daniel Dyla 5c4c57e498
Add getter and setter arguments to propagation API (#827)
* feat: add getter and setter arguments to propagation API

* chore: add getter and setter to composite propagator
2020-03-05 14:01:28 -05:00
Mayur Kale d16c691dbe
feat: metric observer (#828)
* feat: metric observer

* chore: update after review

* chore: reviews

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-03-05 09:23:47 -08:00
Daniel Dyla 151106a047
feat: add composite propagator (#821)
Co-authored-by: Olivier Albertini <olivier.albertini@montreal.ca>
2020-03-04 13:52:19 -05:00
Mayur Kale fd9c7ab86b
rename DistributedContext to CorrelationContext (#834) 2020-03-04 10:43:11 -08:00
Mayur Kale 1b214641bb
chore: fix usage instructions from READMEs (#836) 2020-03-04 08:48:40 -08:00
Gerhard Stöbich 4127913d28
chore: remove SpanOptions.isRecording (#817)
Remove SpanOptions.isRecording as it seems to be quite useless and I found
only Span.isRecording in spec.

Also Java seems to have no such option for span creation.
2020-03-04 08:10:57 -05:00
Daniel Dyla 5a5b6b8ffe
Faster trace id generation (#824) 2020-03-03 16:14:48 -05:00
Mayur Kale 86ce078558
chore: fix Prometheus Exporter Readme (#832) 2020-03-03 10:22:24 -08:00
Bartlomiej Obecny b4cfde3368
chore: adding force flush to span processors (#802)
* chore: adding force flash to span processors

* chore: fixing merge

* chore: fixing merge

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-03-03 10:08:20 -08:00
Mayur Kale cf93906a9b
chore: update config cache paths (#826) 2020-03-03 12:10:22 -05:00
Mayur Kale 890926f516
chore: export Aggregator and LabelSet (#831)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-03-03 08:43:35 -08:00
Mayur Kale f2e18d50f4
chore: rename file registry to provider (#825) 2020-03-02 23:06:01 -08:00
Bartlomiej Obecny df8a9abd1d
chore: leftovers from merge (#830) 2020-03-02 19:51:58 -08:00
Daniel Dyla 3c60157e07
feat: use context-based tracing (#816)
* feat: use context-based tracing

* chore: use withSpan where possible

* chore: propagate context in tests

* chore: allow spanoptions to override parent from context
2020-03-02 13:47:35 -05:00
Matthew Wear 3818515501
Resources API: package, semantic conventions, and test utils (#815)
* chore: extract resources into their own package

* feat: resource values can be numbers, strings, or booleans

* feat: add constants for resource semantic conventions

* feat: test utilities for validating resources

* docs: improve docs

* fix: lint errors

* fix: test issues

* Update packages/opentelemetry-resources/LICENSE

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

* docs: fix typos

* docs: fix formatting for multi-line comments

* chore: remove unused dependency

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-03-02 10:13:23 -05:00
Mayur Kale a34d03a8f1
chore: remove binary propagator (#804)
* chore: remove binary format

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-02-27 09:56:31 -05:00
Daniel Dyla e2f971dfef
Add propagation API (#797) 2020-02-26 08:29:27 -07:00
Mayur Kale 0c124719eb
fix: prometheus example (#813)
* fix: prometheus example

* update README
2020-02-25 14:22:20 -08:00
Mayur Kale e8284b3735
chore: update Release Schedule (#801)
* chore: update Release Schedule

* chore: target -> Release
2020-02-25 14:07:37 -08:00
Mayur Kale c87e521255
chore: add @todo tests (#809) 2020-02-25 09:28:27 -08:00
Valentin Marchaud d8d6affaa1
docs: add example for express plugin #800 (#810)
* docs: add example for express plugin #800

* chore: add link to express example in plugin's readme

* chore: addres PR's comments
2020-02-25 09:04:52 -08:00
Valentin Marchaud df225e022d
docs: add example for express plugin #800 (#810)
* docs: add example for express plugin #800

* chore: add link to express example in plugin's readme

* chore: addres PR's comments
2020-02-25 09:04:10 -08:00
Olivier Albertini 11719381d8
ci(circleci): add node13 for tests (#805)
closes #458

Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
2020-02-24 11:51:42 -08:00
Mayur Kale 03bf1917dd
plugin(grpc): use HttpTextFormat instead of Binary propagator (#762)
* feat: update HttpTraceContext for gRPC metadata

* keep textformat interface intact

* update the usage based on new implementation

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-02-22 10:27:39 -05:00
Bartlomiej Obecny 12570c9e02
chore: aligning names for npm linting scripts (#807)
* chore: aligning names for npm linting scripts

* chore: grouping lint scripts together
2020-02-21 11:24:35 -08:00
Daniel Dyla 5228dfa6cf
Respect sampled bit in probability sampler (#798) 2020-02-20 17:25:03 -05:00
Daniel Dyla 5fc957673e
Add context API (#792)
* chore: add context API
2020-02-20 15:20:45 -05:00
Mayur Kale 28b9b744da
remove getDefaultBound and setCallback from Metric API (#793) 2020-02-20 08:02:48 -08:00
Valentin Marchaud 5e0d2c9749
feat: add express plugin #666 (#685)
* feat: add express plugin #666

* feat: set http.route attribute on http server span if possible

* feat: add config to ignore express layers

* chore: add documentation about express layer store
2020-02-20 09:14:57 -05:00
Mayur Kale cdec5574d4
chore: clear Prometheus todo and rename ReadableMetric -> MetricRecord (#799) 2020-02-19 21:47:59 -08:00
Mayur Kale 6616bb1791
remove Gauge instrument (#791)
* remove Gauge instrument
2020-02-19 07:50:14 -05:00
Daniel Dyla 218b2909bb
chore: lint api package (#771)
Co-Authored-By: Mark Wolff <marwolff@microsoft.com>
2020-02-18 17:28:07 -05:00