/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.instrumentation.resources;

import com.google.auto.service.AutoService;
import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties;
import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider;
import io.opentelemetry.sdk.resources.Resource;

/** {@link ResourceProvider} for automatically configuring {@link OsResource}. */
@AutoService(ResourceProvider.class)
public final class OsResourceProvider implements ResourceProvider {
  @Override
  public Resource createResource(ConfigProperties config) {
    return OsResource.get();
  }
}
