-
Notifications
You must be signed in to change notification settings - Fork 534
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
fix: move faas_id and cloud_account_id to semantic conventions #481
fix: move faas_id and cloud_account_id to semantic conventions #481
Conversation
Codecov Report
@@ Coverage Diff @@
## main #481 +/- ##
==========================================
+ Coverage 95.23% 95.24% +0.01%
==========================================
Files 130 134 +4
Lines 8325 8378 +53
Branches 811 814 +3
==========================================
+ Hits 7928 7980 +52
- Misses 397 398 +1
|
Not sure why lint fails. The error and the suggested changes are not applied when I run |
most likely a version issue. run |
'faas.id': context.invokedFunctionArn, | ||
[CLOUD_RESOURCE.ACCOUNT_ID]: AwsLambdaInstrumentation._extractAccountId( | ||
[ResourceAttributes.FAAS_ID]: context.invokedFunctionArn, | ||
[ResourceAttributes.CLOUD_ACCOUNT_ID]: AwsLambdaInstrumentation._extractAccountId( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW this line is the one lint is complaining about most likely (too long)
@dyladan: I drank some coffee and run that command, thanks for the advice ☕ . |
Ok, after cleaning up a few more things and making sure that (apparently) my repo is up to date, there are still 20 things to fix, so the rules of the linter have changed and those changes have not yet been applied: Since this is not scope of this PR, what's best practice, just have it here or open another PR? |
it's fine to just check them in here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Just a minor thing: in the aws-lambda instrumentation two attributes have not been moved to semantic conventions.