Skip to content

Commit e32c432

Browse files
committed
Merge branch 'main' into prometheus_exporter
2 parents ac0eb56 + 2bcbbcc commit e32c432

File tree

128 files changed

+1692
-289
lines changed

Some content is hidden

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

128 files changed

+1692
-289
lines changed

.github/workflows/contrib_0.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,6 +2060,34 @@ jobs:
20602060
- name: Run tests
20612061
run: tox -e py38-test-instrumentation-aio-pika-3 -- -ra
20622062

2063+
py38-test-instrumentation-aiokafka:
2064+
name: instrumentation-aiokafka
2065+
runs-on: ubuntu-latest
2066+
steps:
2067+
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
2068+
uses: actions/checkout@v4
2069+
with:
2070+
repository: open-telemetry/opentelemetry-python-contrib
2071+
ref: ${{ env.CONTRIB_REPO_SHA }}
2072+
2073+
- name: Checkout core repo @ SHA - ${{ github.sha }}
2074+
uses: actions/checkout@v4
2075+
with:
2076+
repository: open-telemetry/opentelemetry-python
2077+
path: opentelemetry-python-core
2078+
2079+
- name: Set up Python 3.8
2080+
uses: actions/setup-python@v5
2081+
with:
2082+
python-version: "3.8"
2083+
architecture: "x64"
2084+
2085+
- name: Install tox
2086+
run: pip install tox
2087+
2088+
- name: Run tests
2089+
run: tox -e py38-test-instrumentation-aiokafka -- -ra
2090+
20632091
py38-test-instrumentation-kafka-python:
20642092
name: instrumentation-kafka-python
20652093
runs-on: ubuntu-latest

.github/workflows/misc_0.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,24 @@ jobs:
8888
- name: Run tests
8989
run: tox -e mypyinstalled
9090

91+
pyright:
92+
name: pyright
93+
runs-on: ubuntu-latest
94+
steps:
95+
- name: Checkout repo @ SHA - ${{ github.sha }}
96+
uses: actions/checkout@v4
97+
98+
- name: Set up Python 3.10
99+
uses: actions/setup-python@v5
100+
with:
101+
python-version: "3.10"
102+
103+
- name: Install tox
104+
run: pip install tox
105+
106+
- name: Run tests
107+
run: tox -e pyright
108+
91109
docs:
92110
name: docs
93111
runs-on: ubuntu-latest
@@ -147,7 +165,7 @@ jobs:
147165
runs-on: ubuntu-latest
148166
if: |
149167
!contains(github.event.pull_request.labels.*.name, 'Approve Public API check')
150-
&& github.actor != 'opentelemetrybot'
168+
&& github.actor != 'opentelemetrybot' && github.event_name == 'pull_request'
151169
steps:
152170
- name: Checkout repo @ SHA - ${{ github.sha }}
153171
uses: actions/checkout@v4

.github/workflows/prepare-release-branch.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343

44+
- name: Install toml
45+
run: pip install toml
46+
4447
- name: Create release branch
4548
env:
4649
PRERELEASE_VERSION: ${{ github.event.inputs.prerelease_version }}
@@ -105,6 +108,9 @@ jobs:
105108
steps:
106109
- uses: actions/checkout@v4
107110

111+
- name: Install toml
112+
run: pip install toml
113+
108114
- name: Set environment variables
109115
env:
110116
PRERELEASE_VERSION: ${{ github.event.inputs.prerelease_version }}

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10-
- sdk: Implementation of exemplars
11-
([#4094](https://github.com/open-telemetry/opentelemetry-python/pull/4094))
10+
- Removed superfluous py.typed markers and added them where they were missing
11+
([#4172](https://github.com/open-telemetry/opentelemetry-python/pull/4172))
12+
- Include metric info in encoding exceptions
13+
([#4154](https://github.com/open-telemetry/opentelemetry-python/pull/4154))
1214
- sdk: Add support for log formatting
1315
([#4137](https://github.com/open-telemetry/opentelemetry-python/pull/4166))
14-
16+
- sdk: Implementation of exemplars
17+
([#4094](https://github.com/open-telemetry/opentelemetry-python/pull/4094))
18+
- Implement events sdk
19+
([#4176](https://github.com/open-telemetry/opentelemetry-python/pull/4176))
20+
- Update semantic conventions to version 1.28.0
21+
([#4218](https://github.com/open-telemetry/opentelemetry-python/pull/4218))
22+
1523
## Version 1.27.0/0.48b0 (2024-08-28)
1624

1725
- Implementation of Events API

CONTRIBUTING.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Every public symbol is something that has to be kept in order to maintain backwa
8282

8383
To check if your PR is adding public symbols, run `tox -e public-symbols-check`. This will always fail if public symbols are being added/removed. The idea
8484
behind this is that every PR that adds/removes public symbols fails in CI, forcing reviewers to check the symbols to make sure they are strictly necessary.
85-
If after checking them, it is considered that they are indeed necessary, the PR will be labeled with `Skip Public API check` so that this check is not
85+
If after checking them, it is considered that they are indeed necessary, the PR will be labeled with `Approve Public API check` so that this check is not
8686
run.
8787

8888
Also, we try to keep our console output as clean as possible. Most of the time this means catching expected log messages in the test cases:
@@ -224,6 +224,23 @@ updating the GitHub workflow to reference a PR in the Contrib repo
224224
* Trivial change (typo, cosmetic, doc, etc.) doesn't have to wait for one day.
225225
* Urgent fix can take exception as long as it has been actively communicated.
226226

227+
#### Allow edits from maintainers
228+
229+
Something _very important_ is to allow edits from maintainers when opening a PR. This will
230+
allow maintainers to rebase your PR against `main` which is necessary in order to merge
231+
your PR. You could do it yourself too, but keep in mind that every time another PR gets
232+
merged, your PR will require rebasing. Since only maintainers can merge your PR it is
233+
almost impossible for maintainers to find your PR just when it has been rebased by you so
234+
that it can be merged. Allowing maintainers to edit your PR also allows them to help you
235+
get your PR merged by making any minor fixes to solve any issue that while being unrelated
236+
to your PR, can still happen.
237+
238+
#### Fork from a personal Github account
239+
240+
Right now Github [does not allow](https://github.com/orgs/community/discussions/5634) PRs
241+
to be edited by maintainers if the corresponding repo fork exists in a Github organization.
242+
Please for this repo in a personal Github account instead.
243+
227244
One of the maintainers will merge the PR once it is **ready to merge**.
228245

229246
## Design Choices

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pylint==3.0.2
1+
pylint==3.2.1
22
flake8==6.1.0
33
isort==5.12.0
44
black==24.3.0

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
(
150150
"py:class",
151151
"opentelemetry.sdk.metrics._internal.aggregation._Aggregation",
152-
)
152+
),
153153
]
154154

155155
# Add any paths that contain templates here, relative to this directory.

docs/examples/error_handler/error_handler_0/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies = [
3232
error_handler_0 = "error_handler_0:ErrorHandler0"
3333

3434
[tool.hatch.version]
35-
path = "src/error_handler_0/version.py"
35+
path = "src/error_handler_0/version/__init__.py"
3636

3737
[tool.hatch.build.targets.sdist]
3838
include = [

docs/examples/error_handler/error_handler_1/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies = [
3232
error_handler_1 = "error_handler_1:ErrorHandler1"
3333

3434
[tool.hatch.version]
35-
path = "src/error_handler_1/version.py"
35+
path = "src/error_handler_1/version/__init__.py"
3636

3737
[tool.hatch.build.targets.sdist]
3838
include = [

0 commit comments

Comments
 (0)