opentelemetry-instrumentation 0.49b1__py3-none-any.whl → 0.50b0__py3-none-any.whl

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.
@@ -16,185 +16,193 @@
16
16
  # RUN `python scripts/generate_instrumentation_bootstrap.py` TO REGENERATE.
17
17
 
18
18
  libraries = [
19
+ {
20
+ "library": "openai >= 1.26.0",
21
+ "instrumentation": "opentelemetry-instrumentation-openai-v2==2.1b0.dev",
22
+ },
19
23
  {
20
24
  "library": "aio_pika >= 7.2.0, < 10.0.0",
21
- "instrumentation": "opentelemetry-instrumentation-aio-pika==0.49b1",
25
+ "instrumentation": "opentelemetry-instrumentation-aio-pika==0.50b0",
22
26
  },
23
27
  {
24
28
  "library": "aiohttp ~= 3.0",
25
- "instrumentation": "opentelemetry-instrumentation-aiohttp-client==0.49b1",
29
+ "instrumentation": "opentelemetry-instrumentation-aiohttp-client==0.50b0",
26
30
  },
27
31
  {
28
32
  "library": "aiohttp ~= 3.0",
29
- "instrumentation": "opentelemetry-instrumentation-aiohttp-server==0.49b1",
33
+ "instrumentation": "opentelemetry-instrumentation-aiohttp-server==0.50b0",
30
34
  },
31
35
  {
32
36
  "library": "aiokafka >= 0.8, < 1.0",
33
- "instrumentation": "opentelemetry-instrumentation-aiokafka==0.49b1",
37
+ "instrumentation": "opentelemetry-instrumentation-aiokafka==0.50b0",
34
38
  },
35
39
  {
36
40
  "library": "aiopg >= 0.13.0, < 2.0.0",
37
- "instrumentation": "opentelemetry-instrumentation-aiopg==0.49b1",
41
+ "instrumentation": "opentelemetry-instrumentation-aiopg==0.50b0",
38
42
  },
39
43
  {
40
44
  "library": "asgiref ~= 3.0",
41
- "instrumentation": "opentelemetry-instrumentation-asgi==0.49b1",
45
+ "instrumentation": "opentelemetry-instrumentation-asgi==0.50b0",
42
46
  },
43
47
  {
44
48
  "library": "asyncpg >= 0.12.0",
45
- "instrumentation": "opentelemetry-instrumentation-asyncpg==0.49b1",
49
+ "instrumentation": "opentelemetry-instrumentation-asyncpg==0.50b0",
46
50
  },
47
51
  {
48
52
  "library": "boto~=2.0",
49
- "instrumentation": "opentelemetry-instrumentation-boto==0.49b1",
53
+ "instrumentation": "opentelemetry-instrumentation-boto==0.50b0",
50
54
  },
51
55
  {
52
56
  "library": "boto3 ~= 1.0",
53
- "instrumentation": "opentelemetry-instrumentation-boto3sqs==0.49b1",
57
+ "instrumentation": "opentelemetry-instrumentation-boto3sqs==0.50b0",
54
58
  },
55
59
  {
56
60
  "library": "botocore ~= 1.0",
57
- "instrumentation": "opentelemetry-instrumentation-botocore==0.49b1",
61
+ "instrumentation": "opentelemetry-instrumentation-botocore==0.50b0",
58
62
  },
59
63
  {
60
64
  "library": "cassandra-driver ~= 3.25",
61
- "instrumentation": "opentelemetry-instrumentation-cassandra==0.49b1",
65
+ "instrumentation": "opentelemetry-instrumentation-cassandra==0.50b0",
62
66
  },
63
67
  {
64
68
  "library": "scylla-driver ~= 3.25",
65
- "instrumentation": "opentelemetry-instrumentation-cassandra==0.49b1",
69
+ "instrumentation": "opentelemetry-instrumentation-cassandra==0.50b0",
66
70
  },
67
71
  {
68
72
  "library": "celery >= 4.0, < 6.0",
69
- "instrumentation": "opentelemetry-instrumentation-celery==0.49b1",
73
+ "instrumentation": "opentelemetry-instrumentation-celery==0.50b0",
74
+ },
75
+ {
76
+ "library": "click >= 8.1.3, < 9.0.0",
77
+ "instrumentation": "opentelemetry-instrumentation-click==0.50b0",
70
78
  },
71
79
  {
72
80
  "library": "confluent-kafka >= 1.8.2, <= 2.4.0",
73
- "instrumentation": "opentelemetry-instrumentation-confluent-kafka==0.49b1",
81
+ "instrumentation": "opentelemetry-instrumentation-confluent-kafka==0.50b0",
74
82
  },
75
83
  {
76
84
  "library": "django >= 1.10",
77
- "instrumentation": "opentelemetry-instrumentation-django==0.49b1",
85
+ "instrumentation": "opentelemetry-instrumentation-django==0.50b0",
78
86
  },
79
87
  {
80
88
  "library": "elasticsearch >= 6.0",
81
- "instrumentation": "opentelemetry-instrumentation-elasticsearch==0.49b1",
89
+ "instrumentation": "opentelemetry-instrumentation-elasticsearch==0.50b0",
82
90
  },
83
91
  {
84
92
  "library": "falcon >= 1.4.1, < 3.1.2",
85
- "instrumentation": "opentelemetry-instrumentation-falcon==0.49b1",
93
+ "instrumentation": "opentelemetry-instrumentation-falcon==0.50b0",
86
94
  },
87
95
  {
88
96
  "library": "fastapi ~= 0.58",
89
- "instrumentation": "opentelemetry-instrumentation-fastapi==0.49b1",
97
+ "instrumentation": "opentelemetry-instrumentation-fastapi==0.50b0",
90
98
  },
91
99
  {
92
100
  "library": "flask >= 1.0",
93
- "instrumentation": "opentelemetry-instrumentation-flask==0.49b1",
101
+ "instrumentation": "opentelemetry-instrumentation-flask==0.50b0",
94
102
  },
95
103
  {
96
104
  "library": "grpcio >= 1.42.0",
97
- "instrumentation": "opentelemetry-instrumentation-grpc==0.49b1",
105
+ "instrumentation": "opentelemetry-instrumentation-grpc==0.50b0",
98
106
  },
99
107
  {
100
108
  "library": "httpx >= 0.18.0",
101
- "instrumentation": "opentelemetry-instrumentation-httpx==0.49b1",
109
+ "instrumentation": "opentelemetry-instrumentation-httpx==0.50b0",
102
110
  },
103
111
  {
104
112
  "library": "jinja2 >= 2.7, < 4.0",
105
- "instrumentation": "opentelemetry-instrumentation-jinja2==0.49b1",
113
+ "instrumentation": "opentelemetry-instrumentation-jinja2==0.50b0",
106
114
  },
107
115
  {
108
116
  "library": "kafka-python >= 2.0, < 3.0",
109
- "instrumentation": "opentelemetry-instrumentation-kafka-python==0.49b1",
117
+ "instrumentation": "opentelemetry-instrumentation-kafka-python==0.50b0",
110
118
  },
111
119
  {
112
120
  "library": "kafka-python-ng >= 2.0, < 3.0",
113
- "instrumentation": "opentelemetry-instrumentation-kafka-python==0.49b1",
121
+ "instrumentation": "opentelemetry-instrumentation-kafka-python==0.50b0",
114
122
  },
115
123
  {
116
124
  "library": "mysql-connector-python >= 8.0, < 10.0",
117
- "instrumentation": "opentelemetry-instrumentation-mysql==0.49b1",
125
+ "instrumentation": "opentelemetry-instrumentation-mysql==0.50b0",
118
126
  },
119
127
  {
120
128
  "library": "mysqlclient < 3",
121
- "instrumentation": "opentelemetry-instrumentation-mysqlclient==0.49b1",
129
+ "instrumentation": "opentelemetry-instrumentation-mysqlclient==0.50b0",
122
130
  },
123
131
  {
124
132
  "library": "pika >= 0.12.0",
125
- "instrumentation": "opentelemetry-instrumentation-pika==0.49b1",
133
+ "instrumentation": "opentelemetry-instrumentation-pika==0.50b0",
126
134
  },
127
135
  {
128
136
  "library": "psycopg >= 3.1.0",
129
- "instrumentation": "opentelemetry-instrumentation-psycopg==0.49b1",
137
+ "instrumentation": "opentelemetry-instrumentation-psycopg==0.50b0",
130
138
  },
131
139
  {
132
140
  "library": "psycopg2 >= 2.7.3.1",
133
- "instrumentation": "opentelemetry-instrumentation-psycopg2==0.49b1",
141
+ "instrumentation": "opentelemetry-instrumentation-psycopg2==0.50b0",
134
142
  },
135
143
  {
136
144
  "library": "pymemcache >= 1.3.5, < 5",
137
- "instrumentation": "opentelemetry-instrumentation-pymemcache==0.49b1",
145
+ "instrumentation": "opentelemetry-instrumentation-pymemcache==0.50b0",
138
146
  },
139
147
  {
140
148
  "library": "pymongo >= 3.1, < 5.0",
141
- "instrumentation": "opentelemetry-instrumentation-pymongo==0.49b1",
149
+ "instrumentation": "opentelemetry-instrumentation-pymongo==0.50b0",
142
150
  },
143
151
  {
144
152
  "library": "PyMySQL < 2",
145
- "instrumentation": "opentelemetry-instrumentation-pymysql==0.49b1",
153
+ "instrumentation": "opentelemetry-instrumentation-pymysql==0.50b0",
146
154
  },
147
155
  {
148
156
  "library": "pyramid >= 1.7",
149
- "instrumentation": "opentelemetry-instrumentation-pyramid==0.49b1",
157
+ "instrumentation": "opentelemetry-instrumentation-pyramid==0.50b0",
150
158
  },
151
159
  {
152
160
  "library": "redis >= 2.6",
153
- "instrumentation": "opentelemetry-instrumentation-redis==0.49b1",
161
+ "instrumentation": "opentelemetry-instrumentation-redis==0.50b0",
154
162
  },
155
163
  {
156
164
  "library": "remoulade >= 0.50",
157
- "instrumentation": "opentelemetry-instrumentation-remoulade==0.49b1",
165
+ "instrumentation": "opentelemetry-instrumentation-remoulade==0.50b0",
158
166
  },
159
167
  {
160
168
  "library": "requests ~= 2.0",
161
- "instrumentation": "opentelemetry-instrumentation-requests==0.49b1",
169
+ "instrumentation": "opentelemetry-instrumentation-requests==0.50b0",
162
170
  },
163
171
  {
164
172
  "library": "sqlalchemy >= 1.0.0, < 2.1.0",
165
- "instrumentation": "opentelemetry-instrumentation-sqlalchemy==0.49b1",
173
+ "instrumentation": "opentelemetry-instrumentation-sqlalchemy==0.50b0",
166
174
  },
167
175
  {
168
176
  "library": "starlette ~= 0.13.0",
169
- "instrumentation": "opentelemetry-instrumentation-starlette==0.49b1",
177
+ "instrumentation": "opentelemetry-instrumentation-starlette==0.50b0",
170
178
  },
171
179
  {
172
180
  "library": "psutil >= 5",
173
- "instrumentation": "opentelemetry-instrumentation-system-metrics==0.49b1",
181
+ "instrumentation": "opentelemetry-instrumentation-system-metrics==0.50b0",
174
182
  },
175
183
  {
176
184
  "library": "tornado >= 5.1.1",
177
- "instrumentation": "opentelemetry-instrumentation-tornado==0.49b1",
185
+ "instrumentation": "opentelemetry-instrumentation-tornado==0.50b0",
178
186
  },
179
187
  {
180
188
  "library": "tortoise-orm >= 0.17.0",
181
- "instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.49b1",
189
+ "instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.50b0",
182
190
  },
183
191
  {
184
192
  "library": "pydantic >= 1.10.2",
185
- "instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.49b1",
193
+ "instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.50b0",
186
194
  },
187
195
  {
188
196
  "library": "urllib3 >= 1.0.0, < 3.0.0",
189
- "instrumentation": "opentelemetry-instrumentation-urllib3==0.49b1",
197
+ "instrumentation": "opentelemetry-instrumentation-urllib3==0.50b0",
190
198
  },
191
199
  ]
