Custom Handler Logging
- Lingua principale
- PowerShell
- Stelle
- 1.1k
- Fork
- 215
- Merge medio
- 4h 2m
- PR unite (30g)
- 1
Descrizione
According to https://learn.microsoft.com/en-us/azure/azure-functions/functions-custom-handlers#response-payload when the handler response contains a Logs array, these are shown in the invocation logs.
For example:
```json
{
"Outputs": {
"res": {
"Headers": {"Content-Type": "application/json"},
"statusCode": 200,
"body": {"message": "Order received for P01 qty 1"}
}
},
"Logs": ["Order received for P01", "Order quantity 1"]
}
```
The invocation logs never include these log entries. In fact the Invocations form does not even show successful invocations and searching through trace logs, these Logs entries are never found.
In addition, searching through trace logs, there's also no invocation id and its also impossible to determine which function endpoint is responsible for generating the trace logs.
Is there any more documentation for custom handler logging so that logs produced are of similar quality and use when using the supported sdks eg node or C#? I have some working handlers using https://bun.sh/ but they are useless without logging.
Ideally I'd like to achieve:
- Shows successful invocations per function endpoint
- Search trace logs per invocation and/or per endpoint
- Reduce the logs noise. Filter traces on custom (console logs) and filter out function host logs
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia riproducendo una risposta di un custom handler Bun contenente un array Logs e confronta il risultato con la documentazione sui custom handler di Azure Functions. Controlla il modulo Invocations e i trace log per verificare le invocazioni riuscite, gli ID delle invocazioni, l’attribuzione dell’endpoint e il comportamento del filtraggio. L’attività è completata quando le informazioni di logging riportate sono disponibili e la documentazione o la limitazione richiesta è chiaramente identificata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- bun
- Ambito
- observability
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100