Skip to content
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

[Beta] Updating Azure Function Hook logic #1071

Merged
merged 5 commits into from
Feb 7, 2023
Merged

Conversation

hectorhdzg
Copy link
Member

Adding azure/funciton-core types
Removing auto generation of server spans and only support context propagation for now
Updating OpenTelemetry dependencies

Copy link
Contributor

@JacksonWeber JacksonWeber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -13,19 +13,17 @@ export class AzureFunctionsHook {
constructor() {
try {
this._functionsCoreModule = require("@azure/functions-core");
// Only v3 of Azure Functions library is supported right now. See matrix of versions here:
// https://github.com/Azure/azure-functions-nodejs-library
const funcProgModel = this._functionsCoreModule.getProgrammingModel();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this return null?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't but if that happens the catch will take care of it. I don't believe we want to do anything if we cannot get the programming model.

@hectorhdzg hectorhdzg merged commit 56fa67e into beta Feb 7, 2023
@hectorhdzg hectorhdzg deleted the hectorhdzg/azurefnupdate branch March 23, 2023 20:06
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