Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support upstream autodetection of service.version #4010

Draft
wants to merge 2 commits into
base: appInsights3.7
Choose a base branch
from

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