Skip to content

Commit 2498309

Browse files
authored
update fastapi versions
1 parent 8a2bfc7 commit 2498309

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

instrumentation/opentelemetry-instrumentation-fastapi/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies = [
3535

3636
[project.optional-dependencies]
3737
instruments = [
38-
"fastapi ~= 0.58",
38+
"fastapi ~= 0.92",
3939
]
4040

4141
[project.entry-points.opentelemetry_instrumentor]

instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515

16-
_instruments = ("fastapi ~= 0.58",)
16+
_instruments = ("fastapi ~= 0.92",)
1717

1818
_supports_metrics = True
1919

instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,15 +1074,15 @@ def mock_version_with_fastapi(*args, **kwargs):
10741074
req_name = args[0]
10751075
if req_name == "fastapi":
10761076
# TODO: Value now matters
1077-
return "0.58"
1077+
return "0.109"
10781078
raise PackageNotFoundError()
10791079

10801080

10811081
def mock_version_with_old_fastapi(*args, **kwargs):
10821082
req_name = args[0]
10831083
if req_name == "fastapi":
10841084
# TODO: Value now matters
1085-
return "0.57"
1085+
return "0.92"
10861086
raise PackageNotFoundError()
10871087

10881088

0 commit comments

Comments
 (0)