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

[SDTEST-1129] Internal: decouple patcher from tracing, update ruby 3.4 compatibility #252

Merged
merged 6 commits into from
Nov 6, 2024

Conversation

anmarchenko
Copy link
Member

What does this PR do?
Migrates patcher code from Datadog::Tracing::Contrib to Datadog::CI::Contrib

Motivation
Reduce coupling with private tracing details. Move all contrib/integrations code to CI to be able to develop independent auto-instrumentation feature.

How to test the change?
It works if unit tests still pass

@anmarchenko anmarchenko requested review from a team as code owners November 5, 2024 16:10
@anmarchenko anmarchenko changed the title Anmarchenko/decouple_patcher_from_tracing [SDTEST-1129] Internal: decouple patcher from tracing Nov 5, 2024
@anmarchenko anmarchenko changed the title [SDTEST-1129] Internal: decouple patcher from tracing [SDTEST-1129] Internal: decouple patcher from tracing, update ruby 3.4 compatibility Nov 5, 2024
Copy link
Member

@Strech Strech left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼

If you have time, maybe it makes sense to give a bit love to the untyped RBS returns.


def on_patch_error: (untyped e) -> untyped

def default_tags: () -> untyped
Copy link
Member

Choose a reason for hiding this comment

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

I know that it might be cumbersome to fill in, but maybe we can shape it a bit? Like if it's Array, we can state it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hopefully, while building auto instrumentation feature I will have a chance to rethink all of it and remove this all. Generally, all this stuff was created for APM use case and most of it isn't required for this more focused library and narrower use case.

@anmarchenko anmarchenko merged commit acc48cb into main Nov 6, 2024
31 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/decouple_patcher_from_tracing branch November 6, 2024 11:38
@github-actions github-actions bot added this to the 1.9.0 milestone Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants