Repository navigation
OTel log draining follow-ups - #7605
Merged
Merged
Conversation
Signed-off-by: Alex Suraci <[email protected]>
I was still having to wait 5 minutes for OTEL logs to drain on some test runs that involved service tunneling. I believe there was a race condition where the tunnel code could end up writing logs after they were closed, which seems to create a leak and cause us to have to wait 5 minutes before a timeout is hit. I also saw a few other place otel logs were created and not closed, so added a close there too. Signed-off-by: Erik Sipsma <[email protected]>
* SpanLogger no longer writes to stdio streams, since it's unclear at each logging site who has responsibility to Close(); this way no one does. * switch last few holdouts to slog - for better or for worse, we should be consistent and iterate. We've started using slog for client-side logs, so we might as well adopt them server-side too. Signed-off-by: Alex Suraci <[email protected]>
sipsma
approved these changes
Jun 10, 2024
sipsma
left a comment
Contributor
There was a problem hiding this comment.
🎉 Tests are a lot faster than current main it seems
I saw the failure in the test workflow:
server "8n179cewnjt7l9k0z281pel15" not found
I've seen that occasionally recently before this PR, so don't think it's related. I'm tempted to just say that we should just assume #7315 fixes it since that PR completely reworks how all of that works.
uses otel baggage, which I thankfully already went through the trouble of propagating, and hadn't used yet. neat! Signed-off-by: Alex Suraci <[email protected]>
This was referenced Aug 5, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
slogeverywhere that we print output from the engine, instead of "faking" stdout/stderr in places.SpanLoggerno longer leaves ambiguity as to whether caller needs toClose(). It never does.telemetry.Logstotelemetry.SpanStdioso its intentions are clearer.Close(). It always does.NO_COLOR=trueand--debugthrough to the engine soSpanLoggercan respect it.slogwe should respect the user's preferences.dagger up --randomtest to pass without choking on ANSI colors.