-
Notifications
You must be signed in to change notification settings - Fork 14
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
add schema validation for serverless >= 2.x #24
base: master
Are you sure you want to change the base?
add schema validation for serverless >= 2.x #24
Conversation
Hello @alex-murashkin , are you able to review please? Thanks. |
Update documentation to reflect to location of config
Found this PR while searching for the described warning. - const providerLevelTracingEnabled = (service.provider.tracing === true || service.provider.tracing === 'true');
+ const legacyProviderLevelTracingEnabled = service.provider.tracing?.toString() === 'true';
+ const providerLevelTracingEnabled = (
+ service.custom[PLUGIN_NAME]?.tracing?.toString() === 'true'
+ || legacyProviderLevelTracingEnabled
+ ); (Not an actual code, just a suggestion - I never wrote plugins for serverless) |
Tagging @alex-murashkin - any chance to have this resolved? |
@joquijada I've applied your PR with some modifications into my fork: https://github.com/and3rson/serverless-plugin-xray |
Hi everyone, thank you for your contributions! Unfortunately, I've been away from the serverless space for a while, and do not have time to maintain the plugin. |
Hi All, Just catching up. I've been away. At work we started migrating to SST. Since this PR was never merged, I forked this repo, created a tarball using |
Looks like as per the documentation here that plugins can define properties in the
custom:
but not theprovider:
section ofserverless.yml
. Moreover plugin properties cannot be in the top level ofcustom:
, but instead must be in a node one level down which is the namesake of the plugin.Addresses #23