Skip to content

Commit e033784

Browse files
authored
Merge branch 'main' into issue-2446
2 parents b3fcb88 + e280a8a commit e033784

File tree

109 files changed

+3272
-925
lines changed

Some content is hidden

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

109 files changed

+3272
-925
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
# Otherwise, set variable to the commit of your branch on
1111
# opentelemetry-python-contrib which is compatible with these Core repo
1212
# changes.
13-
CONTRIB_REPO_SHA: ad2594e166bd7f4cd40780df418f82389de970a6
13+
CONTRIB_REPO_SHA: e71a5157c184266002186cf853dfb8e2f2d6b924
1414
# This is needed because we do not clone the core repo in contrib builds anymore.
1515
# When running contrib builds as part of core builds, we use actions/checkout@v2 which
1616
# does not set an environment variable (simply just runs tox), which is different when

CHANGELOG.md

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,40 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v1.9.1-0.28b1...HEAD)
8+
## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v1.10.0-0.29b0...HEAD)
9+
10+
- Fix parsing of trace flags when extracting traceparent
11+
([#2577](https://github.com/open-telemetry/opentelemetry-python/pull/2577))
12+
- Add default aggregation
13+
([#2543](https://github.com/open-telemetry/opentelemetry-python/pull/2543))
14+
- Fix incorrect installation of some exporter “convenience” packages into
15+
“site-packages/src”
16+
([#2525](https://github.com/open-telemetry/opentelemetry-python/pull/2525))
17+
- Capture exception information as part of log attributes
18+
([#2531](https://github.com/open-telemetry/opentelemetry-python/pull/2531))
19+
- Change OTLPHandler to LoggingHandler
20+
([#2528](https://github.com/open-telemetry/opentelemetry-python/pull/2528))
21+
- Fix delta histogram sum not being reset on collection
22+
([#2533](https://github.com/open-telemetry/opentelemetry-python/pull/2533))
23+
- Add InMemoryMetricReader to metrics SDK
24+
([#2540](https://github.com/open-telemetry/opentelemetry-python/pull/2540))
25+
- Drop the usage of name field from log model in OTLP
26+
([#2565](https://github.com/open-telemetry/opentelemetry-python/pull/2565))
27+
- Update opentelemetry-proto to v0.15.0
28+
([#2566](https://github.com/open-telemetry/opentelemetry-python/pull/2566))
29+
- Remove `enable_default_view` option from sdk MeterProvider
30+
([#2547](https://github.com/open-telemetry/opentelemetry-python/pull/2547))
31+
- Update otlp-proto-grpc and otlp-proto-http exporters to have more lax requirements for `backoff` lib
32+
([#2575](https://github.com/open-telemetry/opentelemetry-python/pull/2575))
33+
34+
## [1.10.0-0.29b0](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.10.0-0.29b0) - 2022-03-10
935

1036
- Docs rework: [non-API docs are
1137
moving](https://github.com/open-telemetry/opentelemetry-python/issues/2172) to
1238
[opentelemetry.io](https://opentelemetry.io). For details, including a list of
1339
pages that have moved, see
14-
[#2453](https://github.com/open-telemetry/opentelemetry-python/pull/2453).
40+
[#2453](https://github.com/open-telemetry/opentelemetry-python/pull/2453), and
41+
[#2498](https://github.com/open-telemetry/opentelemetry-python/pull/2498).
1542
- `opentelemetry-exporter-otlp-proto-grpc` update SDK dependency to ~1.9.
1643
([#2442](https://github.com/open-telemetry/opentelemetry-python/pull/2442))
1744
- bugfix(auto-instrumentation): attach OTLPHandler to root logger
@@ -22,6 +49,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2249
([#2462](https://github.com/open-telemetry/opentelemetry-python/pull/2462))
2350
- fix exception handling in get_aggregated_resources
2451
([#2464](https://github.com/open-telemetry/opentelemetry-python/pull/2464))
52+
- Fix `OTEL_EXPORTER_OTLP_ENDPOINT` usage in OTLP HTTP trace exporter
53+
([#2493](https://github.com/open-telemetry/opentelemetry-python/pull/2493))
54+
- [exporter/opentelemetry-exporter-prometheus] restore package using the new metrics API
55+
([#2321](https://github.com/open-telemetry/opentelemetry-python/pull/2321))
2556

2657
## [1.9.1-0.28b1](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.9.1-0.28b1) - 2022-01-29
2758

@@ -94,6 +125,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
94125

95126
## [1.6.2-0.25b2](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.6.2-0.25b2) - 2021-10-19
96127

128+
- Fix parental trace relationship for opentracing `follows_from` reference
129+
([#2180](https://github.com/open-telemetry/opentelemetry-python/pull/2180))
130+
97131
## [1.6.1-0.25b1](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.6.1-0.25b1) - 2021-10-18
98132

99133
- Fix ReadableSpan property types attempting to create a mapping from a list
@@ -103,9 +137,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
103137
- Propagation: only warn about oversized baggage headers when headers exist
104138
([#2212](https://github.com/open-telemetry/opentelemetry-python/pull/2212))
105139

106-
- Fix parental trace relationship for opentracing `follows_from` reference
107-
([#2180](https://github.com/open-telemetry/opentelemetry-python/pull/2180))
108-
109140
## [1.6.0-0.25b0](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.6.0-0.25b0) - 2021-10-13
110141

111142
- Fix race in `set_tracer_provider()`

CONTRIBUTING.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,15 @@ as well as the project's packages themselves (in `--editable` mode).
5353
You can then run `scripts/eachdist.py test` to test everything or
5454
`scripts/eachdist.py lint` to lint everything (fixing anything that is auto-fixable).
5555

56-
Additionally, this project uses [`tox`](https://tox.readthedocs.io) to automate some aspects
57-
of development, including testing against multiple Python versions.
56+
Additionally, this project uses [tox](https://tox.readthedocs.io) to automate
57+
some aspects of development, including testing against multiple Python versions.
58+
To install `tox`, run:
5859

59-
You can run:
60+
```console
61+
$ pip install tox
62+
```
63+
64+
You can run `tox` with the following arguments:
6065

6166
- `tox` to run all existing tox commands, including unit tests for all packages
6267
under multiple Python versions
@@ -66,6 +71,12 @@ You can run:
6671
Python version
6772
- `tox -e lint` to run lint checks on all code
6873

74+
`black` and `isort` are executed when `tox -e lint` is run. The reported errors can be tedious to fix manually.
75+
An easier way to do so is:
76+
77+
1. Run `.tox/lint/bin/black .`
78+
2. Run `.tox/lint/bin/isort .`
79+
6980
We try to keep the amount of _public symbols_ in our code minimal. A public symbol is any Python identifier that does not start with an underscore.
7081
Every public symbol is something that has to be kept in order to maintain backwards compatibility, so we try to have as few as possible.
7182

@@ -88,7 +99,7 @@ with a specific git commit hash by setting an environment variable before runnin
8899
CONTRIB_REPO_SHA=dde62cebffe519c35875af6d06fae053b3be65ec tox
89100
```
90101

91-
The continuation integration overrides that environment variable with as per the configuration
102+
The continuation integration overrides that environment variable with as per the configuration
92103
[here](https://github.com/open-telemetry/opentelemetry-python/blob/9020b0baaeb41b7137badca988bb5c2d562cddee/.github/workflows/test.yml#L13).
93104

94105
### Benchmarks
@@ -125,13 +136,13 @@ pull requests (PRs).
125136

126137
To create a new PR, fork the project in GitHub and clone the upstream repo:
127138

128-
```sh
139+
```console
129140
$ git clone https://github.com/open-telemetry/opentelemetry-python.git
130141
```
131142

132143
Add your fork as an origin:
133144

134-
```sh
145+
```console
135146
$ git remote add fork https://github.com/YOUR_GITHUB_USERNAME/opentelemetry-python.git
136147
```
137148

@@ -154,7 +165,7 @@ $ git push fork feature
154165

155166
Open a pull request against the main `opentelemetry-python` repo.
156167

157-
Pull requests are also tested for their compatibility with packages distributed
168+
Pull requests are also tested for their compatibility with packages distributed
158169
by OpenTelemetry in the [OpenTelemetry Python Contrib Repository](https://github.com/open-telemetry/opentelemetry-python.git).
159170

160171
If a pull request (PR) introduces a change that would break the compatibility of
@@ -196,7 +207,7 @@ Any Approver / Maintainer can merge the PR once it is **ready to merge**.
196207

197208
## Design Choices
198209

199-
As with other OpenTelemetry clients, opentelemetry-python follows the
210+
As with other OpenTelemetry clients, opentelemetry-python follows the
200211
[opentelemetry-specification](https://github.com/open-telemetry/opentelemetry-specification).
201212

202213
It's especially valuable to read through the [library guidelines](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/library-guidelines.md).
@@ -209,7 +220,7 @@ use cases are clear, but the method to satisfy those uses cases are not.
209220
As such, contributions should provide functionality and behavior that
210221
conforms to the specification, but the interface and structure is flexible.
211222

212-
It is preferable to have contributions follow the idioms of the language
223+
It is preferable to have contributions follow the idioms of the language
213224
rather than conform to specific API names or argument patterns in the spec.
214225

215226
For a deeper discussion, see: https://github.com/open-telemetry/opentelemetry-specification/issues/165

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Approvers ([@open-telemetry/python-approvers](https://github.com/orgs/open-telem
138138
- [Aaron Abbott](https://github.com/aabmass), Google
139139
- [Alex Boten](https://github.com/codeboten), Lightstep
140140
- [Srikanth Chekuri](https://github.com/lonewolf3739)
141+
- [Owais Lone](https://github.com/owais), Splunk
141142
- [Nathaniel Ruiz Nowell](https://github.com/NathanielRN), AWS
142143

143144
*For more information about the approver role, see the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#approver).*
@@ -146,7 +147,6 @@ Maintainers ([@open-telemetry/python-maintainers](https://github.com/orgs/open-t
146147

147148
- [Diego Hurtado](https://github.com/ocelotl), Lightstep
148149
- [Leighton Chen](https://github.com/lzchen), Microsoft
149-
- [Owais Lone](https://github.com/owais), Splunk
150150

151151
*For more information about the maintainer role, see the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#maintainer).*
152152

dev-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
pylint==2.11.0
22
flake8~=3.7
33
isort~=5.8
4-
black~=22.1.0
4+
black~=22.3.0
55
httpretty~=1.0
6-
mypy==0.812
6+
mypy==0.931
77
sphinx~=3.5.4
88
sphinx-rtd-theme~=0.5
99
sphinx-autodoc-typehints~=1.12.0

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
"undoc-members": True,
148148
"show-inheritance": True,
149149
"member-order": "bysource",
150+
"exclude-members": "_ProxyObservableUpDownCounter,_ProxyHistogram,_ProxyObservableGauge,_ProxyInstrument,_ProxyAsynchronousInstrument,_ProxyCounter,_ProxyUpDownCounter,_ProxyObservableCounter,_ProxyObservableGauge,_abc_impl",
150151
}
151152

152153
# -- Options for HTML output -------------------------------------------------

0 commit comments

Comments
 (0)