Skip to content

Ratpack library instrumentation: rename three methods#16013

Merged
laurit merged 2 commits intoopen-telemetry:mainfrom
trask:ratpack
Jan 29, 2026
Merged

Ratpack library instrumentation: rename three methods#16013
laurit merged 2 commits intoopen-telemetry:mainfrom
trask:ratpack

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Jan 27, 2026

Rename

  • getHandler() -> createHandler()
  • getExecInterceptor() -> createExecInterceptor()
  • getExecInitializer() -> createExecInitializer()


/** Returns {@link ExecInterceptor} instance to support Ratpack Registry binding. */
public ExecInterceptor getExecInterceptor() {
public static ExecInterceptor getExecInterceptor() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this would be a binary incompatible change, is that ok?

Copy link
Copy Markdown
Member Author

@trask trask Jan 27, 2026

Choose a reason for hiding this comment

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

yeah, it's not ideal to not have deprecation cycle, but we don't make any guarantees about non-stable artifacts

that said, I don't love these method names, I have now renamed them to createExec*, since they're stateless empty objects anyways and so having a single shared instance isn't important

Copy link
Copy Markdown
Contributor

@laurit laurit Jan 28, 2026

Choose a reason for hiding this comment

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

Wondering whether leaving these as non-static would look nicer. It could help if we needed to change them to non-singletons and configure them in some way.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

makes sense to me, done

@trask trask force-pushed the ratpack branch 2 times, most recently from 9f8bba2 to a5133a7 Compare January 27, 2026 20:14
@trask trask marked this pull request as ready for review January 27, 2026 20:19
@trask trask requested a review from a team as a code owner January 27, 2026 20:19
@trask trask changed the title Ratpack library instrumentation: rename getHandler to createHandler Ratpack library instrumentation: rename three methods Jan 27, 2026
@laurit laurit merged commit 444dc0a into open-telemetry:main Jan 29, 2026
85 checks passed
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