Skip to content
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

(Internal Review) add debug logging to resource auto-detection #1

Closed

Conversation

adamegyed
Copy link
Owner

Signed-off-by: Adam Egyed [email protected]

Which problem is this PR solving?

Short description of the changes

  • Added ResourceDetectionConfig interface to be optionally taken in by the detectResources function. Currently only configurable field is logger, which takes in a function to be used as debug log for resource auto-detection.
  • Added unit tests for logger functionality

renovate-bot and others added 12 commits June 13, 2020 11:50
* chore: adding plugin-fetch and example

* chore: investigating failing test

* chore: chore fixing tests with better fetch mocking

* chore: addressing comments

* chore: lint

* chore: addressing comments

* chore: updating webpack-env

* chore: fixes after update for node types

* chore: addressing reviews

* chore: fixes after merge

* chore: updating version

Co-authored-by: Mayur Kale <[email protected]>
Co-authored-by: Daniel Dyla <[email protected]>
@adamegyed adamegyed force-pushed the ResourceAutoDetectionLogging branch from 0bccc3f to f0486e7 Compare June 17, 2020 21:13
@adamegyed
Copy link
Owner Author

Note: This is a separate PR not intended for review by OpenTelemetry contributors. That PR can be found at open-telemetry#1211

@adamegyed adamegyed changed the title feat: add debug logging to resource auto-detection (Internal Review) add debug logging to resource auto-detection Jun 17, 2020
@adamegyed adamegyed force-pushed the ResourceAutoDetectionLogging branch from e81575b to 4372c80 Compare June 19, 2020 00:15
@lunajrq
Copy link

lunajrq commented Jun 22, 2020

LGTM

markwolff and others added 29 commits June 24, 2020 09:57
Signed-off-by: Adam Egyed <[email protected]>
Signed-off-by: Adam Egyed <[email protected]>
* chore: update metrics example with UpDownCounter

* chore: update getting-started

* chore: update README

* fix: lint

* Update packages/opentelemetry-metrics/README.md

Co-authored-by: Daniel Dyla <[email protected]>

* Update packages/opentelemetry-metrics/README.md

Co-authored-by: Daniel Dyla <[email protected]>

Co-authored-by: Daniel Dyla <[email protected]>
* fix: default url for otelcol

* docs: review example from default url otelcol

Co-authored-by: Mayur Kale <[email protected]>
* chore: adding batch observer, some metrics refactoring

* chore: undo changes after testing

* chore: undo changes after testing

* chore: addressing comments

* chore: renaming observer into value observer, fixing few spotted issues

* chore: missing renamed for ValueObserver

* chore: removing unused class

* chore: cleanup

* chore: refactoring, renaming aggregators

* chore: refactoring observer to have base class that can be extended

* chore: changing aggregator for ValueObserver, exposing batcher so it can be used to override a default one

* chore: addressing comments

* chore: addressing comments

* chore: preventing user from updating observer after timeout or update

* chore: aligning aggregators for value observer and recorder with regards to last spec changes

* chore: fixing test

* chore: fixes after merge

* chore: changes after review

* chore: changes after review with some additional fixes around typing

* chore: changes after review

* chore: lint

* chore: reviews

* chore: typo
@adamegyed adamegyed closed this Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.