Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: make trace provider in loadtest, add tracing to sdk#4939

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deansheather merged 5 commits intomainfromdean/codersdk-tracing
Nov 8, 2022

Conversation

@deansheather
Copy link
Member

  • Create a tracing provider incoder loadtest using the given configuration flags
  • Create a global span for the entire loadtest process
  • Add tracing tocodersdk.(*Client).Request (using parent function name) and select other methods in codersdk
  • Add tracing to loadtests
  • Add request/response logging support to codersdk
  • Add trace propagation to codersdk (opt-in on*Client through an option) and coderd using the standardizedtraceparent header

Untested whether the tracing propagation works, I'll need to setup a test env for it

ctx,span:=tracing.StartSpan(ctx)
deferspan.End()

conn,err:=c.DialContextTCP(ctx,netip.AddrPortFrom(TailnetIP,uint16(TailnetReconnectingPTYPort)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be nice to capture the errors in the span too.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

There are a lot of errors across the codebase we would have to catch, so it's kinda weird to only do it here. It'd be nice if we could hook into all returned error values in Golang but I don't think that's possible without writing and enforcing a wrapper for errors instead of xerrors.Errorf

@deansheather
Copy link
MemberAuthor

Propagation works properly now.

@deansheatherdeansheather merged commitd82364b intomainNov 8, 2022
@deansheatherdeansheather deleted the dean/codersdk-tracing branchNovember 8, 2022 22:10
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsNov 8, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

1 more reviewer

@coadlercoadlercoadler approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@deansheather@coadler

[8]ページ先頭

©2009-2025 Movatter.jp