opentelemetry-instrumentation 0.53b1__tar.gz → 0.54b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/PKG-INFO +2 -2
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/pyproject.toml +1 -1
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/_semconv.py +37 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/bootstrap_gen.py +54 -54
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/instrumentor.py +4 -1
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/version.py +1 -1
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_instrumentor.py +18 -1
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/.gitignore +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/LICENSE +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/README.rst +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/auto_instrumentation/__init__.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/auto_instrumentation/_load.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/bootstrap.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/dependencies.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/distro.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/environment_variables.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/propagators.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/py.typed +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/sqlcommenter_utils.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/src/opentelemetry/instrumentation/utils.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/__init__.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/auto_instrumentation/test_initialize.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/auto_instrumentation/test_load.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/auto_instrumentation/test_run.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/auto_instrumentation/test_sitecustomize.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_bootstrap.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_dependencies.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_distro.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_propagators.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_semconv.py +0 -0
- {opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: opentelemetry-instrumentation
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.54b1
|
4
4
|
Summary: Instrumentation Tools & Auto Instrumentation for OpenTelemetry Python
|
5
5
|
Project-URL: Homepage, https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/opentelemetry-instrumentation
|
6
6
|
Project-URL: Repository, https://github.com/open-telemetry/opentelemetry-python-contrib
|
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.13
|
21
21
|
Requires-Python: >=3.8
|
22
22
|
Requires-Dist: opentelemetry-api~=1.4
|
23
|
-
Requires-Dist: opentelemetry-semantic-conventions==0.
|
23
|
+
Requires-Dist: opentelemetry-semantic-conventions==0.54b1
|
24
24
|
Requires-Dist: packaging>=18.0
|
25
25
|
Requires-Dist: wrapt<2.0.0,>=1.0.0
|
26
26
|
Description-Content-Type: text/x-rst
|
@@ -47,6 +47,43 @@ from opentelemetry.semconv.attributes.user_agent_attributes import (
|
|
47
47
|
from opentelemetry.semconv.trace import SpanAttributes
|
48
48
|
from opentelemetry.trace.status import Status, StatusCode
|
49
49
|
|
50
|
+
# Values defined in milliseconds
|
51
|
+
HTTP_DURATION_HISTOGRAM_BUCKETS_OLD = (
|
52
|
+
0.0,
|
53
|
+
5.0,
|
54
|
+
10.0,
|
55
|
+
25.0,
|
56
|
+
50.0,
|
57
|
+
75.0,
|
58
|
+
100.0,
|
59
|
+
250.0,
|
60
|
+
500.0,
|
61
|
+
750.0,
|
62
|
+
1000.0,
|
63
|
+
2500.0,
|
64
|
+
5000.0,
|
65
|
+
7500.0,
|
66
|
+
10000.0,
|
67
|
+
)
|
68
|
+
|
69
|
+
# Values defined in seconds
|
70
|
+
HTTP_DURATION_HISTOGRAM_BUCKETS_NEW = (
|
71
|
+
0.005,
|
72
|
+
0.01,
|
73
|
+
0.025,
|
74
|
+
0.05,
|
75
|
+
0.075,
|
76
|
+
0.1,
|
77
|
+
0.25,
|
78
|
+
0.5,
|
79
|
+
0.75,
|
80
|
+
1,
|
81
|
+
2.5,
|
82
|
+
5,
|
83
|
+
7.5,
|
84
|
+
10,
|
85
|
+
)
|
86
|
+
|
50
87
|
# These lists represent attributes for metrics that are currently supported
|
51
88
|
|
52
89
|
_client_duration_attrs_old = [
|
@@ -26,199 +26,199 @@ libraries = [
|
|
26
26
|
},
|
27
27
|
{
|
28
28
|
"library": "aio_pika >= 7.2.0, < 10.0.0",
|
29
|
-
"instrumentation": "opentelemetry-instrumentation-aio-pika==0.
|
29
|
+
"instrumentation": "opentelemetry-instrumentation-aio-pika==0.54b1",
|
30
30
|
},
|
31
31
|
{
|
32
32
|
"library": "aiohttp ~= 3.0",
|
33
|
-
"instrumentation": "opentelemetry-instrumentation-aiohttp-client==0.
|
33
|
+
"instrumentation": "opentelemetry-instrumentation-aiohttp-client==0.54b1",
|
34
34
|
},
|
35
35
|
{
|
36
36
|
"library": "aiohttp ~= 3.0",
|
37
|
-
"instrumentation": "opentelemetry-instrumentation-aiohttp-server==0.
|
37
|
+
"instrumentation": "opentelemetry-instrumentation-aiohttp-server==0.54b1",
|
38
38
|
},
|
39
39
|
{
|
40
40
|
"library": "aiokafka >= 0.8, < 1.0",
|
41
|
-
"instrumentation": "opentelemetry-instrumentation-aiokafka==0.
|
41
|
+
"instrumentation": "opentelemetry-instrumentation-aiokafka==0.54b1",
|
42
42
|
},
|
43
43
|
{
|
44
44
|
"library": "aiopg >= 0.13.0, < 2.0.0",
|
45
|
-
"instrumentation": "opentelemetry-instrumentation-aiopg==0.
|
45
|
+
"instrumentation": "opentelemetry-instrumentation-aiopg==0.54b1",
|
46
46
|
},
|
47
47
|
{
|
48
48
|
"library": "asgiref ~= 3.0",
|
49
|
-
"instrumentation": "opentelemetry-instrumentation-asgi==0.
|
49
|
+
"instrumentation": "opentelemetry-instrumentation-asgi==0.54b1",
|
50
50
|
},
|
51
51
|
{
|
52
52
|
"library": "asyncclick ~= 8.0",
|
53
|
-
"instrumentation": "opentelemetry-instrumentation-asyncclick==0.
|
53
|
+
"instrumentation": "opentelemetry-instrumentation-asyncclick==0.54b1",
|
54
54
|
},
|
55
55
|
{
|
56
56
|
"library": "asyncpg >= 0.12.0",
|
57
|
-
"instrumentation": "opentelemetry-instrumentation-asyncpg==0.
|
57
|
+
"instrumentation": "opentelemetry-instrumentation-asyncpg==0.54b1",
|
58
58
|
},
|
59
59
|
{
|
60
60
|
"library": "boto~=2.0",
|
61
|
-
"instrumentation": "opentelemetry-instrumentation-boto==0.
|
61
|
+
"instrumentation": "opentelemetry-instrumentation-boto==0.54b1",
|
62
62
|
},
|
63
63
|
{
|
64
64
|
"library": "boto3 ~= 1.0",
|
65
|
-
"instrumentation": "opentelemetry-instrumentation-boto3sqs==0.
|
65
|
+
"instrumentation": "opentelemetry-instrumentation-boto3sqs==0.54b1",
|
66
66
|
},
|
67
67
|
{
|
68
68
|
"library": "botocore ~= 1.0",
|
69
|
-
"instrumentation": "opentelemetry-instrumentation-botocore==0.
|
69
|
+
"instrumentation": "opentelemetry-instrumentation-botocore==0.54b1",
|
70
70
|
},
|
71
71
|
{
|
72
72
|
"library": "cassandra-driver ~= 3.25",
|
73
|
-
"instrumentation": "opentelemetry-instrumentation-cassandra==0.
|
73
|
+
"instrumentation": "opentelemetry-instrumentation-cassandra==0.54b1",
|
74
74
|
},
|
75
75
|
{
|
76
76
|
"library": "scylla-driver ~= 3.25",
|
77
|
-
"instrumentation": "opentelemetry-instrumentation-cassandra==0.
|
77
|
+
"instrumentation": "opentelemetry-instrumentation-cassandra==0.54b1",
|
78
78
|
},
|
79
79
|
{
|
80
80
|
"library": "celery >= 4.0, < 6.0",
|
81
|
-
"instrumentation": "opentelemetry-instrumentation-celery==0.
|
81
|
+
"instrumentation": "opentelemetry-instrumentation-celery==0.54b1",
|
82
82
|
},
|
83
83
|
{
|
84
84
|
"library": "click >= 8.1.3, < 9.0.0",
|
85
|
-
"instrumentation": "opentelemetry-instrumentation-click==0.
|
85
|
+
"instrumentation": "opentelemetry-instrumentation-click==0.54b1",
|
86
86
|
},
|
87
87
|
{
|
88
88
|
"library": "confluent-kafka >= 1.8.2, <= 2.7.0",
|
89
|
-
"instrumentation": "opentelemetry-instrumentation-confluent-kafka==0.
|
89
|
+
"instrumentation": "opentelemetry-instrumentation-confluent-kafka==0.54b1",
|
90
90
|
},
|
91
91
|
{
|
92
92
|
"library": "django >= 1.10",
|
93
|
-
"instrumentation": "opentelemetry-instrumentation-django==0.
|
93
|
+
"instrumentation": "opentelemetry-instrumentation-django==0.54b1",
|
94
94
|
},
|
95
95
|
{
|
96
96
|
"library": "elasticsearch >= 6.0",
|
97
|
-
"instrumentation": "opentelemetry-instrumentation-elasticsearch==0.
|
97
|
+
"instrumentation": "opentelemetry-instrumentation-elasticsearch==0.54b1",
|
98
98
|
},
|
99
99
|
{
|
100
100
|
"library": "falcon >= 1.4.1, < 5.0.0",
|
101
|
-
"instrumentation": "opentelemetry-instrumentation-falcon==0.
|
101
|
+
"instrumentation": "opentelemetry-instrumentation-falcon==0.54b1",
|
102
102
|
},
|
103
103
|
{
|
104
104
|
"library": "fastapi ~= 0.58",
|
105
|
-
"instrumentation": "opentelemetry-instrumentation-fastapi==0.
|
105
|
+
"instrumentation": "opentelemetry-instrumentation-fastapi==0.54b1",
|
106
106
|
},
|
107
107
|
{
|
108
108
|
"library": "flask >= 1.0",
|
109
|
-
"instrumentation": "opentelemetry-instrumentation-flask==0.
|
109
|
+
"instrumentation": "opentelemetry-instrumentation-flask==0.54b1",
|
110
110
|
},
|
111
111
|
{
|
112
112
|
"library": "grpcio >= 1.42.0",
|
113
|
-
"instrumentation": "opentelemetry-instrumentation-grpc==0.
|
113
|
+
"instrumentation": "opentelemetry-instrumentation-grpc==0.54b1",
|
114
114
|
},
|
115
115
|
{
|
116
116
|
"library": "httpx >= 0.18.0",
|
117
|
-
"instrumentation": "opentelemetry-instrumentation-httpx==0.
|
117
|
+
"instrumentation": "opentelemetry-instrumentation-httpx==0.54b1",
|
118
118
|
},
|
119
119
|
{
|
120
120
|
"library": "jinja2 >= 2.7, < 4.0",
|
121
|
-
"instrumentation": "opentelemetry-instrumentation-jinja2==0.
|
121
|
+
"instrumentation": "opentelemetry-instrumentation-jinja2==0.54b1",
|
122
122
|
},
|
123
123
|
{
|
124
124
|
"library": "kafka-python >= 2.0, < 3.0",
|
125
|
-
"instrumentation": "opentelemetry-instrumentation-kafka-python==0.
|
125
|
+
"instrumentation": "opentelemetry-instrumentation-kafka-python==0.54b1",
|
126
126
|
},
|
127
127
|
{
|
128
128
|
"library": "kafka-python-ng >= 2.0, < 3.0",
|
129
|
-
"instrumentation": "opentelemetry-instrumentation-kafka-python==0.
|
129
|
+
"instrumentation": "opentelemetry-instrumentation-kafka-python==0.54b1",
|
130
130
|
},
|
131
131
|
{
|
132
132
|
"library": "mysql-connector-python >= 8.0, < 10.0",
|
133
|
-
"instrumentation": "opentelemetry-instrumentation-mysql==0.
|
133
|
+
"instrumentation": "opentelemetry-instrumentation-mysql==0.54b1",
|
134
134
|
},
|
135
135
|
{
|
136
136
|
"library": "mysqlclient < 3",
|
137
|
-
"instrumentation": "opentelemetry-instrumentation-mysqlclient==0.
|
137
|
+
"instrumentation": "opentelemetry-instrumentation-mysqlclient==0.54b1",
|
138
138
|
},
|
139
139
|
{
|
140
140
|
"library": "pika >= 0.12.0",
|
141
|
-
"instrumentation": "opentelemetry-instrumentation-pika==0.
|
141
|
+
"instrumentation": "opentelemetry-instrumentation-pika==0.54b1",
|
142
142
|
},
|
143
143
|
{
|
144
144
|
"library": "psycopg >= 3.1.0",
|
145
|
-
"instrumentation": "opentelemetry-instrumentation-psycopg==0.
|
145
|
+
"instrumentation": "opentelemetry-instrumentation-psycopg==0.54b1",
|
146
146
|
},
|
147
147
|
{
|
148
148
|
"library": "psycopg2 >= 2.7.3.1",
|
149
|
-
"instrumentation": "opentelemetry-instrumentation-psycopg2==0.
|
149
|
+
"instrumentation": "opentelemetry-instrumentation-psycopg2==0.54b1",
|
150
150
|
},
|
151
151
|
{
|
152
152
|
"library": "psycopg2-binary >= 2.7.3.1",
|
153
|
-
"instrumentation": "opentelemetry-instrumentation-psycopg2==0.
|
153
|
+
"instrumentation": "opentelemetry-instrumentation-psycopg2==0.54b1",
|
154
154
|
},
|
155
155
|
{
|
156
156
|
"library": "pymemcache >= 1.3.5, < 5",
|
157
|
-
"instrumentation": "opentelemetry-instrumentation-pymemcache==0.
|
157
|
+
"instrumentation": "opentelemetry-instrumentation-pymemcache==0.54b1",
|
158
158
|
},
|
159
159
|
{
|
160
160
|
"library": "pymongo >= 3.1, < 5.0",
|
161
|
-
"instrumentation": "opentelemetry-instrumentation-pymongo==0.
|
161
|
+
"instrumentation": "opentelemetry-instrumentation-pymongo==0.54b1",
|
162
162
|
},
|
163
163
|
{
|
164
164
|
"library": "pymssql >= 2.1.5, < 3",
|
165
|
-
"instrumentation": "opentelemetry-instrumentation-pymssql==0.
|
165
|
+
"instrumentation": "opentelemetry-instrumentation-pymssql==0.54b1",
|
166
166
|
},
|
167
167
|
{
|
168
168
|
"library": "PyMySQL < 2",
|
169
|
-
"instrumentation": "opentelemetry-instrumentation-pymysql==0.
|
169
|
+
"instrumentation": "opentelemetry-instrumentation-pymysql==0.54b1",
|
170
170
|
},
|
171
171
|
{
|
172
172
|
"library": "pyramid >= 1.7",
|
173
|
-
"instrumentation": "opentelemetry-instrumentation-pyramid==0.
|
173
|
+
"instrumentation": "opentelemetry-instrumentation-pyramid==0.54b1",
|
174
174
|
},
|
175
175
|
{
|
176
176
|
"library": "redis >= 2.6",
|
177
|
-
"instrumentation": "opentelemetry-instrumentation-redis==0.
|
177
|
+
"instrumentation": "opentelemetry-instrumentation-redis==0.54b1",
|
178
178
|
},
|
179
179
|
{
|
180
180
|
"library": "remoulade >= 0.50",
|
181
|
-
"instrumentation": "opentelemetry-instrumentation-remoulade==0.
|
181
|
+
"instrumentation": "opentelemetry-instrumentation-remoulade==0.54b1",
|
182
182
|
},
|
183
183
|
{
|
184
184
|
"library": "requests ~= 2.0",
|
185
|
-
"instrumentation": "opentelemetry-instrumentation-requests==0.
|
185
|
+
"instrumentation": "opentelemetry-instrumentation-requests==0.54b1",
|
186
186
|
},
|
187
187
|
{
|
188
188
|
"library": "sqlalchemy >= 1.0.0, < 2.1.0",
|
189
|
-
"instrumentation": "opentelemetry-instrumentation-sqlalchemy==0.
|
189
|
+
"instrumentation": "opentelemetry-instrumentation-sqlalchemy==0.54b1",
|
190
190
|
},
|
191
191
|
{
|
192
192
|
"library": "starlette >= 0.13, <0.15",
|
193
|
-
"instrumentation": "opentelemetry-instrumentation-starlette==0.
|
193
|
+
"instrumentation": "opentelemetry-instrumentation-starlette==0.54b1",
|
194
194
|
},
|
195
195
|
{
|
196
196
|
"library": "psutil >= 5",
|
197
|
-
"instrumentation": "opentelemetry-instrumentation-system-metrics==0.
|
197
|
+
"instrumentation": "opentelemetry-instrumentation-system-metrics==0.54b1",
|
198
198
|
},
|
199
199
|
{
|
200
200
|
"library": "tornado >= 5.1.1",
|
201
|
-
"instrumentation": "opentelemetry-instrumentation-tornado==0.
|
201
|
+
"instrumentation": "opentelemetry-instrumentation-tornado==0.54b1",
|
202
202
|
},
|
203
203
|
{
|
204
204
|
"library": "tortoise-orm >= 0.17.0",
|
205
|
-
"instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.
|
205
|
+
"instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.54b1",
|
206
206
|
},
|
207
207
|
{
|
208
208
|
"library": "pydantic >= 1.10.2",
|
209
|
-
"instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.
|
209
|
+
"instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.54b1",
|
210
210
|
},
|
211
211
|
{
|
212
212
|
"library": "urllib3 >= 1.0.0, < 3.0.0",
|
213
|
-
"instrumentation": "opentelemetry-instrumentation-urllib3==0.
|
213
|
+
"instrumentation": "opentelemetry-instrumentation-urllib3==0.54b1",
|
214
214
|
},
|
215
215
|
]
|
216
216
|
default_instrumentations = [
|
217
|
-
"opentelemetry-instrumentation-asyncio==0.
|
218
|
-
"opentelemetry-instrumentation-dbapi==0.
|
219
|
-
"opentelemetry-instrumentation-logging==0.
|
220
|
-
"opentelemetry-instrumentation-sqlite3==0.
|
221
|
-
"opentelemetry-instrumentation-threading==0.
|
222
|
-
"opentelemetry-instrumentation-urllib==0.
|
223
|
-
"opentelemetry-instrumentation-wsgi==0.
|
217
|
+
"opentelemetry-instrumentation-asyncio==0.54b1",
|
218
|
+
"opentelemetry-instrumentation-dbapi==0.54b1",
|
219
|
+
"opentelemetry-instrumentation-logging==0.54b1",
|
220
|
+
"opentelemetry-instrumentation-sqlite3==0.54b1",
|
221
|
+
"opentelemetry-instrumentation-threading==0.54b1",
|
222
|
+
"opentelemetry-instrumentation-urllib==0.54b1",
|
223
|
+
"opentelemetry-instrumentation-wsgi==0.54b1",
|
224
224
|
]
|
@@ -111,9 +111,12 @@ class BaseInstrumentor(ABC):
|
|
111
111
|
if not skip_dep_check:
|
112
112
|
conflict = self._check_dependency_conflicts()
|
113
113
|
if conflict:
|
114
|
-
|
114
|
+
# auto-instrumentation path: don't log conflict as error, instead
|
115
|
+
# let _load_instrumentors handle the exception
|
115
116
|
if raise_exception_on_conflict:
|
116
117
|
raise DependencyConflictError(conflict)
|
118
|
+
# manual instrumentation path: log the conflict as error
|
119
|
+
_LOG.error(conflict)
|
117
120
|
return None
|
118
121
|
|
119
122
|
# initialize semantic conventions opt-in if needed
|
@@ -54,11 +54,12 @@ class TestInstrumentor(TestCase):
|
|
54
54
|
def test_singleton(self):
|
55
55
|
self.assertIs(self.Instrumentor(), self.Instrumentor())
|
56
56
|
|
57
|
+
@patch("opentelemetry.instrumentation.instrumentor._LOG")
|
57
58
|
@patch(
|
58
59
|
"opentelemetry.instrumentation.instrumentor.BaseInstrumentor._check_dependency_conflicts"
|
59
60
|
)
|
60
61
|
def test_instrument_missing_dependency_raise(
|
61
|
-
self, mock__check_dependency_conflicts
|
62
|
+
self, mock__check_dependency_conflicts, mock_logger
|
62
63
|
):
|
63
64
|
instrumentor = self.Instrumentor()
|
64
65
|
|
@@ -71,3 +72,19 @@ class TestInstrumentor(TestCase):
|
|
71
72
|
instrumentor.instrument,
|
72
73
|
raise_exception_on_conflict=True,
|
73
74
|
)
|
75
|
+
mock_logger.error.assert_not_called()
|
76
|
+
|
77
|
+
@patch("opentelemetry.instrumentation.instrumentor._LOG")
|
78
|
+
@patch(
|
79
|
+
"opentelemetry.instrumentation.instrumentor.BaseInstrumentor._check_dependency_conflicts"
|
80
|
+
)
|
81
|
+
def test_instrument_missing_dependency_log_error(
|
82
|
+
self, mock__check_dependency_conflicts, mock_logger
|
83
|
+
):
|
84
|
+
instrumentor = self.Instrumentor()
|
85
|
+
conflict = DependencyConflict("missing", "missing")
|
86
|
+
mock__check_dependency_conflicts.return_value = conflict
|
87
|
+
self.assertIsNone(
|
88
|
+
instrumentor.instrument(raise_exception_on_conflict=False)
|
89
|
+
)
|
90
|
+
mock_logger.error.assert_any_call(conflict)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_distro.py
RENAMED
File without changes
|
File without changes
|
{opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_semconv.py
RENAMED
File without changes
|
{opentelemetry_instrumentation-0.53b1 → opentelemetry_instrumentation-0.54b1}/tests/test_utils.py
RENAMED
File without changes
|