# Class OpenTelemetryConfig

java.lang.Object
com.google.adk.web.config.OpenTelemetryConfig

@Configuration public class OpenTelemetryConfig extends Object
Configuration class for OpenTelemetry, setting up the tracer provider and span exporter.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OpenTelemetryConfig()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ApiServerSpanExporter`
  `apiServerSpanExporter()`
  `io.opentelemetry.api.OpenTelemetry`
  `openTelemetrySdk(io.opentelemetry.sdk.trace.SdkTracerProvider sdkTracerProvider)`
  `io.opentelemetry.sdk.trace.SdkTracerProvider`
  `sdkTracerProvider(ApiServerSpanExporter apiServerSpanExporter)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### OpenTelemetryConfig

    public OpenTelemetryConfig()

- ## Method Details

  - ### apiServerSpanExporter

    @Bean public ApiServerSpanExporter apiServerSpanExporter()

  - ### sdkTracerProvider

    @Bean(destroyMethod="shutdown") public io.opentelemetry.sdk.trace.SdkTracerProvider sdkTracerProvider(ApiServerSpanExporter apiServerSpanExporter)

  - ### openTelemetrySdk

    @Bean public io.opentelemetry.api.OpenTelemetry openTelemetrySdk(io.opentelemetry.sdk.trace.SdkTracerProvider sdkTracerProvider)