192
200
  default_instrumentations = [
193
- "opentelemetry-instrumentation-asyncio==0.49b1",
194
- "opentelemetry-instrumentation-dbapi==0.49b1",
195
- "opentelemetry-instrumentation-logging==0.49b1",
196
- "opentelemetry-instrumentation-sqlite3==0.49b1",
197
- "opentelemetry-instrumentation-threading==0.49b1",
198
- "opentelemetry-instrumentation-urllib==0.49b1",
199
- "opentelemetry-instrumentation-wsgi==0.49b1",
201
+ "opentelemetry-instrumentation-asyncio==0.50b0",
202
+ "opentelemetry-instrumentation-dbapi==0.50b0",
203
+ "opentelemetry-instrumentation-logging==0.50b0",
204
+ "opentelemetry-instrumentation-sqlite3==0.50b0",
205
+ "opentelemetry-instrumentation-threading==0.50b0",
206
+ "opentelemetry-instrumentation-urllib==0.50b0",
207
+ "opentelemetry-instrumentation-wsgi==0.50b0",
200
208
  ]
@@ -12,8 +12,10 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from logging import getLogger
16
- from typing import Collection, Optional, Union
18
+ from typing import Collection
17
19
 
18
20
  from packaging.requirements import InvalidRequirement, Requirement
