-
Notifications
You must be signed in to change notification settings - Fork 76
fix: use new version of serverless functions api #5739
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
fix: use new version of serverless functions api #5739
Conversation
251dad4
to
db0e8f7
Compare
@@ -26,6 +26,15 @@ export interface EntryFile { | |||
filename: string | |||
} | |||
|
|||
export const kebabCase = (input: string): string => |
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.
Why do we have to use kebab case for the service name? Is that important enough that warrants shipping our own implementation of a kebab case transformer?
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, because Datadog has a special naming convention. Even @
signs, which are common in the generator, should not occur.
let serviceVersion: string | undefined | ||
|
||
if (generator) { | ||
const parts = generator.split('@') |
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.
Can we add a comment explaining what's going on here?
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.
There's nothing forcing generator
to include a version, so what if is something like @org/package
? This logic will make serviceVersion
contain org/package
, which is not what we want?
db0e8f7
to
f11fc4e
Compare
provide the service name and version as variables to it.
f11fc4e
to
a6c39fc
Compare
…vide-generator-variable
🎉 Thanks for submitting a pull request! 🎉
Summary
Fixes https://linear.app/netlify/issue/COM-684/trace-resource-name-and-trace-attributes
Fixes https://linear.app/netlify/issue/COM-806/change-service-name-for-nextjs-server-handler
provide the service name and version as variables to it.
For us to review and ship your PR efficiently, please perform the following steps:
we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
something that`s on fire 🔥 (e.g. incident related), you can skip this step.
your code follows our style guide and passes our tests.
A picture of a cute animal (not mandatory, but encouraged)