Commit Graph

5 Commits

Author SHA1 Message Date
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
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
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 5d6c99d126
Api separation (#727)
* feat: create an api package

* chore: update circle for new api package

* chore: bring back getTracer

* chore: add wrongly removed dev dependency

* chore: review comments

* chore: review comments

* chore: lint

* chore: export all noop implementations

* chore: update API README

* chore: ignore known working links that are not yet published

* chore: add jsdoc for getInstance calls

* chore: add jsdoc for private constructors

* chore: review comments

* chore: fix readme npm url

* chore: fix old readmes without registry

* chore: update api calling convention
2020-01-29 13:30:49 -08: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