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

rename the table_name parameter of the azure monitor destination #531

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jszigetvari
Copy link
Contributor

The table_name parameter of the azure-monitor destination is actually referring to the stream name in the DCR, and not the table the logs end up getting written to. The actual destination table name is referenced in the DCR.
For this reason the table_name parameter should be rename to stream_name.

  * rename the table_name parameter to stream_name
    to match the actual behavior of the ingestion process
  * eliminate the two frontend blocks as they have become
    redundant

Signed-off-by: Janos Szigetvari <[email protected]>
@jszigetvari jszigetvari self-assigned this Feb 27, 2025
@alltilla alltilla requested a review from MrAnno February 27, 2025 15:00
@@ -49,47 +52,3 @@ block destination _azure_monitor_internal(
`__VARARGS__`
);
};

block destination azure_monitor_builtin(
Copy link
Member

Choose a reason for hiding this comment

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

Please keep the old destinations for a few more releases because this would be a breaking change otherwise.
We can deprecate the old ones and document only the new one, but let's keep them here for 2 more releases.

Copy link
Member

Choose a reason for hiding this comment

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

(I'm sure nobody started using it, so the whole deprecation ceremony is useless, but due to how we version AxoSyslog releases, this is the cleanest and fair way.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please keep the old destinations for a few more releases because this would be a breaking change otherwise. We can deprecate the old ones and document only the new one, but let's keep them here for 2 more releases.

Okay, so azure_monitor_builtin() and azure_monitor_custom() should remain, but what about the table_name paramter? Should it be aliased to stream_name along the same reasoning?

Copy link
Member

@MrAnno MrAnno Feb 27, 2025

Choose a reason for hiding this comment

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

We can create aliases as long as they won't break existing configurations, but I think it does not worth the extra efforts. As you see fit.

bultin() and custom() are now considered deprecated, we can remove them in 4.12.0 completely.

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