content: /*
   * Copyright The OpenTelemetry Authors
   * SPDX-License-Identifier: Apache-2.0
   */
  
  package io.opentelemetry.instrumentation.awssdk.v1_11;
  
  import com.amazonaws.services.secretsmanager.AWSSecretsManagerClientBuilder;
  import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension;
  import io.opentelemetry.instrumentation.testing.junit.LibraryInstrumentationExtension;
  import org.junit.jupiter.api.extension.RegisterExtension;
  
  class SecretsManagerClientTest extends AbstractSecretsManagerClientTest {
    @RegisterExtension
    private static final InstrumentationExtension testing = LibraryInstrumentationExtension.create();
  
    @Override
    protected InstrumentationExtension testing() {
      return testing;
    }
  
    @Override
    public AWSSecretsManagerClientBuilder configureClient(
        AWSSecretsManagerClientBuilder clientBuilder) {
  
      return clientBuilder.withRequestHandlers(
          AwsSdkTelemetry.builder(testing().getOpenTelemetry())
              .setCaptureExperimentalSpanAttributes(true)
              .build()
              .newRequestHandler());
    }
  }
  