All notable changes to this project will be documented in this file.
- Support for B3 propagation with new
@opencensus/web-propagation-b3package and the ability to pass it in viastartTracing({ propagation: Propagation }). Thanks @edvinasbartkus!
- Fixed TypeError in Safari, thanks @backjo (#167)
- Fixes to interaction tracker.
- Service name can be specified via window variable, thanks @Blightwidow
- Fixes to automated NPM publish script.
-
Rename
@opencensus/web-allto@opencensus/web-scriptsso now this package is only in charge of bundling OC Web to allow importing it as <script> tag. -
To use OC Web as an npm dependency, there are several options:
@opencensus/web-initial-loadto instrument with only the initial page load module,@opencensus/web-instrumentation-zoneto instrument it with all the OC Web functionality plus theZone.jslibrary and@opencensus/web-instrumentation-zone-peer-depalso exports all the functionality butZone.jsis a peer dependency. -
Implementation of User interaction tracing monkey-patching the
Zone.jslibrary. This includes some features like: automatic tracing for click events and route transitions, custom spans, automatic spans for HTTP requests and Browser performance data, relate user interaction traces back the the initial page load trace and sampling.
- Support custom end time for span (#95), thanks @skjindal93
- Upgraded types to match
@opencensus/corepackage version0.0.13. - Package upgrades
- Add support for object(
SpanOptions) as an argument forstartChildSpanfunction, similar tostartRootSpan. - Please note that there is an API breaking change in methods
addMessageEvent(). The fieldidis now number instead of string.
Fix: add JS bundles and source maps to the NPM files for @opencensus/web-all
(#66), which were incorrectly not included before. This enables linking the JS
bundles in <script> tags via the unpkg.com or jsdelivr.com CDNs for NPM files.
- TypeScript interfaces and enums extracted from the
@opencensus/corepackage of opencensus-node - Initial
TracerandSpanimplementations. The tracer only supports a single root span at a time within a browser tab. - Exporter to write traces to the OpenCensus Agent via its HTTP/JSON feature.
- Instrumentation to generate trace spans for the resource timing waterfall of an initial page load.
- Option to link the initial HTML load client span with its server-side span by
having the client write a
traceparentglobal variable in trace context W3C draft format. - WebPack build scripts to generate JS bundles to enable adding instrumentation of the initial page load spans and exporting them to the OpenCensus agent.