feat: add otel tracing

This commit is contained in:
Marc 2024-09-29 23:18:56 -04:00
parent 00487c4f23
commit 8779d76583
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 12 additions and 2 deletions

View file

@ -15,7 +15,13 @@
(application_base) {
import application_logging {args[0]}
tracing {
span api
}
reverse_proxy host.containers.internal:{args[1]}
}
(internal_base) {

View file

@ -4,3 +4,7 @@ RUN apk update && \
apk add nss-tools
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