Skip to content

Conversation

constanca-m
Copy link
Contributor

Description

The issue for this PR was first reported here: #39186.

Currently, the resource logs have no attributes. This means that all records are supposedly the same, which is not true.

This PR adds attributes to the resources.

Link to tracking issue

Relates #39186.

Testing

Unit tests fixed.

@constanca-m constanca-m requested a review from atoulme April 27, 2025 16:00
Copy link
Member

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the right choice but does have user facing changes that we should highlight (eg some log record attributes are moved to resource attributes). Also, I don't think we should remove event.name attribute yet.

Consumers of these attributes may depend on their names and locations. Maybe we dual write them for a short time, or add a feature flag to control behaviour?

@constanca-m
Copy link
Contributor Author

constanca-m commented Apr 28, 2025

Thanks @MikeGoldsmith @cparkins @atoulme . I am not totally convinced on this event.name to be honest, but I put it back again as a resource attribute.

@MikeGoldsmith Can you tell me more about the semantic conventions you linked for azure? Is this something that is in use in general, or just part of this translator? Reason I ask is that some of these attributes should not be there (for example properties - see