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

feat(azure_functions): add azure functions integration #11474

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

duncanpharvey
Copy link

@duncanpharvey duncanpharvey commented Nov 20, 2024

This PR adds an integration for tracing the azure-functions package.

Additional Notes:

Checklist

  • PR author has checked that all the criteria below are met
  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • Reviewer has checked that all the criteria below are met
  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

Copy link
Contributor

github-actions bot commented Nov 20, 2024

CODEOWNERS have been resolved as:

.riot/requirements/1337ee3.txt                                          @DataDog/apm-python
.riot/requirements/14b54db.txt                                          @DataDog/apm-python
.riot/requirements/1e62aea.txt                                          @DataDog/apm-python
.riot/requirements/73109d5.txt                                          @DataDog/apm-python
.riot/requirements/c2420c2.txt                                          @DataDog/apm-python
ddtrace/contrib/azure_functions/__init__.py                             @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/azure_functions/patch.py                                @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/internal/azure_functions/patch.py                       @DataDog/apm-core-python @DataDog/apm-idm-python
releasenotes/notes/feat-add-azure-functions-integration-108911bfe1e5f081.yaml  @DataDog/apm-python
tests/contrib/azure_functions/__init__.py                               @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/azure_functions/azure_function_app/function_app.py        @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/azure_functions/azure_function_app/host.json              @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/azure_functions/azure_function_app/local.settings.json    @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/azure_functions/test_azure_functions.py                   @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/azure_functions/test_azure_functions_patch.py             @DataDog/apm-core-python @DataDog/apm-idm-python
tests/snapshots/tests.contrib.azure_functions.test_azure_functions.test_azure_function.json  @DataDog/apm-python
.circleci/config.templ.yml                                              @DataDog/python-guild @DataDog/apm-core-python
.github/workflows/requirements-locks.yml                                @DataDog/python-guild @DataDog/apm-core-python
ddtrace/_monkey.py                                                      @DataDog/apm-core-python
ddtrace/ext/__init__.py                                                 @DataDog/apm-core-python @DataDog/apm-idm-python
docker-compose.yml                                                      @DataDog/apm-core-python
docker/Dockerfile                                                       @DataDog/apm-core-python
riotfile.py                                                             @DataDog/apm-python
tests/contrib/suitespec.yml                                             @DataDog/apm-core-python @DataDog/apm-idm-python

@duncanpharvey duncanpharvey changed the title Add Azure Functions Integration feat: add azure functions integration Nov 20, 2024
@duncanpharvey duncanpharvey force-pushed the duncan-harvey/azure-functions-integration branch from 7c49099 to b9e3a70 Compare November 25, 2024 20:39
try:
client.get_ignored("/shutdown")
except Exception:
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

🔴 Code Quality Violation

silent exception (...read more)

Using the pass statement in an exception block ignores the exception. Exceptions should never be ignored. Instead, the user must add code to notify an exception occurred and attempt to handle it or recover from it.

The exception to this rule is the use of StopIteration or StopAsyncIteration when implementing a custom iterator (as those errors are used to acknowledge the end of a successful iteration).

View in Datadog  Leave us feedback  Documentation

@duncanpharvey duncanpharvey force-pushed the duncan-harvey/azure-functions-integration branch from b9e3a70 to 10a50a1 Compare November 25, 2024 20:40
@pr-commenter
Copy link

pr-commenter bot commented Nov 25, 2024

Benchmarks

Benchmark execution time: 2024-11-27 16:23:15

Comparing candidate commit ac03dfd in PR branch duncan-harvey/azure-functions-integration with baseline commit d386312 in branch main.

Found 1 performance improvements and 0 performance regressions! Performance is the same for 387 metrics, 2 unstable metrics.

scenario:iast_aspects-ospathsplitext_aspect

  • 🟩 execution_time [-380.493ns; -329.263ns] or [-9.599%; -8.306%]

@duncanpharvey duncanpharvey force-pushed the duncan-harvey/azure-functions-integration branch 3 times, most recently from 1fc8c18 to 12969c6 Compare November 26, 2024 15:23
@duncanpharvey duncanpharvey force-pushed the duncan-harvey/azure-functions-integration branch from 12969c6 to fb17586 Compare November 26, 2024 15:24
@duncanpharvey duncanpharvey force-pushed the duncan-harvey/azure-functions-integration branch from fb17586 to cdecdaa Compare November 26, 2024 16:20
@duncanpharvey duncanpharvey changed the title feat: add azure functions integration feat(azure_functions): add azure functions integration Nov 26, 2024
@duncanpharvey duncanpharvey marked this pull request as ready for review November 26, 2024 18:29
@duncanpharvey duncanpharvey requested review from a team as code owners November 26, 2024 18:29
@duncanpharvey duncanpharvey force-pushed the duncan-harvey/azure-functions-integration branch from ca0a772 to 547dc32 Compare November 26, 2024 18:51
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.

1 participant