You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the generated code has defer span.End(), but I would like it to be defer span.End(trace.WithStackTrace(true)) so that I can get stack traces from panics.
I couldn't find any configuration in ogen generation and it seems like there's no way to set it outside of the generated code. For example, using otelhttp.WithSpanOptions() for configuring otelhttp.NewHandler doesn't work since it only accepts trace.SpanStartOptions and not trace.SpanEndOptions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the generated code has
defer span.End(), but I would like it to bedefer span.End(trace.WithStackTrace(true))so that I can get stack traces from panics.I couldn't find any configuration in ogen generation and it seems like there's no way to set it outside of the generated code. For example, using
otelhttp.WithSpanOptions()for configuringotelhttp.NewHandlerdoesn't work since it only acceptstrace.SpanStartOptions and nottrace.SpanEndOptions.Beta Was this translation helpful? Give feedback.
All reactions