Skip to content

Commit 08b1a58

Browse files
Merge pull request #225467 from ashwinder/telemetry
Operational telemetry for Call Automation
2 parents 7862ba6 + 697aaf1 commit 08b1a58

File tree

2 files changed

+66
-17
lines changed

2 files changed

+66
-17
lines changed

articles/communication-services/concepts/logging-and-diagnostics.md

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Azure Communication Services offers logging capabilities that you can use to mon
2222
2323
## Enable diagnostic logs in your resource
2424

25-
Logging is turned off by default when a resource is created. To enable logging, navigate to the **Diagnostic settings** blade in the resource menu under the **Monitoring** section. Then click on **Add diagnostic setting**.
25+
Logging is turned off by default when a resource is created. To enable logging, navigate to the **Diagnostic settings** tab in the resource menu under the **Monitoring** section. Then select **Add diagnostic setting**.
2626

2727
Next, select the archive target you want. Currently, we support storage accounts and Log Analytics as archive targets. After selecting the types of logs that you'd like to capture, save the diagnostic settings.
2828

29-
New settings take effect in about ten minutes. Logs will begin appearing in the configured archival target within the Logs pane of your Communication Services resource.
29+
New settings take effect in about 10 minutes. Logs will begin appearing in the configured archival target within the Logs pane of your Communication Services resource.
3030

3131
:::image type="content" source="./media/diagnostic-settings.png" alt-text="Azure Communication Services Diagnostic Settings Options.":::
3232

@@ -44,14 +44,15 @@ Communication Services offers the following types of logs that you can enable:
4444
* **Email Send Mail operational logs** - provides detailed information related to the Email service send mail requests.
4545
* **Email Status Update operational logs** - provides message and recipient level delivery status updates related to the Email service send mail requests.
4646
* **Email User Engagement operational logs** - provides information related to 'open' and 'click' user engagement metrics for messages sent from the Email service.
47+
* **Call Automation operational logs** - provides operational information on Call Automation API requests. These logs can be used to identify failure points, query all requests made in a call (using Correlation ID or Server Call ID) or query all requests made by a specific service application in the call (using Participant ID).
4748

4849
### Usage logs schema
4950

