Skip to content

Add DDB_MAPPER feature ID for requests originating from DynamoDBContext #3734

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

Conversation

muhammad-othman
Copy link
Member

Description

This PR adds DDB_MAPPER feature ID to the user agent when requests originate from DynamoDBContext.

Motivation and Context

DOTNET-7974

Testing

  • Validated that the requests originated from DynamoDBContext contains DDB_MAPPER feature ID (d).

    • example: ft/ddb-hll md/DataModel md/TableSync aws-sdk-dotnet-framework/4.0.0.0 ua/2.1 os/windows lang/.NET_Runtime#4.0 md/.NET_Framework#4.8.09037 md/aws-sdk-dotnet-core#4.0.0.0 api/DynamoDB#4.0.0.0 md/ClientSync cfg/init-coll#0 m/d,b,e,E.
  • Validated that the requests originated from DocumentModel doesn't contain DDB_MAPPER feature ID.

    • example: ft/ddb-hll md/DocumentModel md/TableSync aws-sdk-dotnet-framework/4.0.0.0 ua/2.1 os/windows lang/.NET_Runtime#4.0 md/.NET_Framework#4.8.09037 md/aws-sdk-dotnet-core#4.0.0.0 api/DynamoDB#4.0.0.0 md/ClientSync cfg/init-coll#0 m/b,e,E.
  • DRY_RUN-9eafeef3-1df1-4cd6-a166-a45365593a86

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

userAgentDetails.AddUserAgentComponent($"md/{this.TableConsumer}");
userAgentDetails.AddUserAgentComponent($"md/{(isAsync ? "TableAsync" : "TableSync")}");

if (this.TableConsumer == DynamoDBConsumer.DataModel)
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a feature id for the document DynamoDBConsumer?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, but we have to add it to the SEP first to book the feature id, otherwise some other team might add the same ID for a different feature.

Copy link
Member

Choose a reason for hiding this comment

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

I know we need to reserve the feature id but I thought that was just had to ask the metrics team. Hopefully the process for SDK specific features getting their own feature id is light weight.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure what is the process so far, I did reach out to the metrics team but I didn't get a response yet.

@dscpinheiro dscpinheiro self-requested a review April 1, 2025 17:20
@muhammad-othman muhammad-othman force-pushed the muhamoth/DOTNET-7974-DDB-FeatureId branch from f85781f to 0f5a7d4 Compare April 1, 2025 17:25
@muhammad-othman muhammad-othman merged commit 64e9821 into Business-Metrics-Tracking-UA-2.1 Apr 2, 2025
1 check passed
@muhammad-othman muhammad-othman deleted the muhamoth/DOTNET-7974-DDB-FeatureId branch April 2, 2025 17:02
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