Skip to content

Commit e98d2b3

Browse files
authored
Merge branch 'main' into sqlalchemy-connect
2 parents d7b70f9 + 3770e57 commit e98d2b3

File tree

55 files changed

+74
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+74
-92
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ jobs:
102102
steps:
103103
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
104104
uses: actions/checkout@v2
105-
- name: Set up Python 3.9
105+
- name: Set up Python 3.10
106106
uses: actions/setup-python@v2
107107
with:
108-
python-version: 3.9
108+
python-version: "3.10"
109109
- name: Install tox
110110
run: pip install tox==3.27.1
111111
- name: Install libsnappy-dev

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- `opentelemetry-instrumentation-celery` Record exceptions as events on the span.
13+
([#1573](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1573))
1214
- Add metric instrumentation for urllib
1315
([#1553](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1553))
1416
- `opentelemetry/sdk/extension/aws` Implement [`aws.ecs.*`](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/cloud_provider/aws/ecs.md) and [`aws.logs.*`](https://opentelemetry.io/docs/reference/specification/resource/semantic_conventions/cloud_provider/aws/logs/) resource attributes in the `AwsEcsResourceDetector` detector when the ECS Metadata v4 is available
@@ -19,6 +21,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1921
([#1613](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1613))
2022
- Fix aiohttp bug with unset `trace_configs`
2123
([#1592](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1592))
24+
- Fix aiohttp bug with unset `trace_configs`
25+
([#1592](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1592))
26+
- `opentelemetry-instrumentation-django` Allow explicit `excluded_urls` configuration through `instrument()`
27+
([#1618](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1618))
2228

2329
### Fixed
2430

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ Meeting notes are available as a public [Google doc](https://docs.google.com/doc
9595
Approvers ([@open-telemetry/python-approvers](https://github.com/orgs/open-telemetry/teams/python-approvers)):
9696

9797
- [Aaron Abbott](https://github.com/aabmass), Google
98-
- [Nathaniel Ruiz Nowell](https://github.com/NathanielRN), AWS
99-
- [Owais Lone](https://github.com/owais), Splunk
10098
- [Sanket Mehta](https://github.com/sanketmehta28), Cisco
101-
- [Ashutosh Goel](https://github.com/ashu658), Cisco
99+
- [Shalev Roda](https://github.com/shalevr), Cisco
102100

103101
Emeritus Approvers:
104102

105103
- [Hector Hernandez](https://github.com/hectorhdzg), Microsoft
106104
- [Yusuke Tsutsumi](https://github.com/toumorokoshi), Google
105+
- [Nathaniel Ruiz Nowell](https://github.com/NathanielRN), AWS
106+
- [Ashutosh Goel](https://github.com/ashu658), Cisco
107107

108108
*Find more about the approver role in [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#approver).*
109109

@@ -116,6 +116,7 @@ Maintainers ([@open-telemetry/python-maintainers](https://github.com/orgs/open-t
116116
Emeritus Maintainers:
117117

118118
- [Alex Boten](https://github.com/codeboten), Lightstep
119+
- [Owais Lone](https://github.com/owais), Splunk
119120

120121
*Find more about the maintainer role in [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#maintainer).*
121122

exporter/opentelemetry-exporter-prometheus-remote-write/example/sampleapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
# Callback to gather cpu usage
4848
def get_cpu_usage_callback(observer):
49-
for (number, percent) in enumerate(psutil.cpu_percent(percpu=True)):
49+
for number, percent in enumerate(psutil.cpu_percent(percpu=True)):
5050
labels = {"cpu_number": str(number)}
5151
yield Observation(percent, labels)
5252

exporter/opentelemetry-exporter-prometheus-remote-write/src/opentelemetry/exporter/prometheus_remote_write/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ def _sanitize_string(string: str, type_: str) -> str:
300300
return sanitized
301301

302302
def _parse_histogram_data_point(self, data_point, name):
303-
304303
sample_attr_pairs = []
305304

306305
base_attrs = list(data_point.attributes.items())
@@ -341,7 +340,6 @@ def handle_bucket(value, bound=None, name_override=None):
341340
return sample_attr_pairs
342341

343342
def _parse_data_point(self, data_point, name=None):
344-
345343
attrs = tuple(data_point.attributes.items()) + (
346344
("__name__", self._sanitize_string(name, "name")),
347345
)

exporter/opentelemetry-exporter-prometheus-remote-write/src/opentelemetry/exporter/prometheus_remote_write/gen/remote_pb2.py

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/opentelemetry-exporter-prometheus-remote-write/src/opentelemetry/exporter/prometheus_remote_write/gen/types_pb2.py

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/opentelemetry-exporter-prometheus-remote-write/tests/test_prometheus_remote_write_exporter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def test_regex_invalid(prom_rw):
5656

5757

5858
def test_parse_data_point(prom_rw):
59-
6059
attrs = {"Foo": "Bar", "Baz": 42}
6160
timestamp = 1641946016139533244
6261
value = 242.42

instrumentation/opentelemetry-instrumentation-aiopg/src/opentelemetry/instrumentation/aiopg/aiopg_integration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def get_traced_cursor_proxy(cursor, db_api_integration, *args, **kwargs):
127127

128128
# pylint: disable=abstract-method
129129
class AsyncCursorTracerProxy(AsyncProxyObject):
130-
131130
# pylint: disable=unused-argument
132131
def __init__(self, cursor, *args, **kwargs):
133132
super().__init__(cursor)

instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ def collect_request_attributes(scope):
334334

335335
def collect_custom_request_headers_attributes(scope):
336336
"""returns custom HTTP request headers to be added into SERVER span as span attributes
337-
Refer specification https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers"""
337+
Refer specification https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers
338+
"""
338339

339340
sanitize = SanitizeValue(
340341
get_custom_headers(
@@ -359,7 +360,8 @@ def collect_custom_request_headers_attributes(scope):
359360

360361
def collect_custom_response_headers_attributes(message):
361362
"""returns custom HTTP response headers to be added into SERVER span as span attributes
362-
Refer specification https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers"""
363+
Refer specification https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers
364+
"""
363365

364366
sanitize = SanitizeValue(
365367
get_custom_headers(

0 commit comments

Comments
 (0)