- 
                Notifications
    You must be signed in to change notification settings 
- Fork 63
[SVLS-7763] create (beta) container app instrument command #1933
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
base: master
Are you sure you want to change the base?
[SVLS-7763] create (beta) container app instrument command #1933
Conversation
| ✅ Tests 🎉 All green!❄️ No new flaky tests detected 🔗 Commit SHA: 7b6aef2 | Docs | Datadog PR Page | Was this helpful? Give us feedback! | 
| sidecarContainer === undefined || | ||
| sidecarContainer.image !== SIDECAR_IMAGE || | ||
| sidecarContainer.targetPort !== SIDECAR_PORT || | ||
| sidecarContainer.targetPort !== String(SIDECAR_PORT) || | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the constant is now a number so we have to convert back here due to azure's spec
| envVars.DD_TAGS = config.extraTags | ||
| } | ||
| // Get base environment variables | ||
| let envVars = getBaseEnvVars(config) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the variables shared across web apps and container apps are created here now
6a63ec8    to
    51932a4      
    Compare
  
    c79c0c5    to
    cfe9f25      
    Compare
  
    | Created DOCS-12487 for Docs team review! | 

What and why?
Creates the new
container-app instrumentcommand, which adds the sidecar to an existing container app. This will support customers using container apps who are not using terraform, and would like to programmatically set up their applications.For now, this will be in beta until the full command is ready.
How?
Refactors a lot of the helpers used in the
aaspackage, and some of the constants used in thecloud-runpackage, so we can use them for container apps as well, and adds the instrument command for container apps.In a later PR, i'll do some more refactoring to see how much we can consolidate cloud run and container apps so we can simplify the instrumentation logic (since they both run on kubernetes)
Review checklist