Skip to content

Commit 0f73a54

Browse files
committed
Add asgi and fastapi
1 parent 8b1e198 commit 0f73a54

File tree

2 files changed

+236
-2
lines changed

2 files changed

+236
-2
lines changed

pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ dependencies = [
99
"opentelemetry-semantic-conventions",
1010
"opentelemetry-test-utils",
1111
"opentelemetry-instrumentation",
12+
"opentelemetry-instrumentation-asgi[instruments]",
13+
"opentelemetry-instrumentation-fastapi[instruments]",
1214
"opentelemetry-instrumentation-httpx[instruments]",
1315
"opentelemetry-util-http",
1416
]
1517

1618
# https://docs.astral.sh/uv/reference/settings/
1719
[tool.uv]
18-
package = false # https://docs.astral.sh/uv/reference/settings/#package
20+
package = false # https://docs.astral.sh/uv/reference/settings/#package
1921

2022
# https://docs.astral.sh/uv/reference/settings/#sources
2123
[tool.uv.sources]
@@ -24,12 +26,21 @@ opentelemetry-sdk = { git = "https://github.com/open-telemetry/opentelemetry-pyt
2426
opentelemetry-semantic-conventions = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "opentelemetry-semantic-conventions" }
2527
opentelemetry-test-utils = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "tests/opentelemetry-test-utils" }
2628
opentelemetry-instrumentation = { workspace = true }
29+
opentelemetry-instrumentation-asgi = { workspace = true }
30+
opentelemetry-instrumentation-fastapi = { workspace = true }
2731
opentelemetry-instrumentation-httpx = { workspace = true }
2832
opentelemetry-util-http = { workspace = true }
2933

3034
# https://docs.astral.sh/uv/reference/settings/#workspace
3135
[tool.uv.workspace]
32-
members = ["opentelemetry-instrumentation", "instrumentation/opentelemetry-instrumentation-httpx", "util/opentelemetry-util-http"]
36+
members = [
37+
"opentelemetry-instrumentation",
38+
# TODO: When all instrumentation packages are moved to the workspace, we can replace the below with `instrumentation/*`.
39+
"instrumentation/opentelemetry-instrumentation-asgi",
40+
"instrumentation/opentelemetry-instrumentation-fastapi",
41+
"instrumentation/opentelemetry-instrumentation-httpx",
42+
"util/opentelemetry-util-http",
43+
]
3344

3445
[tool.ruff]
3546
# https://docs.astral.sh/ruff/configuration/

0 commit comments

Comments
 (0)