Skip to content

Commit

Permalink
move ServiceInstanceIdResourceProvider to incubator
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Apr 2, 2024
1 parent 72741df commit 5668fe3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public Resource createResource(ConfigProperties config) {
public int order() {
// Environment resource takes precedent over all other ResourceProviders except
// ServiceInstanceIdResourceProvider.
return ServiceInstanceIdResourceProvider.ORDER - 1;
return Integer.MAX_VALUE - 1;
}
}
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
io.opentelemetry.sdk.autoconfigure.internal.EnvironmentResourceProvider
io.opentelemetry.sdk.autoconfigure.internal.ServiceInstanceIdResourceProvider
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public boolean shouldApply(ConfigProperties config, Resource existing) {
@Override
public int order() {
// Run after environment resource provider - only set the service instance ID if it
// hasn't been set by any other provider.
// hasn't been set by any other provider or the user.
return ORDER;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.opentelemetry.sdk.autoconfigure.internal.ServiceInstanceIdResourceProvider

0 comments on commit 5668fe3

Please sign in to comment.