Skip to content

Conversation

SylvainJuge
Copy link
Contributor

Part of #13031 for xxl-job instrumentation

bonus: reducing duplicated advice code.

@SylvainJuge SylvainJuge marked this pull request as ready for review September 2, 2025 18:10
@SylvainJuge SylvainJuge requested a review from a team as a code owner September 2, 2025 18:10
@Advice.Local("otelContext") Context context,
@Advice.Local("otelScope") Scope scope) {
helper().stopSpan(result, request, throwable, scope, context);
@Advice.Return(typing = Assigner.Typing.DYNAMIC) @Nullable Object result,
Copy link
Contributor

Choose a reason for hiding this comment

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

wondering whether Assigner.Typing.DYNAMIC is really needed when assigning to Object

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder the same, I left it as-is for simplicity but it should be safe to remove it in the future.

@laurit laurit merged commit 14a5360 into open-telemetry:main Sep 4, 2025
89 checks passed
@SylvainJuge SylvainJuge deleted the indy-xxl-job branch September 4, 2025 09:38
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.

3 participants