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

Spans created by TracedThriftServer should be Server spans by default #210

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

bpholt
Copy link
Member

@bpholt bpholt commented Oct 3, 2024

No description provided.

@bpholt bpholt self-assigned this Oct 3, 2024
@bpholt bpholt requested a review from a team as a code owner October 3, 2024 18:49
@@ -44,39 +43,35 @@ object TracedThriftServer {
)
(implicit ec: ExecutionContext,
LocalSpan: Local[F, Span[F]]): Resource[F, ListeningServer] =
TracedThriftServer(addr, label, iface, entryPoint, Span.Options.Defaults.withSpanKind(Span.SpanKind.Server))
Copy link
Member Author

Choose a reason for hiding this comment

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

Adding Span.Options.Defaults.withSpanKind(Span.SpanKind.Server) is the key change in this PR; the rest is really just refactoring.

@bpholt bpholt merged commit 49e2e22 into main Oct 3, 2024
12 checks passed
@bpholt bpholt deleted the span-options branch October 3, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants