open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
2.89k stars 2.27k forks source link

Map non-standard property names to Semantic Conventions #32764

Open markrendle opened 4 months ago

markrendle commented 4 months ago

Component(s)

receiver/azureeventhub

Is your feature request related to a problem? Please describe.

When ingesting Azure Resource Logs from Azure Event Hubs, the property names are arbitrary, presumably chosen by each team. In some cases the property names for the same semantic value differ between logs from the same Azure service, e.g. clientIp and clientIP. This makes querying and processing saved logs unnecessarily difficult.

Describe the solution you'd like

Where an OTel Semantic Convention exists to describe a property, change the property name to the SemConv equivalent in the translated log record, e.g. clientIp and clientIP would both become client.address.

Properties that can be mapped like this may be "promoted" to top-level attributes on the translated log record; other properties can remain in the nested properties map.

Describe alternatives you've considered

No response

Additional context

The initial work, covering Azure App Service and Azure Front Door, is already done in PR #32486

github-actions[bot] commented 4 months ago

Pinging code owners:

crobert-1 commented 4 months ago

This issue was approved of and suggested by a code owner in the linked PR, removing needs triage.

github-actions[bot] commented 2 months ago

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

github-actions[bot] commented 1 week ago

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.