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

Add linter rules to prevent uses of the SDK in bridges and instrumentations #6145

Merged
merged 10 commits into from
Sep 25, 2024

Conversation

dmathieu
Copy link
Member

Bridges and instrumentations shouldn't rely on the SDK (except in tests located in a test submodule).
So this adds a linter rule which enforces it.

I have fixes the obvious failures. For anything that wasn't trivial, I've set exceptions, as I don't want this PR to become huge.

@dmathieu dmathieu added the Skip Changelog Allow PR to succeed without requiring an addition to the CHANGELOG label Sep 23, 2024
@dmathieu dmathieu marked this pull request as ready for review September 23, 2024 14:07
@dmathieu dmathieu requested review from MadVikingGod, a team and dashpole as code owners September 23, 2024 14:07
@dmathieu dmathieu force-pushed the instrumentation-no-sdk branch from b02734c to 52b38b6 Compare September 23, 2024 15:02
Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

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

👍

@dmathieu dmathieu merged commit f188a52 into open-telemetry:main Sep 25, 2024
25 checks passed
@dmathieu dmathieu deleted the instrumentation-no-sdk branch September 25, 2024 07:34
@MrAlias MrAlias added this to the v1.31.0 milestone Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog Allow PR to succeed without requiring an addition to the CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants