-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(instrumentation): add new setMeterInstruments method #3267
feat(instrumentation): add new setMeterInstruments method #3267
Conversation
… instruments every meter provider update.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3267 +/- ##
==========================================
- Coverage 93.26% 93.23% -0.03%
==========================================
Files 247 247
Lines 7348 7348
Branches 1512 1512
==========================================
- Hits 6853 6851 -2
- Misses 495 497 +2
|
experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts
Outdated
Show resolved
Hide resolved
experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts
Outdated
Show resolved
Hide resolved
…mentation.ts Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
…mentation.ts Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
@legendecas agreed with your comments, thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM! Thank you for working on this.
experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts
Show resolved
Hide resolved
….com:epsagon/opentelemetry-js into feat/add-update-metric-instruments-interface
Hey :) @legendecas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % nits.
experimental/packages/opentelemetry-instrumentation-http/src/http.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -76,6 +76,7 @@ | |||
"@opentelemetry/api": "^1.2.0" | |||
}, | |||
"devDependencies": { | |||
"@opentelemetry/sdk-metrics": "^0.32.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is already otudated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM
@@ -76,6 +76,7 @@ | |||
"@opentelemetry/api": "^1.3.0" | |||
}, | |||
"devDependencies": { | |||
"@opentelemetry/sdk-metrics": "^1.8.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this needs to follow our dev dependency conventions to set a specific version instead of version ranges. However, I can not edit the PR before merging.
"@opentelemetry/sdk-metrics": "^1.8.0", | |
"@opentelemetry/sdk-metrics": "1.8.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! it will be enabled from my next pr (currently I'm under my company fork so I can't set this option).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@osherv could you do the change and rebase so we can merge this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ready for merge :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still didn't find the caret being removed. Would you mind verifying if your commits are pushed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this been updated?
:( it looks like we need another update with the main branch. |
* feat(mongodb): started working on mongodb connection pool instrumentations * feat(mongodb): started working on mongodb connection pool instrumentations * feat(mongodb): started working on mongodb connection pool instrumentations * feat(mongodb): started working on mongodb connection pool instrumentations * feat(mongodb): added connection metrics mongodb4 before tests * feat(mongodb): started working on tests * feat(mongodb): started working on tests * feat(mongodb): started working on tests * feat(mongodb): started working on tests * feat(mongodb): started working on tests * feat(mongodb): added mongodb4 metric tests * feat(mongodb): added mongodb4 metric tests * feat(mongodb): added mongodb4 metric tests * feat(mongodb): started working on mongodb3 metrics * feat(mongodb): removed <4 supprot * fix(mongo4): mongodb v4 instrumentation. fix idle/used counting * fix(mongo4): lint * fix(mongo4): use _updateMetricInstruments() as described in open-telemetry#3267 * fix(mongo4): lint * fix(mongo4): change deps * fix(mongo4): change deps 2 * fix(mongo4): revert deps * fix(mongo4): fixes * fix(mongo4): lint * fix(mongo4): lexport type * fix(mongo4): fixes * fix(mongo4): fixes * fix(mongo4): fixes: remote redundant from types, remove unneeded comments * fix(mongo4): add connection_string * fix(mongo4): add undefined instead of connection_string for for mongo v3 * Update plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com> * Update plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com> * fix(mongo4): move V4Connect and V4Session to internal-types * fix(mongo): lint * fix(mongo): align metric description with semconv * Update plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4.metrics.test.ts Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com> * fix(mongo): fix sessions.length to work also for versions 4.1 - 4.11 * fix(mongo): try to fix TAV for node 16 & 18 that doesn't work for mongo 3.6.2 --------- Co-authored-by: haddasbronfman <haddasb@cisco.com> Co-authored-by: Haddas Bronfman <85441461+haddasbronfman@users.noreply.github.com> Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Fixes #3249
This issue allows the instrumentations to only implement the
setMeterInstruments
when collecting metrics.Before:
After: