Skip to content

Conversation

@opentelemetrybot
Copy link
Contributor

Update the OpenTelemetry SDK version to 1.42.0.

@opentelemetrybot opentelemetrybot requested a review from a team September 6, 2024 16:54
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Sep 6, 2024
@github-actions github-actions bot requested a review from theletterf September 6, 2024 16:55
LongCounterBuilder counterBuilder = meter.counterBuilder("test");
assertThat(counterBuilder).isNotInstanceOf(ExtendedLongCounterBuilder.class);
assertThat(counterBuilder).isInstanceOf(ExtendedLongCounterBuilder.class);
((ExtendedLongCounterBuilder) counterBuilder).setAttributesAdvice(emptyList());
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the purpose of this setting empty attributesAdvice?

Copy link
Contributor

Choose a reason for hiding this comment

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

This test was introduced in #11934 We verified that when the underlying instrument is noop then our bridge did not implement the incubating api, because the noop instrument itself didn't implement it making bridging impossible. Now noop instruments implement the incubating api and so does our bridge, we call setAttributesAdvice as was done in #11928 to verify that this works and there are no exceptions. The argument list doesn't really matter for this test and using empty list should be fine.

LongUpDownCounterBuilder upDownCounterBuilder = meter.upDownCounterBuilder("test");
assertThat(upDownCounterBuilder).isNotInstanceOf(ExtendedLongUpDownCounterBuilder.class);
assertThat(upDownCounterBuilder).isInstanceOf(ExtendedLongUpDownCounterBuilder.class);
((ExtendedLongUpDownCounterBuilder) upDownCounterBuilder).setAttributesAdvice(emptyList());
Copy link
Contributor

Choose a reason for hiding this comment

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

same question for the rest.

@trask trask merged commit cab8ce6 into main Sep 12, 2024
55 checks passed
@trask trask deleted the opentelemetrybot/update-opentelemetry-sdk-to-1.42.0 branch September 12, 2024 02:05
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.

4 participants