Skip to content

Commit 7a23085

Browse files
committed
sync
1 parent e47330b commit 7a23085

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

scripts/generate_instrumentation_bootstrap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def main():
9393
values=[ast.Str(target_pkg), ast.Str(pkg["requirement"])],
9494
)
9595
)
96+
# instruments-any is an optional field that can be used instead of or in addition to _instruments. While _instruments is a list of dependencies, all of which are expected by the instrumentation, instruments-any is a list any of which but not all are expected.
9697
for target_pkg in pkg["instruments-any"]:
9798
libraries.elts.append(
9899
ast.Dict(

scripts/generate_instrumentation_readme.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def main(base_instrumentation_path):
5959
exec(fh.read(), pkg_info)
6060

6161
instruments_and = pkg_info.get("_instruments", ())
62+
# _instruments_any is an optional field that can be used instead of or in addition to _instruments. While _instruments is a list of dependencies, all of which are expected by the instrumentation, _instruments_any is a list any of which but not all are expected.
6263
instruments_any = pkg_info.get("_instruments_any", ())
6364
supports_metrics = pkg_info.get("_supports_metrics")
6465
semconv_status = pkg_info.get("_semconv_status")

scripts/otel_packaging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def get_instrumentation_packages(
6464
"optional-dependencies"
6565
]
6666
instruments = optional_dependencies.get("instruments", [])
67+
# instruments-any is an optional field that can be used instead of or in addition to instruments. While instruments is a list of dependencies, all of which are expected by the instrumentation, instruments-any is a list any of which but not all are expected.
6768
instruments_any = optional_dependencies.get("instruments-any", [])
6869
instrumentation = {
6970
"name": pyproject_toml["project"]["name"],

0 commit comments

Comments
 (0)