We recently configured an Azure Event Hub Receiver to capture logs from an Azure API Management instance and noticed that the log data was lacking almost all of the data passed in.
Steps to Reproduce
Attempt to convert the following JSON event to OTel:
Data is successfully Converted with all properties as accurate as possible.
Actual Result
Data is partially Converted, with very little data present (Essentially the timestamp and a few other details, no properties). See JSON Output below:
{"resourceLogs":[{"resource":{"attributes":[{"key":"azure.resource.id","value":{"stringValue":"/RESOURCE_ID"}}]},"scopeLogs":[{"scope":{"name":"otelcol/azureresourcelogs","version":"0.88.0-dev"},"logRecords":[{"timeUnixNano":"1698343020000000000","body":{},"attributes":[{"key":"cloud.provider","value":{"stringValue":"azure"}},{"key":"azure.category","value":{"stringValue":""}},{"key":"azure.operation.name","value":{"stringValue":""}}],"traceId":"","spanId":""},{"timeUnixNano":"1698343080000000000","body":{},"attributes":[{"key":"azure.category","value":{"stringValue":""}},{"key":"azure.operation.name","value":{"stringValue":""}},{"key":"cloud.provider","value":{"stringValue":"azure"}}],"traceId":"","spanId":""}
Collector version
v0.88.0
Environment information
Environment
OS: Mac OS
Compiler(if manually compiled): go 1.20.5 darwin/arm64
Component(s)
pkg/translator/azure, receiver/azureeventhub
What happened?
Description
We recently configured an Azure Event Hub Receiver to capture logs from an Azure API Management instance and noticed that the log data was lacking almost all of the data passed in.
Steps to Reproduce
Attempt to convert the following JSON event to OTel:
Expected Result
Data is successfully Converted with all properties as accurate as possible.
Actual Result
Data is partially Converted, with very little data present (Essentially the timestamp and a few other details, no properties). See JSON Output below: {"resourceLogs":[{"resource":{"attributes":[{"key":"azure.resource.id","value":{"stringValue":"/RESOURCE_ID"}}]},"scopeLogs":[{"scope":{"name":"otelcol/azureresourcelogs","version":"0.88.0-dev"},"logRecords":[{"timeUnixNano":"1698343020000000000","body":{},"attributes":[{"key":"cloud.provider","value":{"stringValue":"azure"}},{"key":"azure.category","value":{"stringValue":""}},{"key":"azure.operation.name","value":{"stringValue":""}}],"traceId":"","spanId":""},{"timeUnixNano":"1698343080000000000","body":{},"attributes":[{"key":"azure.category","value":{"stringValue":""}},{"key":"azure.operation.name","value":{"stringValue":""}},{"key":"cloud.provider","value":{"stringValue":"azure"}}],"traceId":"","spanId":""}
Collector version
v0.88.0
Environment information
Environment
OS: Mac OS Compiler(if manually compiled): go 1.20.5 darwin/arm64
OpenTelemetry Collector configuration
Log output
Additional context
This appears to be an issue when the underlying JSON data can not be parsed correctly.