19
21
 
@@ -27,10 +29,10 @@ logger = getLogger(__name__)
27
29
 
28
30
 
29
31
  class DependencyConflict:
30
- required: str = None
31
- found: Optional[str] = None
32
+ required: str | None = None
33
+ found: str | None = None
32
34
 
33
- def __init__(self, required, found=None):
35
+ def __init__(self, required: str | None, found: str | None = None):
34
36
  self.required = required
35
37
  self.found = found
36
38
 
@@ -40,7 +42,7 @@ class DependencyConflict:
40
42
 
41
43
  def get_dist_dependency_conflicts(
42
44
  dist: Distribution,
43
- ) -> Optional[DependencyConflict]:
45
+ ) -> DependencyConflict | None:
44
46
  instrumentation_deps = []
45
47
  extra = "extra"
46
48
  instruments = "instruments"
@@ -57,8 +59,8 @@ def get_dist_dependency_conflicts(
57
59
 
58
60
 
59
61
  def get_dependency_conflicts(
60
- deps: Collection[Union[str, Requirement]],
61
- ) -> Optional[DependencyConflict]:
62
+ deps: Collection[str | Requirement],
63
+ ) -> DependencyConflict | None:
62
64
  for dep in deps:
63
65
  if isinstance(dep, Requirement):
