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

improvement: monitoring and tests #3833

Merged
merged 5 commits into from
Jun 5, 2023

Conversation

aarnphm
Copy link
Contributor

@aarnphm aarnphm commented May 5, 2023

  • makes monitoring deps optional (depends on deps: move exporter-proto to optional #3840)
  • update to 1.17 for now
  • Support registering Monitor class via MONITOR_REGISTRY
  • fix imports for OTLP monitor 1.17
  • added e2e tests from examples/monitoring/task_classification

Signed-off-by: Aaron [email protected]

@aarnphm aarnphm requested a review from a team as a code owner May 5, 2023 21:35
@aarnphm aarnphm requested review from larme and removed request for a team May 5, 2023 21:35
ssheng
ssheng previously approved these changes May 5, 2023
@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Merging #3833 (1f4cd94) into main (5b29337) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #3833   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files        155     157    +2     
  Lines      12963   13014   +51     
=====================================
- Misses     12963   13014   +51     
Impacted Files Coverage Δ
src/bentoml/__init__.py 0.00% <0.00%> (ø)
src/bentoml/_internal/monitoring/__init__.py 0.00% <0.00%> (ø)
src/bentoml/_internal/monitoring/api.py 0.00% <0.00%> (ø)
src/bentoml/_internal/monitoring/base.py 0.00% <0.00%> (ø)
src/bentoml/_internal/monitoring/default.py 0.00% <0.00%> (ø)
src/bentoml/_internal/monitoring/otlp.py 0.00% <0.00%> (ø)
src/bentoml/monitoring.py 0.00% <0.00%> (ø)

sauyon
sauyon previously approved these changes May 5, 2023
@aarnphm aarnphm force-pushed the deps/optional-monitoring branch 4 times, most recently from d218eb9 to eb5cc91 Compare May 7, 2023 04:05
@aarnphm aarnphm changed the title chore: update monitoring deps chore: update monitoring deps and tests May 7, 2023
@aarnphm aarnphm requested a review from sauyon May 7, 2023 04:27
@aarnphm aarnphm force-pushed the deps/optional-monitoring branch 2 times, most recently from b0aeae4 to bccf11e Compare May 7, 2023 05:28
@aarnphm aarnphm changed the title chore: update monitoring deps and tests improvement: monitoring May 7, 2023
@aarnphm aarnphm force-pushed the deps/optional-monitoring branch 3 times, most recently from b7014c3 to a4c90e5 Compare May 8, 2023 21:48
@aarnphm aarnphm changed the title improvement: monitoring improvement: monitoring and tests May 8, 2023
@aarnphm aarnphm requested a review from bojiang May 8, 2023 21:57
@aarnphm
Copy link
Contributor Author

aarnphm commented May 8, 2023

@bojiang PTAL.

feat: update monitoring tests and slight refactor of MONITOR_REGISTRY implementation

fix: hidden bug in loading log file on Windows

fix: early fail OTLP and show exception in server logs

Signed-off-by: Aaron <[email protected]>
pyproject.toml Show resolved Hide resolved
Copy link
Member

@bojiang bojiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't see the value of __init_subclass__ refactoring.
Normal classes and inheritance should be enough, and we might not need the extra functionality provided by init_subclass. It make it harder to trace.

@aarnphm aarnphm requested a review from bojiang June 2, 2023 11:42
@aarnphm aarnphm merged commit 10646cf into bentoml:main Jun 5, 2023
@aarnphm aarnphm deleted the deps/optional-monitoring branch June 5, 2023 06:41
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.

4 participants