Skip to content

NH-146315 Remove unused helper calculate_otlp_transaction_name - #847

Merged
tammy-baylis-swi merged 1 commit into
mainfrom
NH-146315-rm-unused-fn
Aug 18, 2026
Merged

NH-146315 Remove unused helper calculate_otlp_transaction_name#847
tammy-baylis-swi merged 1 commit into
mainfrom
NH-146315-rm-unused-fn

Conversation

@tammy-baylis-swi

Copy link
Copy Markdown
Contributor

Noted in PR comment: ResponseTimeProcessor.calculate_otlp_transaction_name seems to not be used anymore. Removes it and its tests.

Copilot AI 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.

Pull request overview

This PR removes the unused ResponseTimeProcessor.calculate_otlp_transaction_name helper (and its associated unit tests) from the SolarWinds APM OpenTelemetry distribution, aligning the implementation with current usage patterns noted in PR #833 review feedback.

Changes:

  • Deleted ResponseTimeProcessor.calculate_otlp_transaction_name from solarwinds_apm/trace/response_time_processor.py.
  • Removed the now-unneeded INTL_SWO_TRANSACTION_ATTR_MAX import from the same module.
  • Removed unit tests that exclusively validated calculate_otlp_transaction_name.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
solarwinds_apm/trace/response_time_processor.py Removes the unused transaction-name helper and its unused constant import.
tests/unit/test_processors/test_response_time_processor.py Removes unit tests that covered the deleted helper method.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tammy-baylis-swi
tammy-baylis-swi marked this pull request as ready for review August 18, 2026 16:23
@tammy-baylis-swi
tammy-baylis-swi requested review from a team as code owners August 18, 2026 16:23

@cheempz cheempz 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.

LGTM

@tammy-baylis-swi
tammy-baylis-swi merged commit 559be7a into main Aug 18, 2026
65 checks passed
@tammy-baylis-swi
tammy-baylis-swi deleted the NH-146315-rm-unused-fn branch August 18, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants