Skip to content

Conversation

@Eskibear
Copy link
Member

@Eskibear Eskibear commented Jun 5, 2024

Previously, some constants are copied directly from .NET provider, thus have UpperCamelCase, which looks like a type/class.
This PR renames constants with UPPER_SNAKE_CASE for convention and consistency. The changes include:

  • constants renaming.
  • extract common code into getConfigurationSettingWithTrace and listConfigurationSettingsWithTrace in the tracing utils, instead of exposing constant CORRELATION_CONTEXT_HEADER_NAME and the helper method createCorrelationContextHeader (where you have to construct the correlation header by your own when calling it). leave it to a separate PR for clarity

@Eskibear Eskibear merged commit 1059213 into main Jun 11, 2024
@Eskibear Eskibear deleted the yanzh/constants-naming branch June 11, 2024 04:24
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.

3 participants