Skip to content

Handle "(devel)" version modules #2437

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

Merged
merged 5 commits into from
Jun 24, 2025
Merged

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jun 20, 2025

Instead of failing to parse user modules with a version of "(devel)", use a placeholder version value.

These modules are not known to be used by our probes. Failing to parse their version and then failing the instrumentation is not desired behavior. Instead, communicate the development state of the modules by using a placeholder version.

In contrast to #2401, this approach does not drop the parsing of the (devel) module, nor does it require changing function signatures. If the development version placeholder is used to compare it will always return false (due to the build portion of the version).

Supersedes #2401
Fix #2388

Instead of failing to parse user modules with a version of "(devel)",
use a placeholder version value.

These modules are not known to be used by our probes. Failing to parse
their version and then failing the instrumentation is not desired
behavior. Instead, communicate the development state of the modules by
using a placeholder version.
@MrAlias MrAlias added this to the v0.22.1 milestone Jun 20, 2025
@MrAlias MrAlias marked this pull request as ready for review June 20, 2025 18:00
@MrAlias MrAlias requested a review from a team as a code owner June 20, 2025 18:00
Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

Looks good!

@MrAlias MrAlias changed the title Handle "(devel)" ver mods Handle "(devel)" version modules Jun 21, 2025
@MrAlias MrAlias merged commit da1ae21 into open-telemetry:main Jun 24, 2025
40 checks passed
@MrAlias MrAlias deleted the parse-devel-mods branch June 24, 2025 15:03
@MrAlias MrAlias mentioned this pull request Jul 1, 2025
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.

failed to create instrumentation
3 participants