50 строки
2.6 KiB
JSON
50 строки
2.6 KiB
JSON
{
|
|
"description": {
|
|
"language": "java",
|
|
"extensions": [".jar"],
|
|
"defaultExecutablePath": "%JAVA_HOME%/bin/java",
|
|
"defaultWorkerPath": "azure-functions-java-worker.jar",
|
|
"arguments": ["-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -jar", "%JAVA_OPTS%", "%AZURE_FUNCTIONS_MESH_JAVA_OPTS%"]
|
|
},
|
|
"profiles":
|
|
[
|
|
{
|
|
"profileName":"AppInsightsOptOutWindows",
|
|
"conditions":[
|
|
{"conditionType":"environment","conditionName":"languageWorkers:java:arguments","conditionExpression":".*-DaiAgentOptOut.*"},
|
|
{"conditionType":"hostProperty","conditionName":"platform","conditionExpression":"WINDOWS"}
|
|
],
|
|
"description":{
|
|
"arguments": ["-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -jar", "%JAVA_OPTS%", "%AZURE_FUNCTIONS_MESH_JAVA_OPTS%"]
|
|
}
|
|
},
|
|
{
|
|
"profileName":"AppInsightsOptOutLinux",
|
|
"conditions":[
|
|
{"conditionType":"environment","conditionName":"languageWorkers__java__arguments","conditionExpression":".*-DaiAgentOptOut.*"},
|
|
{"conditionType":"hostProperty","conditionName":"platform","conditionExpression":"LINUX"}
|
|
],
|
|
"description":{
|
|
"arguments": ["-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -jar", "%JAVA_OPTS%", "%AZURE_FUNCTIONS_MESH_JAVA_OPTS%"]
|
|
}
|
|
},
|
|
{
|
|
"profileName":"AppInsightsPlaceholder",
|
|
"conditions":[
|
|
{"conditionType":"environment","conditionName":"INITIALIZED_FROM_PLACEHOLDER","conditionExpression":"(?i)true$"}
|
|
],
|
|
"description":{
|
|
"arguments":["-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -javaagent:\"{workerDirectoryPath}/agent/applicationinsights-agent.jar\" -DLazySetOptIn=false -jar", "%JAVA_OPTS%", "%AZURE_FUNCTIONS_MESH_JAVA_OPTS%"]
|
|
}
|
|
},
|
|
{
|
|
"profileName":"AppInsightsNoPlaceholder",
|
|
"conditions":[
|
|
{"conditionType":"environment","conditionName":"APPLICATIONINSIGHTS_ENABLE_AGENT","conditionExpression":"(?i)true$"}
|
|
],
|
|
"description":{
|
|
"arguments": ["-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -javaagent:\"{workerDirectoryPath}/agent/applicationinsights-agent.jar\" -jar", "%JAVA_OPTS%", "%AZURE_FUNCTIONS_MESH_JAVA_OPTS%"]
|
|
}
|
|
}
|
|
]
|
|
} |