Skip to content

refactor: remove unused OpenTracingTracer function - #712

Open
mwbrooks wants to merge 1 commit into
mainfrom
mwbrooks-remove-dead-open-tracing-tracer
Open

mwbrooks wants to merge 1 commit into
mainfrom
mwbrooks-remove-dead-open-tracing-tracer

Conversation

@mwbrooks

Copy link
Copy Markdown
Member

Changelog

N/A - internal cleanup with no user-facing changes.

Summary

This pull request removes OpenTracingTracer from internal/slackcontext/slackcontext.go for maintainers, because the Go deadcode tool reports it as unreachable. Less unused code to read and keep compiling.

  • Removes OpenTracingTracer from internal/slackcontext/slackcontext.go
  • Removes its unit test from internal/slackcontext/slackcontext_test.go, which only tested this function

Testing

  1. Run go run golang.org/x/tools/cmd/deadcode@latest ./... | grep OpenTracingTracer and confirm there's no output
  2. Run go build ./... && go test ./... and confirm both pass

Requirements

@mwbrooks mwbrooks added this to the Next Release milestone Oct 21, 2026
@mwbrooks mwbrooks added code health M-T: Test improvements and anything that improves code health semver:patch Use on pull requests to describe the release version increment labels Oct 21, 2026
@mwbrooks mwbrooks self-assigned this Oct 21, 2026
@mwbrooks
mwbrooks requested a review from a team as a code owner October 21, 2026 17:04
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.11%. Comparing base (a2ff96f) to head (718d486).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #712      +/-   ##
==========================================
- Coverage   78.11%   78.11%   -0.01%     
==========================================
  Files         238      238              
  Lines       18112    18107       -5     
==========================================
- Hits        14148    14144       -4     
+ Misses       3964     3963       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@WilliamBergamin WilliamBergamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Keep these coming 💯

@zimeg zimeg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@mwbrooks Another of the kindest LGTM!

Comment on lines -75 to -77
// OpenTracingTracer returns the `opentracing.Tracer` associated with `ctx`, or
// `nil` and `slackerror.ErrContextValueNotFound` if no `Tracer` could be found.
func OpenTracingTracer(ctx context.Context) (opentracing.Tracer, error) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🪓 praise: Tracing tracers traced tracers tracing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code health M-T: Test improvements and anything that improves code health semver:patch Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants