@elastic/opentelemetry-browser 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/LICENSE +202 -0
- package/NOTICE.md +5765 -0
- package/README.md +22 -0
- package/build/elastic-otel-browser.js +11593 -0
- package/build/elastic-otel-browser.js.map +7 -0
- package/build/elastic-otel-browser.min.js +14 -0
- package/build/elastic-otel-browser.min.js.map +7 -0
- package/lib/bundle.js +8 -0
- package/lib/context.js +347 -0
- package/lib/detector.js +226 -0
- package/lib/index.js +6 -0
- package/lib/logging.js +67 -0
- package/lib/sdk.js +232 -0
- package/lib/semconv.js +68 -0
- package/lib/version.js +6 -0
- package/package.json +81 -0
- package/types/bundle.d.ts +1 -0
- package/types/context.d.ts +2 -0
- package/types/detector.d.ts +47 -0
- package/types/index.d.ts +1 -0
- package/types/logging.d.ts +9 -0
- package/types/sdk.d.ts +32 -0
- package/types/semconv.d.ts +58 -0
- package/types/version.d.ts +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# EDOT Browser
|
|
2
|
+
|
|
3
|
+
The Elastic Distribution of OpenTelemetry Browser (EDOT Browser) is a lightweight wrapper around the [OpenTelemetry SDK](https://opentelemetry.io/docs/languages/js) that makes it easy to get started using OpenTelemetry in your web applications, especially if you are using [Elastic Observability](https://www.elastic.co/observability) as your observability solution.
|
|
4
|
+
|
|
5
|
+
**See [the EDOT Browser docs](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/xxxxx) for details.**
|
|
6
|
+
Some direct links:
|
|
7
|
+
|
|
8
|
+
<!-- TODO: put the right URLs once we have them -->
|
|
9
|
+
|
|
10
|
+
* [Get started](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/xxxxx/setup)
|
|
11
|
+
* [Configuration](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/xxxxx/configuration)
|
|
12
|
+
* [Changelog / Release Notes](https://www.elastic.co/docs/release-notes/edot/sdks/xxxx)
|
|
13
|
+
* [Elastic Discuss forum](https://discuss.elastic.co/tags/c/observability/apm/58/rum) | [GitHub issue tracker](https://github.com/elastic/elastic-otel-rum-js/issues)
|
|
14
|
+
|
|
15
|
+
## How does EDOT Browser differ from the OpenTelemetry JS SDK?
|
|
16
|
+
|
|
17
|
+
EDOT Browser is very similar to the `@opentelemetry/auto-instrumentations-web` package from OpenTelemetry in its usage goal: a single-dependency that provides a simple path to zero-code instrumentation of web applications. In general, Elastic's goal is to contribute all SDK improvements upstream. That said, there are sometimes differences that are specific to Elastic (e.g. Elastic-authored additional instrumentations or specific configurations). Here is a concise list of differences:
|
|
18
|
+
|
|
19
|
+
- EDOT Browser, being a [distribution](https://opentelemetry.io/docs/concepts/distributions/) of the OpenTelemetry JS SDK, always adds the [`telemetry.distro.*`](https://opentelemetry.io/docs/specs/semconv/attributes-registry/telemetry/) resource attributes to identify itself.
|
|
20
|
+
|
|
21
|
+
<!-- TODO: this is valid after https://github.com/elastic/elastic-otel-rum-js/pull/44 is merged -->
|
|
22
|
+
- EDOT Browser defaults to [`OTEL_SEMCONV_STABILITY_OPT_IN=http`](https://opentelemetry.io/docs/specs/semconv/non-normative/http-migration/) such that telemetry from the `@opentelemetry/instrumentation-http` package will use stable HTTP semantic conventions by default. Upstream OpenTelemetry JS has [a tracking issue for the migration to newer HTTP semantic conventions](https://github.com/open-telemetry/opentelemetry-js/issues/5646) in its instrumentations.
|