/*
 * Copyright 2019, OpenTelemetry Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.opentelemetry.sdk.trace;

import com.google.auto.value.AutoValue;
import io.opentelemetry.internal.Utils;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;

/**
 * Holds information about the instrumentation library specified when creating an instance of {@link
 * TracerSdk} using {@link TracerSdkFactory}.
 */
@AutoValue
@Immutable
abstract class InstrumentationLibraryInfo {

  static final InstrumentationLibraryInfo EMPTY = create("", null);

  /**
   * Creates a new instance of {@link InstrumentationLibraryInfo}.
   *
   * @param name name of the instrumentation library (e.g., "io.opentelemetry.contrib.mongodb"),
   *     must not be null
   * @param version version of the instrumentation library (e.g., "semver:1.0.0"), might be null
   * @return the new instance
   */
  static InstrumentationLibraryInfo create(String name, @Nullable String version) {
    Utils.checkNotNull(name, "name");
    return new AutoValue_InstrumentationLibraryInfo(name, version);
  }

  abstract String name();

  @Nullable
  abstract String version();
}

@@ -1004,16 +1004,23 @@
 utable%0D%0A
+public 
 abstract
@@ -1669,24 +1669,31 @@
 ;%0D%0A  %7D%0D%0A%0D%0A  
+public 
 abstract Str
@@ -1722,16 +1722,23 @@
 able%0D%0A  
+public 
 abstract
@@ -1756,12 +1756,116 @@
 sion();%0D
+%0A%0D%0A  // Package protected ctor to avoid others to extend this class.%0D%0A  InstrumentationLibraryInfo() %7B%7D%0D
 %0A%7D%0D%0A

Make InstrumentationLibraryInfo otherwise cannot be accessed in the public APIs (#658)