Skip to content

[server] Finish spans #8853

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

Merged
merged 1 commit into from
Mar 21, 2022
Merged

[server] Finish spans #8853

merged 1 commit into from
Mar 21, 2022

Conversation

geropl
Copy link
Member

@geropl geropl commented Mar 17, 2022

Description

Finish dangling spans

Related Issue(s)

Fixes #

How to test

Release Notes

NONE

Documentation

@geropl geropl requested a review from a team March 17, 2022 08:43
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Mar 17, 2022
Copy link
Contributor

@jankeromnes jankeromnes left a comment

Choose a reason for hiding this comment

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

Looks good to me, many thanks! 👍🧹

Left one question about pre-existing code, otherwise good for merge.

@@ -1389,27 +1398,34 @@ export class WorkspaceStarter {
user: User,
): Promise<{ initializer: GitInitializer | CompositeInitializer; disposable: Disposable }> {
const span = TraceContext.startSpan("createInitializerForCommit", ctx);
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't spans have the same name as their method? (If they should, we could probably enforce this with a custom linting rule):

Suggested change
const span = TraceContext.startSpan("createInitializerForCommit", ctx);
const span = TraceContext.startSpan("createCommitInitializer", ctx);

@roboquat roboquat merged commit 6043cc0 into main Mar 21, 2022
@roboquat roboquat deleted the gpl/finish-spans branch March 21, 2022 09:14
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/L team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants