Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public Class<Resource> getType() {

@Override
public String getName() {
return "opentelemetry-javaagent-distribution";
return "opentelemetry_javaagent_distribution";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
@AutoService(DeclarativeConfigurationCustomizerProvider.class)
public class ResourceCustomizerProvider implements DeclarativeConfigurationCustomizerProvider {

// opentelemetry-javaagent-distribution: adds "distro.name" and "distro.version" attributes
// opentelemetry_javaagent_distribution: adds "distro.name" and "distro.version" attributes
// (DistroComponentProvider in this package)
private static final List<String> REQUIRED_DETECTORS =
Collections.singletonList("opentelemetry-javaagent-distribution");
Collections.singletonList("opentelemetry_javaagent_distribution");

@Override
public void customize(DeclarativeConfigurationCustomizer customizer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void customize() {
try {
assertThat(objectMapper.writeValueAsString(configurationModel.getResource()))
.isEqualTo(
"{\"attributes\":[],\"detection/development\":{\"detectors\":[{\"opentelemetry-javaagent-distribution\":null}]}}");
"{\"attributes\":[],\"detection/development\":{\"detectors\":[{\"opentelemetry_javaagent_distribution\":null}]}}");
} catch (JsonProcessingException e) {
throw new AssertionError(e);
}
Expand Down
Loading