Skip to content

Conversation

@forsen
Copy link

@forsen forsen commented Dec 10, 2025

Which problem is this PR solving?

This PR adds detector for Azure Container Apps.

Short description of the changes

Adds detector for Azure Container Apps, detecting the built-in environment variables:
https://learn.microsoft.com/en-us/azure/container-apps/environment-variables?tabs=portal#apps

Tried to use attributes from semconv where applicable, using custom ones otherwise.

I've not implemented functionality to fetch metadata from Azure metadata endpoint. I'm fairly new with Open Telemetry, so consider the attribute mapping as a suggestion only.

@forsen forsen requested a review from a team as a code owner December 10, 2025 07:56
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 10, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@thompson-tomo
Copy link
Contributor

@forsen can you update the implementation to match the changes to the readme?

@forsen
Copy link
Author

forsen commented Dec 17, 2025

@forsen can you update the implementation to match the changes to the readme?

8a384a6

process.env = originalEnv;
});

it('should detect Azure Container Apps resource attributes', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

As all of our other resource detectors are designed to run alongside one another, it'd be good to add a test here to ensure that multiple resource detectors can be registered with no interference.

I trust isAzureContainerApps to keep this scoped correctly, but this would be good to have to detect any possible regressions in the future.

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.

4 participants