64
66
  req = dep
@@ -17,9 +17,11 @@
17
17
  OpenTelemetry Base Instrumentor
18
18
  """
19
19
 
20
+ from __future__ import annotations
21
+
20
22
  from abc import ABC, abstractmethod
21
23
  from logging import getLogger
22
- from typing import Collection, Optional
24
+ from typing import Any, Collection
23
25
 
24
26
  from opentelemetry.instrumentation._semconv import (
25
27
  _OpenTelemetrySemanticConventionStability,
@@ -33,7 +35,7 @@ _LOG = getLogger(__name__)
33
35
 
34
36
 
35
37
  class BaseInstrumentor(ABC):
36
- """An ABC for instrumentors
38
+ """An ABC for instrumentors.
37
39
 
38
40
  Child classes of this ABC should instrument specific third
39
41
  party libraries or frameworks either by using the
@@ -74,18 +76,18 @@ class BaseInstrumentor(ABC):
74
76
  is present in the environment.
75
77
  """
76
78
 
77
- def _instrument(self, **kwargs):
79
+ def _instrument(self, **kwargs: Any):
78
80
  """Instrument the library"""
79
81
 
80
82
  @abstractmethod
81
- def _uninstrument(self, **kwargs):
83
+ def _uninstrument(self, **kwargs: Any):
82
84
  """Uninstrument the library"""
83
85
 
84
- def _check_dependency_conflicts(self) -> Optional[DependencyConflict]:
86
+ def _check_dependency_conflicts(self) -> DependencyConflict | None:
85
87
  dependencies = self.instrumentation_dependencies()
86
88
  return get_dependency_conflicts(dependencies)
87
89
 
88
- def instrument(self, **kwargs):
90
+ def instrument(self, **kwargs: Any):
89
91
  """Instrument the library
90
92
 
91
93
  This method will be called without any optional arguments by the
@@ -117,7 +119,7 @@ class BaseInstrumentor(ABC):
117
119
  self._is_instrumented_by_opentelemetry = True
118
120
  return result
119
121
 
120
- def uninstrument(self, **kwargs):
122
+ def uninstrument(self, **kwargs: Any):
121
123
  """Uninstrument the library
122
124
 
123
125
  See ``BaseInstrumentor.instrument`` for more information regarding the
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "0.49b1"
15
+ __version__ = "0.50b0"
@@ -1,11 +1,10 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: opentelemetry-instrumentation
3
- Version: 0.49b1
3
+ Version: 0.50b0
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
  Author-email: OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
7
- License-Expression: Apache-2.0
8
- License-File: LICENSE
7
+ License: Apache-2.0
9
8
  Classifier: Development Status :: 4 - Beta
10
9
  Classifier: Intended Audience :: Developers
11
10
  Classifier: License :: OSI Approved :: Apache Software License
@@ -18,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Programming Language :: Python :: 3.12
19
18
  Requires-Python: >=3.8
20
19
  Requires-Dist: opentelemetry-api~=1.4
21
- Requires-Dist: opentelemetry-semantic-conventions==0.49b1
20
+ Requires-Dist: opentelemetry-semantic-conventions==0.50b0
22
21
  Requires-Dist: packaging>=18.0
23
22
  Requires-Dist: wrapt<2.0.0,>=1.0.0
24
23
  Description-Content-Type: text/x-rst
