opentelemetry-instrumentation 0.49b2__tar.gz → 0.50b0__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.
Files changed (29) hide show
  1. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/PKG-INFO +2 -2
  2. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/pyproject.toml +1 -1
  3. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/bootstrap_gen.py +55 -51
  4. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/dependencies.py +9 -7
  5. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/instrumentor.py +9 -7
  6. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/version.py +1 -1
  7. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/.gitignore +0 -0
  8. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/LICENSE +0 -0
  9. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/README.rst +0 -0
  10. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/_semconv.py +0 -0
  11. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/auto_instrumentation/__init__.py +0 -0
  12. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/auto_instrumentation/_load.py +0 -0
  13. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py +0 -0
  14. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/bootstrap.py +0 -0
  15. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/distro.py +0 -0
  16. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/environment_variables.py +0 -0
  17. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/propagators.py +0 -0
  18. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/py.typed +0 -0
  19. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/sqlcommenter_utils.py +0 -0
  20. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/src/opentelemetry/instrumentation/utils.py +0 -0
  21. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/tests/__init__.py +0 -0
  22. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/tests/auto_instrumentation/test_load.py +0 -0
  23. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/tests/auto_instrumentation/test_run.py +0 -0
  24. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/tests/test_bootstrap.py +0 -0
  25. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/tests/test_dependencies.py +0 -0
  26. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/tests/test_distro.py +0 -0
  27. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/tests/test_instrumentor.py +0 -0
  28. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/tests/test_propagators.py +0 -0
  29. {opentelemetry_instrumentation-0.49b2 → opentelemetry_instrumentation-0.50b0}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: opentelemetry-instrumentation
3
- Version: 0.49b2
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>
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
18
  Requires-Python: >=3.8
19
19
  Requires-Dist: opentelemetry-api~=1.4
20
- Requires-Dist: opentelemetry-semantic-conventions==0.49b2
20
+ Requires-Dist: opentelemetry-semantic-conventions==0.50b0
21
21
  Requires-Dist: packaging>=18.0
22
22
  Requires-Dist: wrapt<2.0.0,>=1.0.0
23
23
  Description-Content-Type: text/x-rst
@@ -26,7 +26,7 @@ classifiers = [
26
26
  ]
27
27
  dependencies = [
28
28
  "opentelemetry-api ~= 1.4",
29
- "opentelemetry-semantic-conventions == 0.49b2",
29
+ "opentelemetry-semantic-conventions == 0.50b0",
30
30
  "wrapt >= 1.0.0, < 2.0.0",
31
31
  "packaging >= 18.0",
32
32
  ]
