Azurefunctions Receiver
Supported Telemetry
Overview
Overview
The Azure Functions receiver is an OpenTelemetry Collector receiver that integrates with Azure Functions as a custom handler. It receives logs from Azure Event Hubs via the Azure Functions runtime and converts them to OpenTelemetry format for further processing and export.How It Works
The receiver is designed to operate as part of an Azure Functions custom handler:- Azure Functions runtime consumes events from Azure Event Hubs (e.g. separate hubs for logs and metrics).
- The runtime sends HTTP POST requests to the receiver’s endpoint
/logs. - The receiver decodes Azure Functions invoke requests containing Event Hub messages.
- Messages are converted to OpenTelemetry format.
- Data is forwarded to the configured pipeline consumers.
Configuration
The following receiver configuration parameters are supported.| Name | Type | Description |
|---|---|---|
http | confighttp.ServerConfig | Required. HTTP server settings (e.g. endpoint: :9090). Typically use FUNCTIONS_CUSTOMHANDLER_PORT. |
auth | component.ID | Optional. Component ID of the extension that provides Azure authentication (e.g. token credential). |
logs.encoding | component.ID | Required. Encoding extension ID for unmarshaling log records. |
include_invoke_metadata | bool | Optional. When true, add Azure Functions invoke metadata to resource attributes. Default: false. |
Example configuration
Supported Signal Decoders
- Logs (Primary support) - Logs are decoded using an encoding extension (typically
azure_encoding) that converts Azure Resource Logs format to OpenTelemetry logs. - Metrics (Future consideration)
Requirements
- Deployed as an Azure Functions custom handler.
- Azure Functions host configuration (
host.json) with custom handler settings. - Event Hub trigger bindings configured in
function.json.
Configuration
Example Configuration
Last generated: 2026-04-13