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

Update python-auto-instrumentation sample app and add to workflow #305

Merged
merged 4 commits into from
Mar 24, 2023

Conversation

humivo
Copy link
Contributor

@humivo humivo commented Mar 21, 2023

Description: Update the python-auto-instrumentation sample app to fit the spec and then add it to the integ test workflow.

Testing Performed: Testing done on local and forked repo.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -34,23 +35,25 @@
# variable to keep track of the total number api requests
n = 0

common_attributes = { 'signal': 'metric', 'language': 'python-auto-instrumentation', 'metricType': 'request' }
Copy link
Contributor

Choose a reason for hiding this comment

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

Dumb question but what are these common_attributes used for, besides (what I assume to be) being required for the spec? I also notice that this is for metrics only, and for traces they are individually hardcoded for each span, is there a particular reason why this is?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These common_attributes are tested for in the testcases for metrics as they are added to the metric instruments in the sample app when they are updated.

@bryan-aguilar bryan-aguilar merged commit 3549983 into aws-observability:master Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants