Repository navigation
feat: embed solution name in CLI user-agent for Datadog telemetry - #252
Merged
Merged
Conversation
Include the solution name in the User-Agent header when running cortex solutions install (e.g. cortexapps-cli/1.52.0 (solutions/workday)), so solution usage is visible in Datadog by solution and by tenant. Also emit a lightweight API call at the start of install so setup-script-only solutions (which make no backup import requests) always produce a log entry. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
_post_install_menu calls Prompt.ask() which hangs in non-TTY test environments. The test is verifying the no-setup-script path, not the interactive menu, so mocking it is correct. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
User-Agentheader when runningcortex solutions install— e.g.cortexapps-cli/1.52.0 (solutions/workday)— so solution usage is visible in Datadog by solution and by tenantGET /api/v1/catalog/definitionscall at the start ofinstallso setup-script-only solutions (like workday, which make no backup import requests) always produce a log entryCortexClient.__init__to accept an optionalcommandparameter that is embedded in the user-agentTest plan
cortex solutions install -s workdayand confirm logs appear in Datadog CLI Usage dashboard under "Solutions Subcommand (by tenant)" and "Solutions Subcommand (by solution name)"cortexapps-cli/X.Y.Z (solutions/workday)commandis not set)just test-allVersion
This is a
feat:commit → will bump 1.52.0 → 1.53.0🤖 Generated with Claude Code