Azure-Samples / Azure-Samples/app-templates-java-openai-springapps
Add Azure Application Insights for Spring App
- Dominant language
- Bicep
- Stars
- 22
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
> Please provide us with the following information:
> ---------------------------------------------------------------
Currently the part of the bicep template to setup Azure Application Insights for the Spring Apps is commented in [spring-apps-consumption.bicep](https://github.com/Azure-Samples/app-templates-java-openai-springapps/blob/e55c580acb67d8edcedc35ee00c196ebb4c2590c/infra/core/host/spring-apps-consumption.bicep) (lines 93 to 99). When deploying the application with Azure Developer CLI or in IntelliJ the deployment fails because the app cannot started.
### This issue is for a: (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```
### Minimal steps to reproduce
> Uncomment the lines 41-43 and 93-99 in [spring-apps-consumption.bicep](https://github.com/Azure-Samples/app-templates-java-openai-springapps/blob/e55c580acb67d8edcedc35ee00c196ebb4c2590c/infra/core/host/spring-apps-consumption.bicep). Deploy using `azd up`
### Any log messages given by the failure
> In the log the application always restart.
### Expected/desired behavior
> The application is deployed properly
### Versions
> 1.0.0
### Mention any other details that might be useful
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.
Contributor guide
Research direction
Start with infra/core/host/spring-apps-consumption.bicep, especially the commented lines 41-43 and 93-99. Deploy the template with azd up and inspect the application restart behavior. Done means the Spring application deploys properly with Azure Application Insights configured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, java, spring-boot
- Domain
- cloud, infrastructure, observability
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100