@@ -18,187 +18,191 @@
18
18
  libraries = [
19
19
  {
20
20
  "library": "openai >= 1.26.0",
21
- "instrumentation": "opentelemetry-instrumentation-openai-v2==2.0.0.dev",
21
+ "instrumentation": "opentelemetry-instrumentation-openai-v2==2.1b0.dev",
22
22
  },
23
23
  {
24
24
  "library": "aio_pika >= 7.2.0, < 10.0.0",
25
- "instrumentation": "opentelemetry-instrumentation-aio-pika==0.49b2",
25
+ "instrumentation": "opentelemetry-instrumentation-aio-pika==0.50b0",
26
26
  },
27
27
  {
28
28
  "library": "aiohttp ~= 3.0",
29
- "instrumentation": "opentelemetry-instrumentation-aiohttp-client==0.49b2",
29
+ "instrumentation": "opentelemetry-instrumentation-aiohttp-client==0.50b0",
30
30
  },
31
31
  {
32
32
  "library": "aiohttp ~= 3.0",
33
- "instrumentation": "opentelemetry-instrumentation-aiohttp-server==0.49b2",
33
+ "instrumentation": "opentelemetry-instrumentation-aiohttp-server==0.50b0",
34
34
  },
35
35
  {
36
36
  "library": "aiokafka >= 0.8, < 1.0",
37
- "instrumentation": "opentelemetry-instrumentation-aiokafka==0.49b2",
37
+ "instrumentation": "opentelemetry-instrumentation-aiokafka==0.50b0",
38
38
  },
39
39
  {
40
40
  "library": "aiopg >= 0.13.0, < 2.0.0",
41
- "instrumentation": "opentelemetry-instrumentation-aiopg==0.49b2",
41
+ "instrumentation": "opentelemetry-instrumentation-aiopg==0.50b0",
42
42
  },
43
43
  {
44
44
  "library": "asgiref ~= 3.0",
45
- "instrumentation": "opentelemetry-instrumentation-asgi==0.49b2",
45
+ "instrumentation": "opentelemetry-instrumentation-asgi==0.50b0",
46
46
  },
47
47
  {
48
48
  "library": "asyncpg >= 0.12.0",
49
- "instrumentation": "opentelemetry-instrumentation-asyncpg==0.49b2",
49
+ "instrumentation": "opentelemetry-instrumentation-asyncpg==0.50b0",
50
50
  },
51
51
  {
52
52
  "library": "boto~=2.0",
53
- "instrumentation": "opentelemetry-instrumentation-boto==0.49b2",
53
+ "instrumentation": "opentelemetry-instrumentation-boto==0.50b0",
54
54
  },
55
55
  {
56
56
  "library": "boto3 ~= 1.0",
57
- "instrumentation": "opentelemetry-instrumentation-boto3sqs==0.49b2",
57
+ "instrumentation": "opentelemetry-instrumentation-boto3sqs==0.50b0",
58
58
  },
59
59
  {
60
60
  "library": "botocore ~= 1.0",
61
- "instrumentation": "opentelemetry-instrumentation-botocore==0.49b2",
61
+ "instrumentation": "opentelemetry-instrumentation-botocore==0.50b0",
62
62
  },
63
63
  {
64
64
  "library": "cassandra-driver ~= 3.25",
65
- "instrumentation": "opentelemetry-instrumentation-cassandra==0.49b2",
65
+ "instrumentation": "opentelemetry-instrumentation-cassandra==0.50b0",
66
66
  },
67
67
  {
68
68
  "library": "scylla-driver ~= 3.25",
69
- "instrumentation": "opentelemetry-instrumentation-cassandra==0.49b2",
69
+ "instrumentation": "opentelemetry-instrumentation-cassandra==0.50b0",
70
70
  },
71
71
  {
72
72
  "library": "celery >= 4.0, < 6.0",
73
- "instrumentation": "opentelemetry-instrumentation-celery==0.49b2",
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",
74
78
  },
75
79
  {
76
80
  "library": "confluent-kafka >= 1.8.2, <= 2.4.0",
77
- "instrumentation": "opentelemetry-instrumentation-confluent-kafka==0.49b2",
81
+ "instrumentation": "opentelemetry-instrumentation-confluent-kafka==0.50b0",
78
82
  },
79
83
  {
80
84
  "library": "django >= 1.10",
81
- "instrumentation": "opentelemetry-instrumentation-django==0.49b2",
85
+ "instrumentation": "opentelemetry-instrumentation-django==0.50b0",
82
86
  },
83
87
  {
84
88
  "library": "elasticsearch >= 6.0",
85
- "instrumentation": "opentelemetry-instrumentation-elasticsearch==0.49b2",
89
+ "instrumentation": "opentelemetry-instrumentation-elasticsearch==0.50b0",
86
90
  },
87
91
  {
88
92
  "library": "falcon >= 1.4.1, < 3.1.2",
89
- "instrumentation": "opentelemetry-instrumentation-falcon==0.49b2",
93
+ "instrumentation": "opentelemetry-instrumentation-falcon==0.50b0",
90
94
  },
91
95
  {
92
96
  "library": "fastapi ~= 0.58",
93
- "instrumentation": "opentelemetry-instrumentation-fastapi==0.49b2",
97
+ "instrumentation": "opentelemetry-instrumentation-fastapi==0.50b0",
94
98
  },
95
99
  {
96
100
  "library": "flask >= 1.0",
97
- "instrumentation": "opentelemetry-instrumentation-flask==0.49b2",
101
+ "instrumentation": "opentelemetry-instrumentation-flask==0.50b0",
98
102
  },
99
103
  {
100
104
  "library": "grpcio >= 1.42.0",
101
- "instrumentation": "opentelemetry-instrumentation-grpc==0.49b2",
105
+ "instrumentation": "opentelemetry-instrumentation-grpc==0.50b0",
102
106
  },
103
107
  {
104
108
  "library": "httpx >= 0.18.0",
105
- "instrumentation": "opentelemetry-instrumentation-httpx==0.49b2",
109
+ "instrumentation": "opentelemetry-instrumentation-httpx==0.50b0",
106
110
  },
107
111
  {
108
112
  "library": "jinja2 >= 2.7, < 4.0",
109
- "instrumentation": "opentelemetry-instrumentation-jinja2==0.49b2",
113
+ "instrumentation": "opentelemetry-instrumentation-jinja2==0.50b0",
110
114
  },
111
115
  {
112
116
  "library": "kafka-python >= 2.0, < 3.0",
113
- "instrumentation": "opentelemetry-instrumentation-kafka-python==0.49b2",
117
+ "instrumentation": "opentelemetry-instrumentation-kafka-python==0.50b0",
114
118
  },
115
119
  {
116
120
  "library": "kafka-python-ng >= 2.0, < 3.0",
117
- "instrumentation": "opentelemetry-instrumentation-kafka-python==0.49b2",
121
+ "instrumentation": "opentelemetry-instrumentation-kafka-python==0.50b0",
118
122
  },
119
123
  {
120
124
  "library": "mysql-connector-python >= 8.0, < 10.0",
121
- "instrumentation": "opentelemetry-instrumentation-mysql==0.49b2",
125
+ "instrumentation": "opentelemetry-instrumentation-mysql==0.50b0",
122
126
  },
123
127
  {
124
128
  "library": "mysqlclient < 3",
125
- "instrumentation": "opentelemetry-instrumentation-mysqlclient==0.49b2",
129
+ "instrumentation": "opentelemetry-instrumentation-mysqlclient==0.50b0",
126
130
  },
127
131
  {
128
132
  "library": "pika >= 0.12.0",
129
- "instrumentation": "opentelemetry-instrumentation-pika==0.49b2",
133
+ "instrumentation": "opentelemetry-instrumentation-pika==0.50b0",
130
134
  },
131
135
  {
132
136
  "library": "psycopg >= 3.1.0",
133
- "instrumentation": "opentelemetry-instrumentation-psycopg==0.49b2",
137
+ "instrumentation": "opentelemetry-instrumentation-psycopg==0.50b0",
134
138
  },
135
139
  {
136
140
  "library": "psycopg2 >= 2.7.3.1",
137
- "instrumentation": "opentelemetry-instrumentation-psycopg2==0.49b2",
141
+ "instrumentation": "opentelemetry-instrumentation-psycopg2==0.50b0",
138
142
  },
139
143
  {
140
144
  "library": "pymemcache >= 1.3.5, < 5",
141
- "instrumentation": "opentelemetry-instrumentation-pymemcache==0.49b2",
145
+ "instrumentation": "opentelemetry-instrumentation-pymemcache==0.50b0",
142
146
  },
143
147
  {
144
148
  "library": "pymongo >= 3.1, < 5.0",
145
- "instrumentation": "opentelemetry-instrumentation-pymongo==0.49b2",
149
+ "instrumentation": "opentelemetry-instrumentation-pymongo==0.50b0",
146
150
  },
147
151
  {
148
152
  "library": "PyMySQL < 2",
149
- "instrumentation": "opentelemetry-instrumentation-pymysql==0.49b2",
153
+ "instrumentation": "opentelemetry-instrumentation-pymysql==0.50b0",
150
154
  },
151
155
  {
152
156
  "library": "pyramid >= 1.7",
153
- "instrumentation": "opentelemetry-instrumentation-pyramid==0.49b2",
157
+ "instrumentation": "opentelemetry-instrumentation-pyramid==0.50b0",
154
158
  },
155
159
  {
156
160
  "library": "redis >= 2.6",
157
- "instrumentation": "opentelemetry-instrumentation-redis==0.49b2",
161
+ "instrumentation": "opentelemetry-instrumentation-redis==0.50b0",
158
162
  },
159
163
  {
160
164
  "library": "remoulade >= 0.50",
161
- "instrumentation": "opentelemetry-instrumentation-remoulade==0.49b2",
165
+ "instrumentation": "opentelemetry-instrumentation-remoulade==0.50b0",
162
166
  },
163
167
  {
164
168
  "library": "requests ~= 2.0",
165
- "instrumentation": "opentelemetry-instrumentation-requests==0.49b2",
169
+ "instrumentation": "opentelemetry-instrumentation-requests==0.50b0",
166
170
  },
167
171
  {
168
172
  "library": "sqlalchemy >= 1.0.0, < 2.1.0",
169
- "instrumentation": "opentelemetry-instrumentation-sqlalchemy==0.49b2",
173
+ "instrumentation": "opentelemetry-instrumentation-sqlalchemy==0.50b0",
170
174
  },
171
175
  {
172
176
  "library": "starlette ~= 0.13.0",
173
- "instrumentation": "opentelemetry-instrumentation-starlette==0.49b2",
177
+ "instrumentation": "opentelemetry-instrumentation-starlette==0.50b0",
174
178
  },
175
179
  {
176
180
  "library": "psutil >= 5",
177
- "instrumentation": "opentelemetry-instrumentation-system-metrics==0.49b2",
181
+ "instrumentation": "opentelemetry-instrumentation-system-metrics==0.50b0",
178
182
  },
179
183
  {
180
184
  "library": "tornado >= 5.1.1",
181
- "instrumentation": "opentelemetry-instrumentation-tornado==0.49b2",
185
+ "instrumentation": "opentelemetry-instrumentation-tornado==0.50b0",
182
186
  },
183
187
  {
184
188
  "library": "tortoise-orm >= 0.17.0",
185
- "instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.49b2",
189
+ "instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.50b0",
186
190
  },
187
191
  {
188
192
  "library": "pydantic >= 1.10.2",
189
- "instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.49b2",
193
+ "instrumentation": "opentelemetry-instrumentation-tortoiseorm==0.50b0",
190
194
  },
191
195
  {
192
196
  "library": "urllib3 >= 1.0.0, < 3.0.0",
193
- "instrumentation": "opentelemetry-instrumentation-urllib3==0.49b2",
197
+ "instrumentation": "opentelemetry-instrumentation-urllib3==0.50b0",
194
198
  },
195
199
  ]
196
200
  default_instrumentations = [
197
- "opentelemetry-instrumentation-asyncio==0.49b2",
198
- "opentelemetry-instrumentation-dbapi==0.49b2",
199
- "opentelemetry-instrumentation-logging==0.49b2",
200
- "opentelemetry-instrumentation-sqlite3==0.49b2",
201
- "opentelemetry-instrumentation-threading==0.49b2",
202
- "opentelemetry-instrumentation-urllib==0.49b2",
203
- "opentelemetry-instrumentation-wsgi==0.49b2",
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",
204
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.49b2"
15
+ __version__ = "0.50b0"