Skip to content

Commit

Permalink
Add example modification for pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx committed Jun 5, 2024
1 parent b860501 commit 5421910
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies = [
"opentelemetry-semantic-conventions == 0.47b0.dev",
]

[project.optional-dependencies]
[tool.opentelemetry-bootstrap]
instruments = [
["tortoise-orm >= 0.17.0", "pydantic >= 1.10.2"],
]
Expand Down
2 changes: 1 addition & 1 deletion scripts/otel_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_instrumentation_packages():
instrumentation = {
"name": pyproject_toml["project"]["name"],
"version": version.strip(),
"instruments": pyproject_toml["project"]["optional-dependencies"][
"instruments": pyproject_toml["tool"]["opentelemety-bootstrap"][
"instruments"
],
}
Expand Down

0 comments on commit 5421910

Please sign in to comment.