Skip to content

Conversation

yiyuan-he
Copy link
Contributor

Description of changes:

Adding support for SecretsManager AWS resource for Python SDK with auto-instrumentation.

Specifically, this change populates aws.secretsmanager.secret.arn in the Span by extracting the ARN field from SecretsManagerResponse

  • CFNIdentifier: "primaryIdentifier" : [ "[/properties/Id](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secret.html#aws-resource-secretsmanager-secret-return-values)" ]

Testing Plan:

Set up a simple client-server locally and verified that the new data is added to the span.

Screenshot 2024-09-23 at 10 37 55 AM

Added unit tests for:

  • AWS Metric Attribute Generator
  • Instrumentation Patches

Screenshot 2024-09-23 at 10 40 37 AM

Ran Code Style Checks:

codespell . --write-changes
python scripts/eachdist.py lint

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@yiyuan-he yiyuan-he requested a review from a team as a code owner September 23, 2024 17:43
@yiyuan-he
Copy link
Contributor Author

Closing this since I reset the main branch of my forked repo. More context can be found in the comments of this PR: #261

@yiyuan-he yiyuan-he closed this Sep 24, 2024
@yiyuan-he yiyuan-he deleted the secretsmanager branch September 24, 2024 23:32
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.

1 participant