@@ -1,20 +1,20 @@
1
1
  opentelemetry/instrumentation/_semconv.py,sha256=eX7jtDvnLjCogil0SRZ4q_ftKWyJRNKiOkiuDRNVzgA,14582
2
2
  opentelemetry/instrumentation/bootstrap.py,sha256=Q-1j1G7QKXTTvH5xGGGRX3jCpTf_NuhBoy2X_MvM9sg,5428
3
- opentelemetry/instrumentation/bootstrap_gen.py,sha256=y5Opzb302ESGJOq4DJcKBptDq9i3TxUnJRZWrQjKPRw,6829
4
- opentelemetry/instrumentation/dependencies.py,sha256=FcrMj6pudXBE70VhytIMc-JS-dVGDbtCNE2dviT4GBg,2527
3
+ opentelemetry/instrumentation/bootstrap_gen.py,sha256=180wfVplcLV2N0HCU4BYhcg9cC5iHs9aKEdbLRp-IIs,7095
4
+ opentelemetry/instrumentation/dependencies.py,sha256=zZR_oFabATG2sPnPoi1ewxYdhU9AbEb8t1_q1Z1FMG0,2564
5
5
  opentelemetry/instrumentation/distro.py,sha256=l7wjM9eR44X-Bk6w-b3_kW3_QgW82OiITRTOY48shZk,2168
6
6
  opentelemetry/instrumentation/environment_variables.py,sha256=oRcbNSSbnqJMQ3r4gBhK6jqtuI5WizapP962Z8DrVZ8,905
7
- opentelemetry/instrumentation/instrumentor.py,sha256=0r527qBsl-fPAVXPM3iu_k94omLN5MStOFmuAqpD_Zo,4509
7
+ opentelemetry/instrumentation/instrumentor.py,sha256=X5UkWHebXgNBwyrZaHQk-sufWfktrkymkkyzPiel7VY,4558
8
8
  opentelemetry/instrumentation/propagators.py,sha256=hBkG70KlMUiTjxPeiyOhkb_eE96DRVzRyY4fEIzMqD4,4070
9
9
  opentelemetry/instrumentation/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  opentelemetry/instrumentation/sqlcommenter_utils.py,sha256=yV_-hcwy_3ckP76_FC2dOrd8IKi9z_9s980ZMuGYkrE,1960
11
11
  opentelemetry/instrumentation/utils.py,sha256=4SvKC9Rg1tMcQe5SiAtbX82Xe5lXx1ltMdrCGLhmc3o,7037
12
- opentelemetry/instrumentation/version.py,sha256=h6dsqBsePrrYeyzZnEEQ3BnuIeH-0Z6C9cW0S1NrUFQ,608
12
+ opentelemetry/instrumentation/version.py,sha256=sBsbV8VQNTte60quPySrr3hMzVnRCO8AnGlwnGPP60o,608
13
13
  opentelemetry/instrumentation/auto_instrumentation/__init__.py,sha256=G3qhU-ZfdATzPdsZCvBZ2CT8kNZ1Wc8l7fETXKTPF2M,3800
14
14
  opentelemetry/instrumentation/auto_instrumentation/_load.py,sha256=e3IlquYKHgLuZXZ9pjMg76yxiM0Qa_-6qxgPFL-Vmh0,6301
15
15
  opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py,sha256=p3cz9NlKNlnzxc7guFSPyztx8XMUteAxkN1NFYXSH-0,1449
16
- opentelemetry_instrumentation-0.49b1.dist-info/METADATA,sha256=wms3jC0U8jhWdY0FptLq-GIKmawx9YDNEYV62qtwHbI,6180
17
- opentelemetry_instrumentation-0.49b1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
18
- opentelemetry_instrumentation-0.49b1.dist-info/entry_points.txt,sha256=iVv3t5REB0O58tFUEQQXYLrTCa1VVOFUXfrbvUk6_aU,279
19
- opentelemetry_instrumentation-0.49b1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
20
- opentelemetry_instrumentation-0.49b1.dist-info/RECORD,,
16
+ opentelemetry_instrumentation-0.50b0.dist-info/METADATA,sha256=gKyJL8AMbUmuI-LOs0weuxhS_wTYOC_AAC0QLS8zyOY,6147
17
+ opentelemetry_instrumentation-0.50b0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
18
+ opentelemetry_instrumentation-0.50b0.dist-info/entry_points.txt,sha256=iVv3t5REB0O58tFUEQQXYLrTCa1VVOFUXfrbvUk6_aU,279
19
+ opentelemetry_instrumentation-0.50b0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
20
+ opentelemetry_instrumentation-0.50b0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.25.0
2
+ Generator: hatchling 1.26.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any