forked from Mirror/ollama4j
Add Prometheus metrics integration and refactor API error handling
Introduces Prometheus metrics support with a new MetricsRecorder and documentation (METRICS.md). Refactors OllamaAPI methods to improve error handling, reduce checked exceptions, and record metrics for API calls. Updates dependencies in pom.xml to include Prometheus and Guava. Adds MetricsRecorder class and updates tests for metrics integration.
This commit is contained in:
2
Makefile
2
Makefile
@@ -16,7 +16,7 @@ apply-formatting:
|
||||
|
||||
build: apply-formatting
|
||||
@echo "\033[0;34mBuilding project (GPG skipped)...\033[0m"
|
||||
@mvn -B clean install -Dgpg.skip=true
|
||||
@mvn -B clean install -Dgpg.skip=true -Dmaven.javadoc.skip=true
|
||||
|
||||
full-build: apply-formatting
|
||||
@echo "\033[0;34mPerforming full build...\033[0m"
|
||||
|
||||
Reference in New Issue
Block a user