-
Notifications
You must be signed in to change notification settings - Fork 1
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
NH-34752 Add config JSON file support #133
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just had a small question
# TODO after alpha: is_lambda | ||
for key in available_cnf: | ||
cnf_key_parts = key.split("_") | ||
cnf = f"{cnf_key_parts[0]}{''.join(part.title() for part in cnf_key_parts[1:])}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure I understand this goes from snake_case
to camelCase
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe worth extracting to a function in a future revision to make it more evident at first glance
Implements the stub for
update_with_cnf_file
and adds a helperupdate_transaction_filters
. Both read values from a customer file atSW_APM_CONFIG_FILE
else the default./solarwinds-apm-config.json
, to copy what Java APM does. Values are stored in theSolarWindsApmConfig
init'd by Configurator and passed to our custom Otel components at service startup.The config file JSON keys are a bit different than Java. Example:
triggerTrace
SW_APM_TRIGGER_TRACE
All thoughts/questions welcome!
Next PRs:
transaction_filters
atshould_sample