Skip to content

Lambda関数にOpenTelemetryをセットアップ

This content is a draft and will not be included in production builds.

コードの修正は色々な記事があるのでそれでいいとして、

ENV OPENTELEMETRY_COLLECTOR_CONFIG_URI="s3://mackerel-otel-collector-conf-production.s3.ap-northeast-1.amazonaws.com/diamond-writer/otel-config.yml"
ENV OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317"
# otel-gateway.mackerel-staging.hatena.sh:4317
# otel-gateway.mackerel-production.hatena.sh:4317