Skip to content

Restore unique_host_name logic for AppDynamics#884

Merged
dmikusa merged 1 commit intocloudfoundry:mainfrom
mmessmore:main
Jun 11, 2021
Merged

Restore unique_host_name logic for AppDynamics#884
dmikusa merged 1 commit intocloudfoundry:mainfrom
mmessmore:main

Conversation

@mmessmore
Copy link
Contributor

PR #870 reversed the logic overriding the default_unique_host_name with
the application_name. This results in problems with AppDynamics where
applications running on multiple foundations are unable to add metrics
when using the same application name in Cloud Foundry.

Really, application_name should never be used. unique_host_name is
by definition a unique identifier vs an application_name, which is not
guaranteed to be unique.

But this restores the previous logic, which was functional and may have
handled cases I am not aware of.

PR #870 reversed the logic overriding the default_unique_host_name with
the application_name.  This results in problems with AppDynamics where
applications running on multiple foundations are unable to add metrics
when using the same application name in Cloud Foundry.

Really, application_name should never be used. unique_host_name is
by definition a unique identifier vs an application_name, which is not
guaranteed to be unique.

But this restores the previous logic, which was functional and may have
handled cases I am not aware of.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 10, 2021

CLA Signed

The committers are authorized under a signed CLA.

@mmessmore mmessmore changed the title Restore unique_host_name logic Restore unique_host_name logic for AppDynamics Jun 10, 2021
@dmikusa
Copy link
Contributor

dmikusa commented Jun 11, 2021

Good catch & thanks for the PR. It was not the intent of #870 to change that behavior. If default_unique_host_name is set, it should be what gets used. Sorry for the inconvenience.

@dmikusa dmikusa merged commit 51bb898 into cloudfoundry:main Jun 11, 2021
@mmessmore
Copy link
Contributor Author

No worries. Just noticed and wanted to help fix vs complain. Thanks!

ramonskie pushed a commit that referenced this pull request Dec 4, 2025
PR #870 reversed the logic overriding the default_unique_host_name with
the application_name.  This results in problems with AppDynamics where
applications running on multiple foundations are unable to add metrics
when using the same application name in Cloud Foundry.

Really, application_name should never be used. unique_host_name is
by definition a unique identifier vs an application_name, which is not
guaranteed to be unique.

But this restores the previous logic, which was functional and may have
handled cases I am not aware of.
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.

2 participants