Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ResourceDetectors.Azure] Azure Container Apps Resource Detector #1565

Merged

Conversation

rajkumar-rangaraj
Copy link
Contributor

Changes

Please provide a brief description of the changes here.

A new Azure Container App Resource Detector, which maps specific Azure Container Apps environment variables to corresponding OpenTelemetry resource attributes.

Environment Variable OpenTelemetry Resource Attribute
CONTAINER_APP_NAME service.name
CONTAINER_APP_REVISION service.version
CONTAINER_APP_REPLICA_NAME service.instance.id

TODO

  • Update README

For significant contributions please make sure you have completed the following items:

  • Appropriate CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

attributeList.Add(new KeyValuePair<string, object>(kvp.Key, attributeValue));
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

lets add a internal log, saying "ACADetector bailed out due to lack of env variable confirming this to be an ACA"/similar.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has to be done for all the detectors; I will do this as a follow-up task.

@Kielek Kielek added the comp:resources.azure Things related to OpenTelemetry.Resources.Azure label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:resources.azure Things related to OpenTelemetry.Resources.Azure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants