Skip to content

Properly drop log.file.path from the log context #1696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged

Conversation

petewall
Copy link
Collaborator

The log.file.path appears to be a log attribute, not a resource attribute, so we need to drop it in that context.

Also adds unit tests.

@petewall petewall self-assigned this Jun 24, 2025
@petewall petewall requested a review from a team as a code owner June 24, 2025 16:59
@petewall petewall linked an issue Jun 24, 2025 that may be closed by this pull request
Signed-off-by: Pete Wall <pete.wall@grafana.com>
@petewall petewall force-pushed the fix/drop-logfilepath branch from e42da60 to caef30e Compare June 24, 2025 17:01
@petewall petewall requested a review from rlankfo as a code owner June 24, 2025 17:01
Copy link
Member

@rlankfo rlankfo left a comment

Choose a reason for hiding this comment

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

🚀

@petewall petewall merged commit 2c26aaa into main Jun 24, 2025
52 checks passed
@petewall petewall deleted the fix/drop-logfilepath branch June 24, 2025 17:59
@ChristianCiach
Copy link

Maybe you should make use of context inference: https://opentelemetry.io/blog/2025/ottl-contexts-just-got-easier/

Or maybe this is not yet available in Alloy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants