All notable changes to this project will be documented in this file.
- Support for B3 propagation with new
@opencensus/web-propagation-b3
package 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-all
to@opencensus/web-scripts
so 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-load
to instrument with only the initial page load module,@opencensus/web-instrumentation-zone
to instrument it with all the OC Web functionality plus theZone.js
library and@opencensus/web-instrumentation-zone-peer-dep
also exports all the functionality butZone.js
is a peer dependency. -
Implementation of User interaction tracing monkey-patching the
Zone.js
library. 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/core
package version0.0.13
. - Package upgrades
- Add support for object(
SpanOptions
) as an argument forstartChildSpan
function, similar tostartRootSpan
. - Please note that there is an API breaking change in methods
addMessageEvent()
. The fieldid
is 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/core
package of opencensus-node - Initial
Tracer
andSpan
implementations. 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
traceparent
global 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.