Skip to content

Commit

Permalink
opentelemetry: Mark registerGlobal() as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed May 14, 2024
1 parent 3158f91 commit d086f5a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.google.common.base.Supplier;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import io.grpc.ExperimentalApi;
import io.grpc.InternalConfigurator;
import io.grpc.InternalConfiguratorRegistry;
import io.grpc.InternalManagedChannelBuilder;
Expand Down Expand Up @@ -126,6 +127,7 @@ MetricSink getSink() {
* Registers GrpcOpenTelemetry globally, applying its configuration to all subsequently created
* gRPC channels and servers.
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10591")
public void registerGlobal() {
InternalConfiguratorRegistry.setConfigurators(Collections.singletonList(
new InternalConfigurator() {
Expand Down

0 comments on commit d086f5a

Please sign in to comment.