Skip to content

Commit 0784f9d

Browse files
Merge pull request #222128 from ealsur/users/ealsur/leasemove
Cosmos DB Trigger: Updating log level details
2 parents 82eb8f3 + 90bdd06 commit 0784f9d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/cosmos-db/nosql/how-to-configure-cosmos-db-trigger.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: ealsur
55
ms.service: cosmos-db
66
ms.custom: ignite-2022
77
ms.topic: how-to
8-
ms.date: 07/06/2022
8+
ms.date: 12/21/2022
99
ms.author: maquaran
1010
---
1111

@@ -40,7 +40,7 @@ After the Azure Function is deployed with the updated configuration, you'll see
4040

4141
### Which type of logs are emitted?
4242

43-
Once enabled, there are three levels of log events that will be emitted:
43+
Once enabled, there are four levels of log events that will be emitted:
4444

4545
* Error:
4646
* When there's an unknown or critical error on the Change Feed processing that is affecting the correct trigger functionality.
@@ -49,6 +49,9 @@ Once enabled, there are three levels of log events that will be emitted:
4949
* When your Function user code had an unhandled exception - There's a gap in your Function code and the Function isn't [resilient to errors](../../azure-functions/performance-reliability.md#write-defensive-functions) or a serialization error (for C# Functions, the raw json can't be deserialized to the selected C# type).
5050
* When there are transient connectivity issues preventing the trigger from interacting with the Azure Cosmos DB account. The trigger will retry these [transient connectivity errors](troubleshoot-dotnet-sdk-request-timeout.md) but if they extend for a long period of time, there could be a network problem. You can enable Debug level traces to obtain the Diagnostics from the underlying Azure Cosmos DB SDK.
5151

52+
* Information:
53+
* When a lease is taken to another instance - During initialization and when the Function scales, the leases can be rebalanced to another instance. If you customized the acquire or expiration intervals, it can also indicate that the values might be inappropriate (the expiration interval is lower than renewal).
54+
5255
* Debug:
5356
* When a lease is acquired by an instance - The current instance will start processing the Change Feed for the lease.
5457
* When a lease is released by an instance - The current instance has stopped processing the Change Feed for the lease.

0 commit comments

Comments
 (0)