-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
120 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM openjdk:11-slim as builder | ||
|
||
ENV OTEL_RESOURCE_ATTRIBUTES=service.name=ratpack-kotlin-otel | ||
ENV OTEL_INSTRUMENTATION_KAFKA_ENABLED=false | ||
ENV OTEL_EXPORTER_ZIPKIN_ENDPOINT=http://jaegerallinone:9411/api/v2/spans | ||
ENV OTEL_PROPAGATORS=b3,tracecontext | ||
ENV OTEL_METRICS_EXPORTER=none | ||
ENV OTEL_INSTRUMENTATION_CASSANDRA_ENABLED=false | ||
ENV OTEL_TRACES_EXPORTER=zipkin | ||
ENV OTEL_INSTRUMENTATION_NETTY_ALWAYS_CREATE_SPAN=false | ||
ENV RATPACK_SERVER__ADDRESS=0.0.0.0 | ||
|
||
COPY run.sh / | ||
COPY build/distributions/*.tar / | ||
COPY otel /otel | ||
RUN cd /tmp/ \ | ||
&& tar xvf /*.tar \ | ||
&& mv ratpack-kotlin-otel* /src | ||
WORKDIR /src | ||
|
||
ENTRYPOINT ["/run.sh"] |
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,2 +1,9 @@ | ||
# ratpack-kotlin-otel | ||
Simple project to debug ratpack+kotlin+otel libraries | ||
|
||
# Dependent services | ||
``` | ||
docker-compose up | ||
``` | ||
|
||
View traces in [Jaeger UI](http://localhost:16686) |
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 |
---|---|---|
|
@@ -20,3 +20,8 @@ services: | |
build: downstream-app | ||
ports: | ||
- "9999:9999" | ||
|
||
otel-ratpack-kotlin: | ||
build: . | ||
ports: | ||
- "5050:5050" |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Simple api to do timeouts easily | ||
|
||
``` | ||
docker build -t testing . && docker run --rm -it -p 9999:9999 testing | ||
``` | ||
|
||
``` | ||
curl http://localhost:9999/api/v1/timeout?duration=10s | ||
``` |
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 not shown.
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 +1 @@ | ||
otel.1.5.0.jar | ||
otel.1.10.1.jar |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
# Why does java have to be so hard? | ||
|
||
java -javaagent:/otel/otel.jar -classpath /src/app:$(find /src/lib | xargs | tr ' ' ':') sample.MainKt |
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
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
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
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
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