Skip to content

Conversation

@swfunc
Copy link
Contributor

@swfunc swfunc commented Mar 17, 2020

What does this PR do?

Adds the aws_account tag to enhanced metrics and Lambda logs to match how we tag CloudWatch aws.lambda metrics.

The logs and metrics are currently being tagged with account_id only, which causes issues when trying to pivot from the graphs at the top of the serverless detail page to the Lambda's logs - because the metrics are tagged with aws_account and the logs are not, the View related logs link returns no results.

Checklist

  • Member of the datadog team has run integration tests



def parse_lambda_tags_from_arn(arn):
def parse_lambda_tags_from_arn(arn, aws_account_tag=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you using aws_account_tag for something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops no, I meant to remove that, thanks :)

Copy link
Contributor

@agocs agocs left a comment

Choose a reason for hiding this comment

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

😉

@swfunc swfunc merged commit 3298ea5 into master Mar 17, 2020
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