Skip to content
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

Fix generation of service.name log attribute in istio environment #176

Merged
merged 1 commit into from
Jul 10, 2021

Conversation

dmitryax
Copy link
Contributor

Istio has an involved logic for generating service name for traces. So we cannot just rely on "app" pod label. This commit adds the same logic to generate service.name logs attribute as istio uses for traces. It's needed to make correlation between logs and traces work OOTB in Splunk o11y suite.

Copy link
Contributor

@flands flands left a comment

Choose a reason for hiding this comment

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

Ouch... I mean looks good, however this is a custom (not built in parser) right? I would assume this plugin needs to be installed so installer scripts need to be updated. Also unsure how this will work on upgrade...

@dmitryax
Copy link
Contributor Author

@flands this plugin is already installed in the image and being used

Copy link
Contributor

@flands flands left a comment

Choose a reason for hiding this comment

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

Sweet

Istio has an involved logic for generating service name for traces. So we cannot just rely on "app" pod label. This commit adds the same logic to generate service.name logs attribute as istio uses for traces. It's needed to make correlation between logs and traces work OOTB in Splunk o11y suite.
@dmitryax dmitryax force-pushed the istio-logs-service-name branch from f6d7ac4 to 84a7da3 Compare July 10, 2021 01:24
@dmitryax dmitryax merged commit 401d6ad into main Jul 10, 2021
@dmitryax dmitryax deleted the istio-logs-service-name branch July 13, 2021 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants