"invoked by Java Worker" is seen as "Function.My_Function.User" log instead "Function.My_Function"
@shreyas-gopalakrishna ya está trabajando en esto.
Desde el 24/2/2023.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Repro steps
- Create a Java function app (via vs code with default option)
- Run default HTTP trigger (see files in attachment)
In logs you will get those
[2022-08-12T10:05:22.726Z] Executing 'Functions.HttpExample' (Reason='This function was programmatically called via the host APIs.', Id=a2ec0e2c-a1c0-48d3-89b6-c8a68f66d8e8)
[2022-08-12T10:05:22.863Z] Java HTTP trigger processed a request.
[2022-08-12T10:05:22.869Z] Function "HttpExample" (Id: a2ec0e2c-a1c0-48d3-89b6-c8a68f66d8e8) invoked by Java Worker
[2022-08-12T10:05:22.958Z] Executed 'Functions.HttpExample' (Succeeded, Id=a2ec0e2c-a1c0-48d3-89b6-c8a68f66d8e8, Duration=297ms)
-
In your local.settings.json, add those values (in attachment functionappjava.zip)
"AzureFunctionsJobHost__logging__logLevel__Function.HttpExample" :"Warning",
"AzureFunctionsJobHost__logging__logLevel__Function.HttpExample.User" :"Information" -
We get
[2022-08-12T10:08:02.088Z] Java HTTP trigger processed a request.
[2022-08-12T10:08:02.096Z] Function "HttpExample" (Id: 8cc40ca8-2245-4385-bfac-222f6e73d5dc) invoked by Java Worker
"Function "HttpExample" (Id: a2ec0e2c-a1c0-48d3-89b6-c8a68f66d8e8) invoked by Java Worker" comes from https://github.com/Azure/azure-functions-java-worker/blob/master/src/main/java/com/microsoft/azure/functions/worker/handler/InvocationRequestHandler.java#L36 but this useless and it should be seen as "Function.My_Function" log category. In addition, this log seems quite useless due that FunctionApp itself give already the information (execution id, function name, ...)
This logs should be removed or change to fine level.
Expected behavior
- shown only "Java HTTP trigger processed a request." which is defined from the user code
Known workarounds
Provide a description of any known workarounds.
- Set .User log to Warning, but we loose all logs in Information in the code
- Lenguaje dominante
- Java
- Estrellas
- 103
- Forks
- 74
- Merge medio
- 12 h 49 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/azure-functions-java-worker
-
[Feature] Support raw Kafka record (KafkaRecord) binding with Protobuf deserializationPosiblemente ocupada @TsuyoshiUshio la tomó hace 175 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
-
[Feature] Support for reverse propagation of request telemetry tagsPosiblemente ocupada @arnabnandy7 la tomó hace 68 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
[Feature] Support OpenTelemetry BaggagePosiblemente ocupada @arnabnandy7 la tomó hace 68 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
mcp-extension
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
Add advanced MCP tool samplesQuizá libre de nuevo @ahmedmuhsin la tomó hace 184 días y no hay ningún pull request abierto. Abiertomcp-extension
Azure/azure-functions-java-worker#863 · 1 asignado ·
Todos los issues de Azure/azure-functions-java-worker
Issues similares
-
docs(site): Mermaid edge-label contrast on Architecture and a table header on How it comparesAbiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
devops-thiago/ThrillhouseBot#1132 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
approved bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
checkstyle/checkstyle#21981 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Build: the CUDA backend fails without cuDNN instead of skipping the cuDNN shim (as the cuDF shim does)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
beehive-lab/TornadoVM#1248 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted ready-for-human
Dificultad 2/5 Medio día Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día