File tree Expand file tree Collapse file tree 10 files changed +17
-19
lines changed
opentelemetry-instrumentation-fastapi
src/opentelemetry/instrumentation/fastapi
opentelemetry-instrumentation-kafka-python
src/opentelemetry/instrumentation/kafka
opentelemetry-instrumentation-psycopg2
src/opentelemetry/instrumentation/psycopg2 Expand file tree Collapse file tree 10 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
30
([ #3508 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3508 ) )
31
31
- ` opentelemetry-instrumentation-pymongo ` ` aggregate ` and ` getMore ` capture statements support
32
32
([ #3601 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3601 ) )
33
- - ` opentelemetry-instrumentation-fastapi ` Utilize instruments_either functionality.
33
+ - ` opentelemetry-instrumentation-fastapi ` Utilize instruments-any functionality.
34
34
([ #3612 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3612 ) )
35
- - ` opentelemetry-instrumentation-psycopg2 ` Utilize instruments_either functionality.
35
+ - ` opentelemetry-instrumentation-psycopg2 ` Utilize instruments-any functionality.
36
36
([ #3612 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3612 ) )
37
- - ` opentelemetry-instrumentation-kafka-python ` Utilize instruments_either functionality.
37
+ - ` opentelemetry-instrumentation-kafka-python ` Utilize instruments-any functionality.
38
38
([ #3612 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3612 ) )
39
39
40
40
## Version 1.34.0/0.55b0 (2025-06-04)
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ dependencies = [
34
34
35
35
[project .optional-dependencies ]
36
36
instruments = []
37
- instruments_either = [
37
+ instruments-any = [
38
38
" fastapi ~= 0.92" ,
39
39
" fastapi-slim ~= 0.92" ,
40
40
]
Original file line number Diff line number Diff line change 15
15
16
16
# TODO: update this
17
17
_instruments = ()
18
- _instruments_either = ("fastapi ~= 0.92" , "fastapi-slim ~= 0.92" )
18
+ _instruments_any = ("fastapi ~= 0.92" , "fastapi-slim ~= 0.92" )
19
19
20
20
_supports_metrics = True
21
21
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ dependencies = [
32
32
33
33
[project .optional-dependencies ]
34
34
instruments = []
35
- instruments_either = [
35
+ instruments-any = [
36
36
" kafka-python >= 2.0, < 3.0" ,
37
37
" kafka-python-ng >= 2.0, < 3.0"
38
38
]
Original file line number Diff line number Diff line change 18
18
_instruments_kafka_python_ng = "kafka-python-ng >= 2.0, < 3.0"
19
19
20
20
_instruments = ()
21
- _instruments_either = (_instruments_kafka_python , _instruments_kafka_python_ng )
21
+ _instruments_any = (_instruments_kafka_python , _instruments_kafka_python_ng )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ dependencies = [
32
32
33
33
[project .optional-dependencies ]
34
34
instruments = []
35
- instruments_either = [
35
+ instruments-any = [
36
36
" psycopg2 >= 2.7.3.1" ,
37
37
" psycopg2-binary >= 2.7.3.1" ,
38
38
]
Original file line number Diff line number Diff line change 17
17
_instruments_psycopg2 = "psycopg2 >= 2.7.3.1"
18
18
_instruments_psycopg2_binary = "psycopg2-binary >= 2.7.3.1"
19
19
20
- # TODO: maybe add _instruments_either
20
+ # TODO: maybe add _instruments_any
21
21
_instruments = ()
22
- _instruments_either = (
22
+ _instruments_any = (
23
23
_instruments_psycopg2 ,
24
24
_instruments_psycopg2_binary ,
25
25
)
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def main():
84
84
pkg_name = pkg .get ("name" )
85
85
if pkg_name in packages_to_exclude :
86
86
continue
87
- if not pkg ["instruments" ] and not pkg ["instruments_either " ]:
87
+ if not pkg ["instruments" ] and not pkg ["instruments-any " ]:
88
88
default_instrumentations .elts .append (ast .Str (pkg ["requirement" ]))
89
89
for target_pkg in pkg ["instruments" ]:
90
90
libraries .elts .append (
@@ -93,7 +93,7 @@ def main():
93
93
values = [ast .Str (target_pkg ), ast .Str (pkg ["requirement" ])],
94
94
)
95
95
)
96
- for target_pkg in pkg ["instruments_either " ]:
96
+ for target_pkg in pkg ["instruments-any " ]:
97
97
libraries .elts .append (
98
98
ast .Dict (
99
99
keys = [ast .Str ("library" ), ast .Str ("instrumentation" )],
Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ def main(base_instrumentation_path):
59
59
exec (fh .read (), pkg_info )
60
60
61
61
instruments_and = pkg_info .get ("_instruments" , ())
62
- instruments_either = pkg_info .get ("_instruments_either " , ())
62
+ instruments_any = pkg_info .get ("_instruments_any " , ())
63
63
supports_metrics = pkg_info .get ("_supports_metrics" )
64
64
semconv_status = pkg_info .get ("_semconv_status" )
65
65
instruments_all = ()
66
- if not instruments_and and not instruments_either :
66
+ if not instruments_and and not instruments_any :
67
67
instruments_all = (name ,)
68
68
else :
69
- instruments_all = tuple (instruments_and + instruments_either )
69
+ instruments_all = tuple (instruments_and + instruments_any )
70
70
71
71
if not semconv_status :
72
72
semconv_status = "development"
Original file line number Diff line number Diff line change @@ -64,14 +64,12 @@ def get_instrumentation_packages(
64
64
"optional-dependencies"
65
65
]
66
66
instruments = optional_dependencies .get ("instruments" , [])
67
- instruments_either = optional_dependencies .get (
68
- "instruments_either" , []
69
- )
67
+ instruments_any = optional_dependencies .get ("instruments-any" , [])
70
68
instrumentation = {
71
69
"name" : pyproject_toml ["project" ]["name" ],
72
70
"version" : version .strip (),
73
71
"instruments" : instruments ,
74
- "instruments_either " : instruments_either ,
72
+ "instruments-any " : instruments_any ,
75
73
}
76
74
if instrumentation ["name" ] in independent_packages :
77
75
specifier = independent_packages [instrumentation ["name" ]]
You can’t perform that action at this time.
0 commit comments