Commit Graph

2 Commits

Author SHA1 Message Date
Purvi Kanal 9589d541ce
feat: browser support for exporter-trace-otlp-proto (#3208)
* add node & browser platform for exporter-trace-otlp-proto

* add browser support for proto base exporter

* add base browser class with xhr support

* add browser class for proto trace exporter

* slight tweaks to make it work

* send data as blob to avoid making sync xhr requests

* fix lint

* remove console.logs and add browser proto example

* cleanup and start adding tests

* Undo formatting changes

* exporter-trace-otlp-proto: fix compile errors

* Misc updates from review comments

* Adding changelog entry

* Reverting format changes not needed

* Moving the send function into the class for browser case.

* Adjust indentation to fix lint errors

* Remove template parameter that's not needed

* Apply review changes

* fix the import path

* Addressing lint errors

* Explicit imports for browser case

* More explicit exports

* Add missing exports

* Address lint issues with export statements

* Adding missing exports

* Adding missing export

* Using import from top level folder

* Trigger Build

* Update experimental/packages/exporter-trace-otlp-proto/test/browser/CollectorTraceExporter.test.ts

Co-authored-by: Marc Pichler <marcpi@edu.aau.at>

* Remove trailing comma

* Remove blank line to fix lint error

* Fixes based on testing opentelemetry-web/fetch-proto

* Add additional missing export

* Skip hex conversion of traceId for the protobuf

* Add esm/esnext builds for the proto packages

that will now be used for the browser case as well.

* Trigger Build

Co-authored-by: Santosh Cheler <scheler@cisco.com>
Co-authored-by: Santosh Cheler <santosh.cheler@gmail.com>
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Co-authored-by: Marc Pichler <marcpi@edu.aau.at>
2023-01-20 14:12:20 +08:00
Marc Pichler f882b71c68
chore: update `trace-web` example and rename it to `opentelemetry-web` (#3145)
* chore: update trace-web metrics sample.

* update versions to 0.31.0.

* fix(changelog): add changelog entry.

* fix(changelog): move changlog entry.

* fix(opentelemetry-web): make stopMetrics() non-async.
2022-08-10 00:01:15 +08:00