Skip to content

Commit

Permalink
set tracer rate so we aren't paying for %100
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchodeluxe committed Apr 12, 2023
1 parent 056c6e8 commit 69245a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions terraform/veda-wfs3/ecs_api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ module "ecs_cluster" {
name = "OTEL_RESOURCE_ATTRIBUTES"
value = "service.name=veda-wfs3-${var.env}"
},
{
name = "OTEL_TRACES_SAMPLER"
value = "traceidratio"
},
{
name = "OTEL_TRACES_SAMPLER_ARG"
value = "0.5"
},
{
name = "FORWARDED_ALLOW_IPS"
value = "*"
Expand Down
1 change: 1 addition & 0 deletions veda-wfs3-app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ git+https://github.com/developmentseed/tipg@82691b808c1265ca0b21b7cacf122880b426
uvicorn==0.20.0
boto3==1.26.28
opentelemetry-distro[otlp]>=0.24b0
opentelemetry-sdk~=1.17.0
opentelemetry-sdk-extension-aws~=2.0
opentelemetry-propagator-aws-xray~=1.0
opentelemetry-instrumentation-fastapi~=0.37b0
Expand Down

0 comments on commit 69245a6

Please sign in to comment.