You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
# OpenCensus Trace Context Format Propagation for Web Browsers
1
+
# OpenCensus Trace Context format propagation for web browsers
2
+
[![Gitter chat][gitter-image]][gitter-url]
2
3
3
-
OpenCensus Trace Context Format Propagation sends a span context on the wire in an HTTP request, allowing other services to create spans with the right context.
4
+
*For overview and usage info see the main [OpenCensus Web readme][oc-web-readme-url].*
4
5
5
-
This project is still at an early stage of development. It's subject to change.
6
+
OpenCensus Trace Context format propagation provides utilities to serialize and
7
+
deserialize a trace context header in the [W3C Trace Context][trace-context-url]
8
+
format.
6
9
7
-
See https://www.w3.org/TR/trace-context/ for details about the Trace Context
8
-
header format.
10
+
The library is in alpha stage and the API is subject to change.
11
+
12
+
## Usage
13
+
14
+
Currently the primary intended usage of OpenCensus Web is to collect
15
+
spans from the resource timing waterfall of an initial page load. See the
16
+
[OpenCensus Web readme][oc-web-readme-url] for details.
17
+
18
+
This package is currently used to deserialize the `window.traceparent` global
19
+
variable that the server can send back to the client to indicate the parent
20
+
trace context for the initial page load.
21
+
22
+
In the future we would like to support propagating trace contextspans for XHRs,
23
+
and this library could be used to also serialize a `traceparent` header to send
24
+
along to XHR calls.
25
+
26
+
## Useful links
27
+
- For more information on OpenCensus, visit: <https://opencensus.io/>
28
+
- For more about OpenCensus Web: <https://github.com/census-instrumentation/opencensus-web>
29
+
- For help or feedback on this project, join us on [gitter][gitter-url]
30
+
31
+
## License
32
+
33
+
Apache 2.0 - See [LICENSE][license-url] for more information.
0 commit comments