Identify CMT version in Cassandra connection metadata#52
Merged
Conversation
Set the DataStax driver application name on the shared cluster builder so source and target requests are identifiable as CassandraMigrationTool in Cassandra and Cosmos DB telemetry. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 078ac7b9-aa7f-44a1-9053-44c346cec5e1
Contributor
There was a problem hiding this comment.
Pull request overview
This PR makes Cassandra migration traffic identifiable in Cassandra/Cosmos DB request telemetry by setting a consistent DataStax C# driver application name for all sessions created via CassandraClientFactory.
Changes:
- Introduces a single
ApplicationNameconstant ("CassandraMigrationTool"). - Applies the application name centrally on the base cluster
Buildervia.WithApplicationName(ApplicationName)so it affects both source (Cosmos DB) and target (OSS Cassandra) connections.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Use CMT as the Cassandra driver application name and 3.0.0 as its application version. Move the version constant into the shared processor project so telemetry metadata and the UI version stay aligned. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 078ac7b9-aa7f-44a1-9053-44c346cec5e1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CMTas the DataStax C# driver application name3.0.0as the driver application versionCassandraClientFactoryThe driver receives:
Cosmos DB request telemetry exposes the application-name portion as
Application/CMT. The application version remains available in the Cassandra STARTUP metadata even though Cosmos diagnosticuserAgent_sdoes not currently include that separate field.Validation
dotnet build CassandraMigrationWebApp/CassandraMigrationWebApp.csproj --no-restore