5051
| Property | Description |
5152
| -------- | ---------------|
5253
| Timestamp | The timestamp (UTC) of when the log was generated. |
5354
| Operation Name | The operation associated with log record. |
54-
| Operation Version | The `api-version` associated with the operation, if the operationName was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
55+
| Operation Version | The `api-version` associated with the operation, if the operationName was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
5556
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
5657
| Correlation ID | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
5758
| Properties | Other data applicable to various modes of Communication Services. |
@@ -67,7 +68,7 @@ Communication Services offers the following types of logs that you can enable:
6768
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
6869
| OperationName | The operation associated with log record. |
6970
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
70-
| OperationVersion | The api-version associated with the operation, if the operationName was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
71+
| OperationVersion | The api-version associated with the operation, if the operationName was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
7172
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
7273
| ResultType | The status of the operation. |
7374
| ResultSignature | The sub status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
@@ -89,7 +90,7 @@ Communication Services offers the following types of logs that you can enable:
8990
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
9091
| OperationName | The operation associated with log record. |
9192
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
92-
| OperationVersion | The api-version associated with the operation, if the operationName was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
93+
| OperationVersion | The api-version associated with the operation, if the operationName was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
9394
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
9495
| ResultType | The status of the operation. |
9596
| ResultSignature | The sub status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
@@ -114,7 +115,7 @@ Communication Services offers the following types of logs that you can enable:
114115
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
115116
| OperationName | The operation associated with log record. |
116117
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
117-
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
118+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
118119
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
119120
| ResultType | The status of the operation. |
120121
| ResultSignature | The sub-status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
@@ -134,17 +135,17 @@ Communication Services offers the following types of logs that you can enable:
134135
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
135136
| OperationName | The operation associated with log record. |
136137
| CorrelationId | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
137-
| OperationVersion | The API-version associated with the operation or version of the operation (if there is no API version). |
138+
| OperationVersion | The API-version associated with the operation or version of the operation (if there's no API version). |
138139
| Category | The log category of the event. Logs with the same log category and resource type will have the same properties fields. |
139-
| ResultType | The status of the operation (e.g. Succeeded or Failed). |
140+
| ResultType | The status of the operation (for example, Succeeded or Failed). |
140141
| ResultSignature | The sub status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
141142
| DurationMs | The duration of the operation in milliseconds. |
142143
| Level | The severity level of the operation. |
143144
| URI | The URI of the request. |
144145
| Identity | The request sender's identity, if provided. |
145146
| SdkType | The SDK type being used in the request. |
146147
| PlatformType | The platform type being used in the request. |
147-
| RouteType | The routing methodology to where the ICE server will be located from the client (e.g. Any or Nearest). |
148+
| RouteType | The routing methodology to where the ICE server will be located from the client (for example, Any or Nearest). |
148149

149150

150151
### Email Send Mail operational logs
@@ -154,9 +155,9 @@ Communication Services offers the following types of logs that you can enable:
154155
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
155156
| Location | The region where the operation was processed. |
156157
| OperationName | The operation associated with log record. |
157-
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
158+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
158159
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
159-
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId which is returned from a successful SendMail request. |
160+
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId, which is returned from a successful SendMail request. |
160161
| Size | Represents the total size in megabytes of the email body, subject, headers and attachments. |
161162
| ToRecipientsCount | The total # of unique email addresses on the To line. |
162163
| CcRecipientsCount | The total # of unique email addresses on the Cc line. |
@@ -172,9 +173,9 @@ Communication Services offers the following types of logs that you can enable:
172173
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
173174
| Location | The region where the operation was processed. |
174175
| OperationName | The operation associated with log record. |
175-
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
176+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
176177
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
177-
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId which is returned from a successful SendMail request. |
178+
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId, which is returned from a successful SendMail request. |
178179
| RecipientId | The email address for the targeted recipient. If this is a message-level event, the property will be empty. |
179180
| DeliveryStatus | The terminal status of the message. |
180181

@@ -185,10 +186,33 @@ Communication Services offers the following types of logs that you can enable:
185186
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
186187
| Location | The region where the operation was processed. |
187188
| OperationName | The operation associated with log record. |
188-
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
189+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
189190
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
190-
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId which is returned from a successful SendMail request. |
191+
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId, which is returned from a successful SendMail request. |
191192
| RecipientId | The email address for the targeted recipient. If this is a message-level event, the property will be empty. |
192193
| EngagementType | The type of user engagement being tracked. |
193194
| EngagementContext | The context represents what the user interacted with. |
194195
| UserAgent | The user agent string from the client. |
196+
197+
198+
### Call Automation operational logs
199+
200+
| Property | Description |
201+
| -------- | ---------------|
202+
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
203+
| OperationName | The operation associated with log record. |
204+
| CorrelationID | The identifier to identify a call and correlate events for a unique call. |
205+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
206+
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
207+
| ResultType | The status of the operation. |
208+
| ResultSignature | The sub status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
209+
| DurationMs | The duration of the operation in milliseconds. |
210+
| CallerIpAddress | The caller IP address, if the operation corresponds to an API call that would come from an entity with a publicly available IP address. |
211+
| Level | The severity level of the event. |
212+
| URI | The URI of the request. |
213+
| CallConnectionId | ID representing the call connection, if available. This ID is different for each participant and is used to identify their connection to the call. |
214+
| ServerCallId | A unique ID to identify a call. |
215+
| SDKVersion | SDK version used for the request. |
216+
| SDKType | The SDK type used for the request. |
217+
| ParticipantId | ID to identify the call participant that made the request. |
218+
| SubOperationName | Used to identify the sub type of media operation (play, recognize) |

0 commit comments

Comments
 (0)