Skip to content

infra(OTel): Wire OTEL_EXPORTER_ENDPOINT in ECS task defs#7251

Merged
khvn26 merged 1 commit intomainfrom
feat/otel-exporter-endpoint-env
Apr 15, 2026
Merged

infra(OTel): Wire OTEL_EXPORTER_ENDPOINT in ECS task defs#7251
khvn26 merged 1 commit intomainfrom
feat/otel-exporter-endpoint-env

Conversation

@khvn26
Copy link
Copy Markdown
Member

@khvn26 khvn26 commented Apr 15, 2026

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Contributes to Flagsmith/pulumi#170

In this PR, we add OTEL_EXPORTER_ENDPOINT pointing at the ADOT collector's CloudMap hostname to the admin-api, sdk-api, and task-processor task definitions for both staging and production, so the services can emit OTLP logs and traces to the shared collector once Flagsmith/pulumi#182 is deployed. The migration task def is intentionally left alone — it's a one-shot and doesn't emit events.

The endpoint is identical for staging and production because CloudMap is per-VPC and the metrics.local namespace resolves adot-collector inside each environment's VPC.

Depends on Flagsmith/pulumi#182.

How did you test this code?

  • Merge the pulumi plumbing PR first and verify the CloudMap hostname resolves from an API task in staging
  • Deploy this to staging and verify the env var lands in running containers
  • Verify the API emits OTLP traffic to the collector by checking the collector's debug log output in CloudWatch
  • Roll out to production

In this PR, we add OTEL_EXPORTER_ENDPOINT pointing at the ADOT
collector's CloudMap hostname to the admin-api, sdk-api, and
task-processor task definitions for both staging and production, so
the services can emit OTLP logs and traces to the shared collector
(see Flagsmith/pulumi#182).

beep boop
@khvn26 khvn26 requested a review from a team as a code owner April 15, 2026 17:56
@khvn26 khvn26 requested review from germangarces and removed request for a team April 15, 2026 17:56
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Apr 15, 2026 5:56pm
flagsmith-frontend-preview Ignored Ignored Apr 15, 2026 5:56pm
flagsmith-frontend-staging Ignored Ignored Apr 15, 2026 5:56pm

Request Review

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, reopen this pull request to trigger a review.

@khvn26 khvn26 changed the title feat(otel): Wire OTEL_EXPORTER_ENDPOINT in ECS task defs infra(OTel): Wire OTEL_EXPORTER_ENDPOINT in ECS task defs Apr 15, 2026
@khvn26
Copy link
Copy Markdown
Member Author

khvn26 commented Apr 15, 2026

This is blocked on state drift in staging Pulumi the "verify the CloudMap hostname resolves from an API task in staging" part worked but the TCP port isn't accessible yet due to a secgrp mismatch.

@khvn26
Copy link
Copy Markdown
Member Author

khvn26 commented Apr 15, 2026

@khvn26 khvn26 merged commit 19677ff into main Apr 15, 2026
11 checks passed
@khvn26 khvn26 deleted the feat/otel-exporter-endpoint-env branch April 15, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants