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

Remove deprecated HTTP Transport methods #3335

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Remove deprecated HTTP Transport methods #3335

merged 1 commit into from
Dec 19, 2023

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Dec 15, 2023

2.0 Upgrade Guide notes
Removed unused, non-public methods:

  • Datadog::Tracing::Transport::HTTP#default_hostname
  • Datadog::Tracing::Transport::HTTP#default_port
  • Datadog::Tracing::Transport::HTTP#default_url
  • Datadog::Core::Remote::Transport::HTTP#default_hostname
  • Datadog::Core::Remote::Transport::HTTP#default_port
  • Datadog::Core::Remote::Transport::HTTP#default_url

Motivation:
These methods are unused and sit very oddly in the transport object themselves.

Additional Notes:
These methods were never public.

How to test the change?
All changes are covered by tests (meaning no change in behavior, since these methods are unused).

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

Unsure? Have a question? Request a review!

@marcotc marcotc requested a review from a team as a code owner December 15, 2023 19:54
@marcotc marcotc self-assigned this Dec 15, 2023
@github-actions github-actions bot added core Involves Datadog core libraries tracing labels Dec 15, 2023
'be removed on a future ddtrace release.'
)

DO_NOT_USE_ENVIRONMENT_AGENT_SETTINGS.hostname
Copy link
Member

Choose a reason for hiding this comment

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

Minor: I wonder if DO_NOT_USE_ENVIRONMENT_AGENT_SETTINGS still gets used in practice, or if it is a no-op default that always gets replaced by whatever we pass in.

Copy link
Member Author

Choose a reason for hiding this comment

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

When I played around with dependency injection, I did find I believe 1 or 2 places that really still use it, and all the other references were non-functional (value is passed, but never used).

@marcotc marcotc merged commit 4faaf65 into 2.0 Dec 19, 2023
152 checks passed
@marcotc marcotc deleted the deprecated-http branch December 19, 2023 19:38
@TonyCTHsu TonyCTHsu added this to the 2.0 milestone Feb 20, 2024
@ivoanjo ivoanjo added the 2.0 label Mar 14, 2024
@TonyCTHsu TonyCTHsu modified the milestones: 2.0, 2.0.0.beta1 Mar 22, 2024
@TonyCTHsu TonyCTHsu mentioned this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 core Involves Datadog core libraries tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants