-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[Microsoft.App] add java agent related properties #28192
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
Changes from 6 commits
9e00dcf
a47e367
d8031fc
0c10a19
321d659
de1c056
43d40e7
7c04653
305cfdc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -871,6 +871,23 @@ | |
| "enableMetrics": { | ||
| "description": "Enable jmx core metrics for the java app", | ||
| "type": "boolean" | ||
| }, | ||
| "javaAgent": { | ||
| "description": "Diagnostic capabilities achieved by java agent", | ||
| "type": "object", | ||
| "properties": { | ||
| "enabled": { | ||
| "description": "Enable java agent injection for the java app.", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thx for your feedback. It's intended to keep consistent with the |
||
| "type": "boolean" | ||
| }, | ||
| "logLevelSettings": { | ||
| "description": "Settings of the log level for the java app.", | ||
fangjian0423 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/LogLevelSetting" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
|
|
@@ -886,6 +903,36 @@ | |
| } | ||
| } | ||
| }, | ||
| "LogLevelSetting": { | ||
| "description": "Log level settings for java workloads.", | ||
| "type": "object", | ||
| "required": [ | ||
| "logger", | ||
| "level" | ||
| ], | ||
| "properties": { | ||
| "logger": { | ||
| "description": "Logger name.", | ||
| "type": "string" | ||
| }, | ||
| "level": { | ||
| "description": "The specified logger's log level.", | ||
| "type": "string", | ||
| "enum": [ | ||
fangjian0423 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "off", | ||
| "error", | ||
| "warn", | ||
| "info", | ||
| "debug", | ||
| "trace" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "level", | ||
| "modelAsString": true | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "Ingress": { | ||
| "description": "Container App Ingress configuration.", | ||
| "type": "object", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,7 +78,16 @@ | |
| }, | ||
| "runtime": { | ||
| "java": { | ||
| "enableMetrics": true | ||
| "enableMetrics": true, | ||
| "javaAgent": { | ||
| "enabled": true, | ||
| "logLevelSettings": [ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this more than logLevel , should we call it logSettings extendibility?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hi @howang-ms , current design is aslo extendibility. When adding some new settings, the payload will looks like: {
"enabled": true,
"logLevelSettings": [
{
"logger": "org.springframework.boot",
"level": "debug"
}
],
"logXXXSettings": {
"sth": "sth"
}
} |
||
| { | ||
| "logger": "org.springframework.boot", | ||
| "level": "debug" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "dotnet": { | ||
| "autoConfigureDataProtection": true | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.