-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: enable metrics and traces with OTEL
- Loading branch information
Jonathan Henrique Medeiros
committed
Aug 12, 2023
1 parent
00502bf
commit a12fa51
Showing
15 changed files
with
532 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
.PHONY: clean install test up down upgrade_otel_agent | ||
|
||
clean: | ||
@mvn clean | ||
.PHONY: install test version up down restart upgrade_otel_agent | ||
|
||
install: | ||
@mvn clean install | ||
|
||
test: | ||
@mvn clean test | ||
|
||
version: | ||
@mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$1 | ||
|
||
up: | ||
@docker-compose up -d | ||
|
||
down: | ||
@docker-compose down --remove-orphans --volumes | ||
|
||
restart: | ||
@docker-compose restart | ||
|
||
upgrade_otel_agent: | ||
@echo "Update local version for OTEL Java Agent..." | ||
@mkdir -p agents | ||
@curl -o agents/otel/opentelemetry-javaagent.jar -L https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar | ||
@curl -sL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases | grep -oE 'releases/tag/v[0-9]+\.[0-9]+\.[0-9]+' | cut -d'/' -f3 | sort -V | tail -n 1 > agents/otel/version.txt | ||
@VERSION=$$(cat agents/otel/version.txt) && echo "OTEL Java Agent local was updated to $$VERSION" | ||
@rm -rf agents/otel/version.txt | ||
@curl -o agents/opentelemetry-javaagent.jar -L https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar | ||
@curl -sL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases | grep -oE 'releases/tag/v[0-9]+\.[0-9]+\.[0-9]+' | cut -d'/' -f3 | sort -V | tail -n 1 > agents/version.txt | ||
@VERSION=$$(cat agents/version.txt) && echo "OTEL Java Agent local was updated to $$VERSION" | ||
@rm -rf agents/version.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+14.6 MB
agents/otel/opentelemetry-javaagent.jar → agents/opentelemetry-javaagent.jar
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.