Commit Graph

4 Commits

Author SHA1 Message Date
Aswin V 8c66b46ce7
Use @boxyhq/metrics wrapper package for telemetry (#1065)
* Init sdk folder for otel

* Update LICENSE

* Add `directory` for `git` in package.json

* Initialize metrics

* Acquire meter

* Operation for counter instrument

* operation for gauge

* - Move `otel` out of `sdk` folder into root folder"
- Rename npm to `@boxyhq/metrics`

* Add function instrumentation

* Rename `otel` to `metrics`

* Rename folder and add npm dependencies

* Refactor

* Add `instrumented` decorator

* Exclude metrics from root tsconfig

* Remove otel from names

* Remove `metrics` folder

* Swap creation of instruments with constants

* Remove `metrics` from tsconfig

* Use `@boxyhq/metrics`

* Use `@boxyhq/metrics` from npm registry

* Use `initializeMetrics` from `@boxyhq/metrics`

* Cleanup

* Wrap telemetry calls

* Refactor

* Refactor

* Fix call

* Update metrics to latest release
2023-04-08 22:19:57 +05:30
Deepak Prabhakara 36deea674d
Updated otel libs and added support for grpc as well (#714)
* wip: updated otel libs but it isn't sending events

* cleanup

* grpc works

* simplified counter creation

* Support process.env.OTEL_EXPORTER_OTLP_ENDPOINT as well

* exportIntervalMillis of 60 seconds should be sufficient

* support http and grpc as well

* tweak to OTEL_EXPORTER_DEBUG

* unregister logger before setting it
2022-12-05 20:47:12 +00:00
Deepak Prabhakara 9af00c7232 if OTEL_EXPORTER_OTLP_METRICS_ENDPOINT is not defined do not set a meter provider 2022-12-03 00:22:45 +00:00
Kiran K 78782fbbb8
Opentelemetry metrics API (#72)
* Opentelemetry metrics API

* Rename the counter

* Add metrics API

* Add Otl to Nextjs

* Add otel protocol

* Fix the port

* Fix the port

* Fix

* Fix

* Fix

* fixed default postgres url

* tweaks to metrics name and attributes

Co-authored-by: Kiran K <kiran@Kirans-MacBook-Pro.local>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2022-02-15 23:34:12 +00:00