Skip to content

Commit

Permalink
Add missing FQN for common resource attributes
Browse files Browse the repository at this point in the history
fixes #4328
  • Loading branch information
cartermp committed Apr 20, 2024
1 parent 8c191ee commit 101f4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/languages/java/exporters.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public class DiceApplication {

@Bean
public OpenTelemetry openTelemetry() {
Resource resource = Resource.getDefault().toBuilder().put(SERVICE_NAME, "dice-server").put(SERVICE_VERSION, "0.1.0").build();
Resource resource = Resource.getDefault().toBuilder().put(ResourceAttributes.SERVICE_NAME, "dice-server").put(ResourceAttributes.SERVICE_VERSION, "0.1.0").build();

SdkTracerProvider sdkTracerProvider = SdkTracerProvider.builder()
.addSpanProcessor(BatchSpanProcessor.builder(OtlpGrpcSpanExporter.builder().build()).build())
Expand Down

0 comments on commit 101f4ab

Please sign in to comment.