Skip to content

Improve Beholder Logger #1280

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Improve Beholder Logger #1280

wants to merge 3 commits into from

Conversation

bolekk
Copy link
Contributor

@bolekk bolekk commented Jun 19, 2025

  1. Don't drop errors
  2. Protect against blocking calls

@bolekk bolekk requested review from patrickhuie19 and hendoxc June 19, 2025 15:30
@bolekk bolekk requested a review from a team as a code owner June 19, 2025 15:30
@bolekk bolekk requested a review from jmank88 June 19, 2025 16:19
@bolekk bolekk requested a review from krehermann June 19, 2025 17:55
1. Don't drop errors
2. Protect against blocking calls
@bolekk bolekk force-pushed the chore/beholder-logger-cleanup branch from 7b379a2 to eb095e7 Compare June 19, 2025 20:37
@@ -146,3 +253,8 @@ func getLabelMap(keysAndValues ...any) map[string]string {
}
return labels
}

func getBeholderCallContext() (context.Context, context.CancelFunc) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i thought the entire point of chip was to guarantee delivery of beholder logs.

i understand the technical reason for a timeout.

but, i am concerned this is shortcutting the product requirements and expectations.

what am i missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not logs - events. Logs will be delivered on a best-effort basis.

(there is a small subtlety here that the emitter is currently packing logs into an event and I can't remember if that is going to change or if that event will be treated differently, maybe @patrickhuie19 can clarify)

Copy link
Collaborator

Choose a reason for hiding this comment

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

IIUC otel treats logs and events as one kind of thing on the same stream

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Based on what I understood from @hendoxc and Mathew, Beholder Client will select a different endpoint to send the data to, under the hood.

Copy link
Contributor

Choose a reason for hiding this comment

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

All logs use the BaseMessage proto format and go over the custom message endpoint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So is it OK to merge? :)

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