Skip to content

Commit

Permalink
otel packages are only supported for 3.8+
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvictoria committed Feb 7, 2025
1 parent 355cee1 commit c8b7c42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Repository = "https://github.com/Azure/azure-functions-python-worker"
dev = [
"azure-eventhub", # Used for EventHub E2E tests
"azure-functions-durable", # Used for Durable E2E tests
"azure-monitor-opentelemetry", # Used for Azure Monitor unit tests
"azure-monitor-opentelemetry; python_version >= '3.8'", # Used for Azure Monitor unit tests
"flask",
"fastapi~=0.103.2",
"pydantic",
Expand All @@ -56,7 +56,7 @@ dev = [
"requests==2.*",
"coverage",
"pytest-sugar",
"opentelemetry-api", # Used for OpenTelemetry unit tests
"opentelemetry-api; python_version >= '3.8'", # Used for OpenTelemetry unit tests
"pytest-cov",
"pytest-xdist",
"pytest-randomly",
Expand Down
5 changes: 5 additions & 0 deletions tests/unittests/test_opentelemetry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import asyncio
import os
import sys
import unittest

from unittest import skipIf
from unittest.mock import MagicMock, patch

from tests.unittests.test_dispatcher import FUNCTION_APP_DIRECTORY
Expand All @@ -9,6 +12,8 @@
from azure_functions_worker import protos


@skipIf(sys.version_info.minor == 7,
"Packages are only supported for 3.8+")
class TestOpenTelemetry(unittest.TestCase):

def setUp(self):
Expand Down

0 comments on commit c8b7c42

Please sign in to comment.