Skip to content

Documentation: isSdkEnabled() mentioned in sdk-extensions/autoconfigure/README.md but it doesn't exist #4652

Closed
@deejgregor

Description

Describe the bug
AutoConfiguredOpenTelemetrySdk#isSdkEnabled() is mentioned in sdk-extensions/autoconfigure/README.md but that method doesn't exist (and AFAICT, it never existed in main).

Steps to reproduce
git grep isSdkEnabled

What did you expect to see?
isSdkEnabled() in the README.md and in AutoConfiguredOpenTelemetrySdk.java.

What did you see instead?
It's only in the README.

$ git checkout main
Already on 'main'
Your branch is up to date with 'origin/main'.
$ git grep isSdkEnabled
sdk-extensions/autoconfigure/README.md:The OpenTelemetry SDK can be disabled entirely. If disabled, `AutoConfiguredOpenTelemetrySdk#isSdkEnabled()` will return `false`, and `GlobalOpenTelemetry` will be set to `OpenTelemetrySdk.builder().build()`.
$

What version and what artifacts are you using?
Artifacts: opentelemetry-sdk-extension-autoconfigure
Version: 1.16.0-alpha
How did you reference these artifacts?
Top-level pom.xml:

...
  <properties>
...
    <opentelemetryVersion>1.16.0</opentelemetryVersion>
...
  </properties>
...
  <dependencyManagement>
...
      <dependency>
        <groupId>io.opentelemetry</groupId>
        <artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId> <!-- not included in opentelemetry-bom -->
        <version>${opentelemetryVersion}-alpha</version>
      </dependency>
...
  </dependencyManagement>
...

Tracing integration project pom.xml:

...
    <dependency>
      <groupId>io.opentelemetry</groupId>
      <artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId>
    </dependency>
...

Environment

openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment Homebrew (build 11.0.15+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.15+0, mixed mode)

Additional context
I don't just see this with pre-built JAR from Maven, I also see it in the source in git.

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions