diff --git a/2022.fly/fly.toml b/2022.fly/fly.toml index 015fee6ae7..550ba49c3a 100644 --- a/2022.fly/fly.toml +++ b/2022.fly/fly.toml @@ -17,6 +17,9 @@ PORT = "4000" STATIC_URL_HOST = "cdn.changelog.com" URL_HOST = "changelog.com" DB_NAME = "changelog" +# Sample traces to 10%, otherwise we will exceed out monthly 100M limit +OTEL_TRACES_SAMPLER="parentbased_traceidratio" +OTEL_TRACES_SAMPLER_ARG="0.1" [[services]] internal_port = 4000 diff --git a/config/config.exs b/config/config.exs index 33ab7ffa53..1148d3a51f 100644 --- a/config/config.exs +++ b/config/config.exs @@ -118,6 +118,7 @@ if System.get_env("HONEYCOMB_API_KEY") do config :opentelemetry, traces_exporter: :otlp config :opentelemetry_exporter, otlp_protocol: :http_protobuf, + otlp_compression: :gzip, otlp_endpoint: "https://api.honeycomb.io:443", otlp_headers: [ {"x-honeycomb-team", SecretOrEnv.get("HONEYCOMB_API_KEY")},