feat: add otel tracing
This commit is contained in:
parent
00487c4f23
commit
8779d76583
2 changed files with 12 additions and 2 deletions
10
Caddyfile
10
Caddyfile
|
@ -15,7 +15,13 @@
|
||||||
|
|
||||||
(application_base) {
|
(application_base) {
|
||||||
import application_logging {args[0]}
|
import application_logging {args[0]}
|
||||||
reverse_proxy host.containers.internal:{args[1]}
|
|
||||||
|
tracing {
|
||||||
|
span api
|
||||||
|
}
|
||||||
|
|
||||||
|
reverse_proxy host.containers.internal:{args[1]}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
(internal_base) {
|
(internal_base) {
|
||||||
|
@ -24,7 +30,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
log default {
|
log default {
|
||||||
output stdout
|
output stdout
|
||||||
output file /var/log/caddy/caddy_main.log {
|
output file /var/log/caddy/caddy_main.log {
|
||||||
roll_size 100MiB
|
roll_size 100MiB
|
||||||
|
|
|
@ -4,3 +4,7 @@ RUN apk update && \
|
||||||
apk add nss-tools
|
apk add nss-tools
|
||||||
|
|
||||||
COPY ./Caddyfile /etc/caddy
|
COPY ./Caddyfile /etc/caddy
|
||||||
|
|
||||||
|
ENV OTEL_EXPORTER_OTLP_ENDPOINT=otlp://host.containers.internal:4318
|
||||||
|
ENV OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=otlp://host.containers.internal:4318
|
||||||
|
ENV OTEL_EXPORTER_OTLP_INSECURE=true
|
||||||
|
|
Loading…
Reference in a new issue