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

Add service and instance annotations to tron pods #3967

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

nemacysts
Copy link
Member

We can currently only figure out what service/instance a log belongs to by looking at the k8s labels for the emitting pod, but label values are quite limited in length and we've got some pretty large job and/or action names, which means that the instance label for a large chunk of tronjobs ends up getting truncated.

Solution: annotations! these have a signficantly higher limit (256kb) and they can still be read by our otel collector - the only downside is that annotations cannot be used for filtering, but that's fine :)

We can currently only figure out what service/instance a log belongs to
by looking at the k8s labels for the emitting pod, but label values are
quite limited in length and we've got some pretty large job and/or
action names, which means that the instance label for a large chunk of
tronjobs ends up getting truncated.

Solution: annotations! these have a signficantly higher limit (256kb)
and they can still be read by our otel collector - the only downside is
that annotations cannot be used for filtering, but that's fine :)
@nemacysts nemacysts requested a review from a team as a code owner September 20, 2024 19:37
yalinglee
yalinglee previously approved these changes Sep 20, 2024
bobokun
bobokun previously approved these changes Sep 20, 2024
@nemacysts nemacysts dismissed stale reviews from bobokun and yalinglee via 72915e3 September 20, 2024 20:19
@nemacysts nemacysts merged commit 1fb6560 into master Sep 25, 2024
10 checks passed
@nemacysts nemacysts deleted the luisp/OBSPLAT-2187-truncation-sux branch November 15, 2024 18:46
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.

4 participants