Commit Graph

7 Commits

Author SHA1 Message Date
Trent Mick 0ee398d1e3
fix(instrumentation): ensure .setConfig() results in config.enabled defaulting to true (#4941) 2024-08-22 09:12:34 +00:00
Amir Blum 46d79f9a5e
feat(instrumentation): add util to execute span customization hook in base class (#4663)
* feat(instrumentation): hoist span event hook execution to base class

* test: add test for new hook runner

* chore: changelog

* fix: use event name from arguments

* fix: remove unused import

* fix: make diag message structual

* make the private function start with underscore

* chore: rename insetrumentation event to span customization hook

* chore: update changelog

* chore: lint fix

* Update experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>

* chore: move CHANGELOG to experimental

* fix: changelog

---------

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
2024-05-06 12:57:55 +02:00
Amir Blum 99431df2e2
feat!(instrumentation): remove moduleExports generic type from instrumentation registration (#4598)
* feat!(instrumentation): remove moudleExports generic type from instrumentation registration

* fix: lint

* chore: add changelog

* fix: core instrumentations

* docs: update README with the change

* Update experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>

* Update experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>

* Update CHANGELOG.md

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>

* chore: lint

* revert: sdk-logs in tsconfig

* chore: lint markdown

* Apply suggestions from code review

Co-authored-by: Jamie Danielson <jamieedanielson@gmail.com>

* Update experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleFile.ts

Co-authored-by: Jamie Danielson <jamieedanielson@gmail.com>

* Update experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleDefinition.ts

Co-authored-by: Jamie Danielson <jamieedanielson@gmail.com>

* fix: remove unrelevant eslint ignore

---------

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Co-authored-by: Jamie Danielson <jamieedanielson@gmail.com>
2024-04-19 13:03:39 +02:00
Marc Pichler 8bbebfd191
feat(instrumentation): add `getModuleDefinitions()` instead of making `init()` public (#4475)
* feat(instrumentation): add getModuleDefinitions() instead of making init() public

* test(instrumetation): add tests for getModuleDefinitions()

* chore: changelog
2024-02-15 13:59:01 +01:00
Hector Hernandez 588d8ad14d
Allow LoggerProvider to be specified in Instrumentations (#4314)
* Allow LoggerProvider to be specified in Instrumentations

* Update

* Lint

* Add test

* npm i

* Update changelog

* npm i

* marking setLoggerProvider as optional

* Add check for possible undefined method

* npm i
2024-02-06 11:19:51 +01:00
Osher Vaknin b29deeed50
feat(instrumentation): add new setMeterInstruments method (#3267)
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
Fixes https://github.com/open-telemetry/opentelemetry-js/issues/3249
2022-11-20 16:28:26 +01:00
Daniel Dyla 07b19ad19e
chore: split stable and experimental packages into groups using directories (#2462)
* chore: split stable and experimental packages into groups

* chore: use experimental directory

* chore: remove release-please
2021-09-10 17:14:55 -04:00