opentelemetry-instrumentation-tornado 0.45b0__py3-none-any.whl → 0.46b0__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.
@@ -87,14 +87,14 @@ created span and some other contextual information. Example:
87
87
  # will be called after a outgoing request made with
88
88
  # `tornado.httpclient.AsyncHTTPClient.fetch` finishes.
89
89
  # `response`` is an instance of ``Future[tornado.httpclient.HTTPResponse]`.
90
- def client_resposne_hook(span, future):
90
+ def client_response_hook(span, future):
91
91
  pass
92
92
 
93
93
  # apply tornado instrumentation with hooks
94
94
  TornadoInstrumentor().instrument(
95
95
  server_request_hook=server_request_hook,
96
96
  client_request_hook=client_request_hook,
97
- client_response_hook=client_resposne_hook
97
+ client_response_hook=client_response_hook
98
98
  )
99
99
 
100
100
  Capture HTTP request and response headers
@@ -455,9 +455,9 @@ def _get_attributes_from_request(request):
455
455
  if hasattr(request.connection, "context") and getattr(
456
456
  request.connection.context, "_orig_remote_ip", None
457
457
  ):
458
- attrs[
459
- SpanAttributes.NET_PEER_IP
460
- ] = request.connection.context._orig_remote_ip
458
+ attrs[SpanAttributes.NET_PEER_IP] = (
459
+ request.connection.context._orig_remote_ip
460
+ )
461
461
 
462
462
  return extract_attributes_from_object(
463
463
  request, _traced_request_attrs, attrs
@@ -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.45b0"
15
+ __version__ = "0.46b0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: opentelemetry-instrumentation-tornado
3
- Version: 0.45b0
3
+ Version: 0.46b0
4
4
  Summary: Tornado instrumentation for OpenTelemetry
5
5
  Project-URL: Homepage, https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-tornado
6
6
  Author-email: OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
@@ -16,9 +16,9 @@ Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Requires-Python: >=3.8
18
18
  Requires-Dist: opentelemetry-api~=1.12
19
- Requires-Dist: opentelemetry-instrumentation==0.45b0
20
- Requires-Dist: opentelemetry-semantic-conventions==0.45b0
21
- Requires-Dist: opentelemetry-util-http==0.45b0
19
+ Requires-Dist: opentelemetry-instrumentation==0.46b0
20
+ Requires-Dist: opentelemetry-semantic-conventions==0.46b0
21
+ Requires-Dist: opentelemetry-util-http==0.46b0
22
22
  Provides-Extra: instruments
23
23
  Requires-Dist: tornado>=5.1.1; extra == 'instruments'
24
24
  Description-Content-Type: text/x-rst
@@ -0,0 +1,9 @@
1
+ opentelemetry/instrumentation/tornado/__init__.py,sha256=UrhGSHAvSo90eH7n8hECnhNxtHIyzvLOwK6LaXKFIhU,23139
2
+ opentelemetry/instrumentation/tornado/client.py,sha256=xWNwdEjukG19jNTrfi4Rw8lS6rcRW3_RqOVTbXlTL2E,4586
3
+ opentelemetry/instrumentation/tornado/package.py,sha256=mv-OUOrDF54kFoP_Epb3Pv8aufliZTMOwLWL5oAV_hY,649
4
+ opentelemetry/instrumentation/tornado/version.py,sha256=asa7q2ly73330-K1Q7vujpvZk7hfhasEZUzSFDPu1N8,608
5
+ opentelemetry_instrumentation_tornado-0.46b0.dist-info/METADATA,sha256=mi34aoPBU8II-lJi7fbVR6fXxbd5zTz3xN8IeQfiNjw,1932
6
+ opentelemetry_instrumentation_tornado-0.46b0.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
7
+ opentelemetry_instrumentation_tornado-0.46b0.dist-info/entry_points.txt,sha256=oDTErilMYHHuN6bv9XNAU1Avoy8f_nfCx91bASSkpgg,97
8
+ opentelemetry_instrumentation_tornado-0.46b0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
9
+ opentelemetry_instrumentation_tornado-0.46b0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.22.4
2
+ Generator: hatchling 1.24.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright The OpenTelemetry Authors
189
+ Copyright [yyyy] [name of copyright owner]
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -1,9 +0,0 @@
1
- opentelemetry/instrumentation/tornado/__init__.py,sha256=N20GVaUc-5Zp36zX-d7PDwo1P3q1hD9F8V7j_N023TQ,23137
2
- opentelemetry/instrumentation/tornado/client.py,sha256=xWNwdEjukG19jNTrfi4Rw8lS6rcRW3_RqOVTbXlTL2E,4586
3
- opentelemetry/instrumentation/tornado/package.py,sha256=mv-OUOrDF54kFoP_Epb3Pv8aufliZTMOwLWL5oAV_hY,649
4
- opentelemetry/instrumentation/tornado/version.py,sha256=HyCKkZGb11xsSYPWI9CHcfWAYU5IqDVTDpTmCwMvfu0,608
5
- opentelemetry_instrumentation_tornado-0.45b0.dist-info/METADATA,sha256=1_Q2CRMNEhoR_GFgwgnZWWLnsDhNBropGU0jUo1Ddac,1932
6
- opentelemetry_instrumentation_tornado-0.45b0.dist-info/WHEEL,sha256=uNdcs2TADwSd5pVaP0Z_kcjcvvTUklh2S7bxZMF8Uj0,87
7
- opentelemetry_instrumentation_tornado-0.45b0.dist-info/entry_points.txt,sha256=oDTErilMYHHuN6bv9XNAU1Avoy8f_nfCx91bASSkpgg,97
8
- opentelemetry_instrumentation_tornado-0.45b0.dist-info/licenses/LICENSE,sha256=h8jwqxShIeVkc8vOo9ynxGYW16f4fVPxLhZKZs0H5U8,11350
9
- opentelemetry_instrumentation_tornado-0.45b0.dist-info/RECORD,,