Skip to content

Conversation

trask
Copy link
Member

@trask trask commented Jan 8, 2025

@trask trask changed the title Service version Support upstream autodetection of service.version Jan 8, 2025
Comment on lines -307 to -311
// only set role instance to host name as a last resort
if (config.role.instance == null) {
String hostname = HostName.get();
config.role.instance = hostname == null ? "unknown" : hostname;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to remove this, it's already a fallback provided by the azure monitor opentelemetry autoconfigure module, and by adding it too early here it prevents other (higher priority) fallbacks from getting used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant