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

Remove experimental methods out of (to-be-public) TelemetryBuilder classes #12847

Merged
merged 8 commits into from
Dec 17, 2024

Conversation

trask
Copy link
Member

@trask trask commented Dec 7, 2024

setEmitExperimental* methods in *TelemetryBuilder classes have been deprecated and moved to internal/experimental classes, see Javadoc @deprecated for exact relocation

Part of #12846

See #12867 for change log migration notes entry

@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Dec 7, 2024
@trask trask force-pushed the move-experimental-out-of-public-api branch from a72ae3f to 0cff2dd Compare December 7, 2024 22:46
@trask trask changed the title Move experimental things out of public api Remove emitExperimentalHttpClientMetrics methods out of (to-be-public) TelemetryBuilder classes Dec 7, 2024
@trask trask force-pushed the move-experimental-out-of-public-api branch from 0cff2dd to 2e7512c Compare December 7, 2024 23:14
@trask trask marked this pull request as ready for review December 7, 2024 23:16
@trask trask requested a review from a team as a code owner December 7, 2024 23:16
@trask trask force-pushed the move-experimental-out-of-public-api branch from 2e7512c to a2b128f Compare December 7, 2024 23:43
@trask trask changed the title Remove emitExperimentalHttpClientMetrics methods out of (to-be-public) TelemetryBuilder classes Remove experimental methods out of (to-be-public) TelemetryBuilder classes Dec 8, 2024
@trask trask force-pushed the move-experimental-out-of-public-api branch 2 times, most recently from 39a22aa to ce4bd9b Compare December 9, 2024 04:06
Comment on lines 35 to 45
/**
* @deprecated Use {@link Experimental#setEmitExperimentalTelemetry(NettyClientTelemetryBuilder,
* boolean)} instead.
*/
@Deprecated
@CanIgnoreReturnValue
public NettyClientTelemetryBuilder setEmitExperimentalHttpClientEvents(
boolean emitExperimentalHttpClientEvents) {
this.emitExperimentalHttpClientEvents = emitExperimentalHttpClientEvents;
boolean emitExperimentalTelemetry) {
this.emitExperimentalTelemetry = emitExperimentalTelemetry;
return this;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I combined this with emitExperimentalTelemetry, which matches how it's enabled under single java agent flag otel.instrumentation.http.client.emit-experimental-telemetry

@trask trask merged commit b08d272 into open-telemetry:main Dec 17, 2024
56 checks passed
@trask trask deleted the move-experimental-out-of-public-api branch December 17, 2024 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test native This label can be applied to PRs to trigger them to run native tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants