π¦ Azure Monitor integration with OpenTelemetry via @distributed_trace
annotation π
Create a .env
file in the project root β see .env.sample
for reference.
traces
| where timestamp > ago(1h)
| where message contains "Sample"
| project timestamp, message, customDimensions
| order by timestamp desc
traces
| where timestamp > ago(1h)
| where message contains "Processing" or message contains "Processed"
| project timestamp, message, severityLevel, customDimensions
| order by timestamp desc
SpanKind |
Azure Monitor Table | Description |
---|---|---|
INTERNAL |
traces |
Background operations or internal logic |
SERVER |
requests |
Incoming HTTP or RPC requests |
CLIENT |
dependencies |
Outgoing calls to external services |
PRODUCER |
dependencies |
Messages sent to queues/topics |
CONSUMER |
dependencies |
Messages received from queues/topics |
union traces, dependencies, requests, exceptions
| where timestamp > ago(1h)
| where message contains "Processing" or message contains "Processed"
| project timestamp, itemType, message, operation_Name, severityLevel, customDimensions
| order by timestamp desc
traces
| where timestamp > ago(1h)
| summarize Count = count() by severityLevel
| order by severityLevel
traces
| where timestamp > ago(1h)
| summarize Count = count() by operation_Name
| order by Count desc
union dependencies, requests, traces
| where timestamp > ago(1h)
| project timestamp, itemType, operation_Name, id, duration, customDimensions
| order by timestamp desc
traces
| where timestamp > ago(1h)
| where message contains "Internal operation span"
| project timestamp, message, customDimensions
requests
| where timestamp > ago(1h)
| where name == "server_span"
| project timestamp, name, operation_Name, customDimensions
dependencies
| where timestamp > ago(1h)
| where name == "client_span"
| project timestamp, name, target, operation_Name
dependencies
| where timestamp > ago(1h)
| where name in ("producer_span", "consumer_span")
| project timestamp, name, operation_Name, target