-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: do not set Endpoint
and Headers
#60
Conversation
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
WalkthroughThis update focuses on enhancing configuration flexibility and compatibility within a plugin, specifically by refining how environment variables and configuration files are utilized. The removal of default endpoint settings and the update to how endpoints and headers are managed streamline the configuration process, while the addition of a deprecation warning for the Jaeger exporter signals a shift towards newer standards or tools. Changes
Assessment against linked issues
Related issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 2
Configuration used: CodeRabbit UI
Files selected for processing (2)
- config.go (1 hunks)
- plugin.go (1 hunks)
Additional comments: 3
config.go (1)
- 73-78: > 📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [64-64]
The deprecation warning for the Jaeger exporter is appropriate given the context. However, ensure that this warning is also reflected in the documentation and any user guides to prevent confusion.
plugin.go (2)
- 215-217: The conditional addition of the endpoint to the
options
slice based on its non-emptiness is a good practice to avoid unnecessary default configurations. This change aligns with the PR's objective to enhance configuration flexibility.- 219-221: Similarly, adding headers to the
options
slice only if thecfg
struct contains headers is a logical improvement. It ensures that headers are only set when explicitly configured, enhancing the plugin's configurability.
This is applying the change from roadrunner-server#60 to the grpc client.
Reason for This PR
closes: roadrunner-server/roadrunner#1848
Description of Changes
Endpoint
/Headers
might be set via envs.License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.
PR Checklist
[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]
git commit -s
).CHANGELOG.md
.Summary by CodeRabbit