Skip to content

Commit

Permalink
addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Apr 11, 2024
1 parent 7960534 commit 969f324
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
6 changes: 1 addition & 5 deletions sdk-autoconfigure-support/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ plugins {
id("otel.publish-conventions")
}

group = "io.opentelemetry.javaagent"
group = "io.opentelemetry.instrumentation"

dependencies {
api("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")

compileOnly("com.google.code.findbugs:annotations")
testCompileOnly("com.google.code.findbugs:annotations")

annotationProcessor("com.google.auto.service:auto-service")
compileOnly("com.google.auto.service:auto-service-annotations")
testCompileOnly("com.google.auto.service:auto-service-annotations")
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

package io.opentelemetry.instrumentation.resources;

import com.google.auto.service.AutoService;
import io.opentelemetry.sdk.autoconfigure.spi.AutoConfigurationCustomizer;
import io.opentelemetry.sdk.autoconfigure.spi.AutoConfigurationCustomizerProvider;
import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties;
Expand All @@ -18,7 +17,6 @@
import java.util.Set;
import javax.annotation.Nullable;

@AutoService(AutoConfigurationCustomizerProvider.class)
public class ResourceProviderPropertiesCustomizer implements AutoConfigurationCustomizerProvider {

private static final Map<String, String> DISABLED_BY_DEFAULT_RESOURCE_PROVIDERS = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.opentelemetry.instrumentation.resources.ResourceProviderPropertiesCustomizer
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.sdk.autoconfigure;

import io.opentelemetry.api.common.Attributes;

public final class SdkAutoconfigureAccess {
public static Attributes getResourceAttributes(AutoConfiguredOpenTelemetrySdk sdk) {
return sdk.getResource().getAttributes();
}

private SdkAutoconfigureAccess() {}
}

0 comments on commit 969f324

Please sign in to comment.