feat: add multi-app Application Insights log access#2934
Open
TaprootFreak wants to merge 3 commits intodevelopfrom
Open
feat: add multi-app Application Insights log access#2934TaprootFreak wants to merge 3 commits intodevelopfrom
TaprootFreak wants to merge 3 commits intodevelopfrom
Conversation
- Add ContainerApp enum with all container apps (JuiceDollar, dEuro, etc.) - Extend config with app-specific Application Insights IDs - Add optional 'app' parameter to LogQueryDto - Update AppInsightsQueryService to use dynamic app ID - Extend log-debug.sh script with -a/--app parameter - Document new env variables in .env.example Allows querying logs from any container app via the debug endpoint: ./scripts/log-debug.sh exceptions -a juicedollarApi ./scripts/log-debug.sh traces "error" -a deuroApi -h 24
|
Move ContainerApp enum from gs/dto to integration/infrastructure/enums to respect layer architecture (integration should not import from domain). The DTO re-exports the enum for backward compatibility.
Remove redundant fallback - apps.dfxApi and appId are identical.
Member
|
The other container apps (JuiceDollar, dEuro, Ponder) don't use Application Insights - they just log to the Log Analytics To query logs from these services, we'd need to:
This would require a different service/endpoint that uses the Log Analytics workspace ID and API key, not the Application Insights |
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
Changes
ContainerAppenum with all container appsappparameter toLogQueryDtoAppInsightsQueryServiceto use dynamic app IDlog-debug.shscript with-a/--appparameterUsage
Configuration Required
Add the Application Insights App IDs to the environment:
Test plan
./scripts/log-debug.sh exceptions -a juicedollarApi