File tree Expand file tree Collapse file tree 5 files changed +19
-8
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 5 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 22
22
| [ opentelemetry-instrumentation-django] ( ./opentelemetry-instrumentation-django ) | django >= 1.10 | Yes | development
23
23
| [ opentelemetry-instrumentation-elasticsearch] ( ./opentelemetry-instrumentation-elasticsearch ) | elasticsearch >= 6.0 | No | development
24
24
| [ opentelemetry-instrumentation-falcon] ( ./opentelemetry-instrumentation-falcon ) | falcon >= 1.4.1, < 5.0.0 | Yes | migration
25
- | [ opentelemetry-instrumentation-fastapi] ( ./opentelemetry-instrumentation-fastapi ) | fastapi ~ = 0.92 | Yes | migration
25
+ | [ opentelemetry-instrumentation-fastapi] ( ./opentelemetry-instrumentation-fastapi ) | fastapi ~ = 0.92,fastapi-slim ~ = 0.92 | Yes | migration
26
26
| [ opentelemetry-instrumentation-flask] ( ./opentelemetry-instrumentation-flask ) | flask >= 1.0 | Yes | migration
27
27
| [ opentelemetry-instrumentation-grpc] ( ./opentelemetry-instrumentation-grpc ) | grpcio >= 1.42.0 | No | development
28
28
| [ opentelemetry-instrumentation-httpx] ( ./opentelemetry-instrumentation-httpx ) | httpx >= 0.18.0 | Yes | migration
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
16
- _instruments = ("fastapi ~= 0.92" ,)
16
+ # TODO: update this
17
+ _instruments = ()
18
+ _instruments_either = ("fastapi ~= 0.92" , "fastapi-slim ~= 0.92" )
17
19
18
20
_supports_metrics = True
19
21
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
16
+ # TODO: where are these used?
16
17
_instruments_kafka_python = "kafka-python >= 2.0, < 3.0"
17
18
_instruments_kafka_python_ng = "kafka-python-ng >= 2.0, < 3.0"
18
19
19
- _instruments = (_instruments_kafka_python , _instruments_kafka_python_ng )
20
+ _instruments = ()
21
+ _instruments_either = (_instruments_kafka_python , _instruments_kafka_python_ng )
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
16
+ # TODO: where are these used?
16
17
_instruments_psycopg2 = "psycopg2 >= 2.7.3.1"
17
18
_instruments_psycopg2_binary = "psycopg2-binary >= 2.7.3.1"
18
19
19
- _instruments = (
20
+ # TODO: maybe add _instruments_either
21
+ _instruments = ()
22
+ _instruments_either = (
20
23
_instruments_psycopg2 ,
21
24
_instruments_psycopg2_binary ,
22
25
)
Original file line number Diff line number Diff line change @@ -58,19 +58,23 @@ def main(base_instrumentation_path):
58
58
with open (version_filename , encoding = "utf-8" ) as fh :
59
59
exec (fh .read (), pkg_info )
60
60
61
- instruments = pkg_info ["_instruments" ]
61
+ instruments_and = pkg_info .get ("_instruments" , ())
62
+ instruments_either = pkg_info .get ("_instruments_either" , ())
62
63
supports_metrics = pkg_info .get ("_supports_metrics" )
63
64
semconv_status = pkg_info .get ("_semconv_status" )
64
- if not instruments :
65
- instruments = (name ,)
65
+ instruments_all = ()
66
+ if not instruments_and and not instruments_either :
67
+ instruments_all = (name ,)
68
+ else :
69
+ instruments_all = tuple (instruments_and + instruments_either )
66
70
67
71
if not semconv_status :
68
72
semconv_status = "development"
69
73
70
74
metric_column = "Yes" if supports_metrics else "No"
71
75
72
76
table .append (
73
- f"| [{ instrumentation } ](./{ instrumentation } ) | { ',' .join (instruments )} | { metric_column } | { semconv_status } "
77
+ f"| [{ instrumentation } ](./{ instrumentation } ) | { ',' .join (instruments_all )} | { metric_column } | { semconv_status } "
74
78
)
75
79
76
80
with open (
You can’t perform that action at this time.
0 commit comments