Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync #1

Merged
merged 43 commits into from
Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
9e58b8a
api: Handle boolean, integer and float values in Configuration (#662)
ocelotl May 20, 2020
2d9c8df
ext/psycopg2: Implement BaseInstrumentor interface (#694)
cnnradams May 21, 2020
2249748
docs: Consolidate getting started guide and remove duplicated example…
mauriciovasquezbernal May 21, 2020
ae533f7
infra: accelerate builds (#693)
May 21, 2020
58b7bcc
SQLite3 Instrumentation (#719)
cnnradams May 21, 2020
b4e135b
sdk: Specify to_json indent from arguments (#718)
dtaniwaki May 21, 2020
97b7c22
ext/Zipkin - Transform resource to tags when exporting (#707)
nirsky May 22, 2020
f15d76a
datadog: Add Datadog propagator (#705)
majorgreys May 22, 2020
46f8f64
opencensus: Rename otcollector to opencensus (#695)
ocelotl May 23, 2020
0e9a8e4
sdk: Span.resource will now default to an empty resource (#724)
yashmehrotra May 23, 2020
c88e585
sdk: Add a unit test for to_json (#725)
dtaniwaki May 24, 2020
b799e54
docs: fix imports for pymongo and psycopg2 (#723)
majorgreys May 24, 2020
93e7db8
ext/django: django downgrade to 1.10 (#717)
HiveTraum May 25, 2020
e0fd435
fix: Fix error message (#729)
vmihailenco May 26, 2020
b51a518
chore: Remove commented out test case (#731)
ocelotl May 26, 2020
027f61f
infra: adding step to publish action (#733)
May 26, 2020
1ee85c8
infra: removing workflow, updating script (#734)
May 26, 2020
06bab74
chore: amend changelogs (#737)
May 26, 2020
bc3ee80
aiohttp_client: fix propagation of traceparent in aiohttp_client (#709)
ecourreges-orange May 27, 2020
334a534
Introduce a bootstrap command to auto-install packages (#650)
owais May 27, 2020
64b3cf2
asgi: Add ASGI middleware (#716)
majorgreys May 27, 2020
8a946b5
bugfix: deep copy empty attributes (#714)
May 27, 2020
807e106
django: Add exclude lists (#670)
lzchen May 27, 2020
f7a7f64
chore: update master to 0.9.dev0 (#745)
May 28, 2020
960d0a3
chore: updating release markdown and script to fetch master (#743)
May 28, 2020
30c953d
datadog: set sampling rate (#740)
majorgreys May 28, 2020
f8f2ca4
chore: Update approvers/maintainers for recent changes (#748)
c24t May 29, 2020
bfc54bf
ext/system-metrics: adding instrumentation to collect system metrics …
May 29, 2020
602ddb0
sdk: Flush metrics on exit (#749)
aabmass May 30, 2020
24a564d
docs: Fix broken link (#763)
hectorhdzg Jun 1, 2020
ce269a3
Rename Measure to ValueRecorder (#761)
lzchen Jun 2, 2020
3ad6ac5
ext/boto: Add boto instrumentation (#665)
ocelotl Jun 2, 2020
acb7f48
opentracing-shim: add testbed for otshim (#727)
toumorokoshi Jun 3, 2020
2ad9f49
chore: removing Oberon00 from approvers (#770)
Jun 3, 2020
c42749a
cloud-trace: Cloud Trace exporter (#698)
Jun 4, 2020
75a1311
metrics api/sdk: Move "config" out from Meter into MeterProvider (#751)
lzchen Jun 4, 2020
91f656f
requests: better exception handling (#765)
HiveTraum Jun 5, 2020
b108596
bugfix: Fix for byte type attributes crashing spans (#775)
sethmaxwl Jun 5, 2020
20cf4cb
refactor: Typing fixes #768, upgrade mypy to 0.770 (#769)
aabmass Jun 8, 2020
d755375
api/sdk: Observer to ValueObserver (#764)
lzchen Jun 8, 2020
7ad8bbc
Add lzchen to maintainers (#784)
toumorokoshi Jun 8, 2020
1041e11
refactor: Add common utils to opentelemetry-auto-instrumentation, ren…
cnnradams Jun 8, 2020
93194e1
fix: requests headers none argument fix (#708)
HiveTraum Jun 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/workflows/prepare-release.yml

This file was deleted.

16 changes: 15 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,24 @@ jobs:
python-version: '3.7'
- name: Build wheels
run: ./scripts/build.sh
- name: Install twine
run: |
pip install twine
# The step below publishes to testpypi in order to catch any issues
# with the package configuration that would cause a failure to upload
# to pypi. One example of such a failure is if a classifier is
# rejected by pypi (e.g "3 - Beta"). This would cause a failure during the
# middle of the package upload causing the action to fail, and certain packages
# might have already been updated, this would be bad.
- name: Publish to TestPyPI
env:
TWINE_USERNAME: ${{ secrets.test_pypi_username }}
TWINE_PASSWORD: ${{ secrets.test_pypi_password }}
run: |
twine upload --repository testpypi --skip-existing --verbose dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
pip install twine
twine upload --skip-existing --verbose dist/*
21 changes: 14 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ language: python

cache: pip

python:
- 'pypy3'
- '3.8'
- '3.4'
- '3.5'
- '3.6'
- '3.7'
matrix:
include:
- python: 3.8
env: TOXENV=lint
- python: pypy3
- python: 3.8
- python: 3.4
- python: 3.5
- python: 3.6
- python: 3.7
- python: 3.8
env: TOXENV=docker-tests
- python: 3.8
env: TOXENV=docs

#matrix:
# allow_failures:
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,29 @@ Meeting notes are available as a public [Google doc](https://docs.google.com/doc

Approvers ([@open-telemetry/python-approvers](https://github.com/orgs/open-telemetry/teams/python-approvers)):

- [Alex Boten](https://github.com/codeboten), LightStep
- [Carlos Alberto Cortez](https://github.com/carlosalberto), LightStep
- [Christian Neumüller](https://github.com/Oberon00), Dynatrace
- [Chris Kleinknecht](https://github.com/c24t), Google
- [Diego Hurtado](https://github.com/ocelotl)
- [Hector Hernandez](https://github.com/hectorhdzg), Microsoft
- [Leighton Chen](https://github.com/lzchen), Microsoft
- [Mauricio Vásquez](https://github.com/mauriciovasquezbernal), Kinvolk
- [Reiley Yang](https://github.com/reyang), Microsoft

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

Maintainers ([@open-telemetry/python-maintainers](https://github.com/orgs/open-telemetry/teams/python-maintainers)):

- [Chris Kleinknecht](https://github.com/c24t), Google
- [Alex Boten](https://github.com/codeboten), LightStep
- [Leighton Chen](https://github.com/lzchen), Microsoft
- [Yusuke Tsutsumi](https://github.com/toumorokoshi), Zillow Group

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

### Thanks to all the people who already contributed!

<a href="https://github.com/open-telemetry/opentelemetry-python/graphs/contributors">
<img src="https://contributors-img.web.app/image?repo=open-telemetry/opentelemetry-python" />
</a>

## Release Schedule

OpenTelemetry Python is under active development.
Expand Down
84 changes: 84 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Releasing OpenTelemetry Packages (for maintainers only)
This document explains how to publish all OT modules at version x.y.z. Ensure that you’re following semver when choosing a version number.

Release Process:
* [Checkout a clean repo](#checkout-a-clean-repo)
* [Create a new branch](#create-a-new-branch)
* [Open a Pull Request](#open-a-pull-request)
* [Create a Release](#Create-a-Release)
* [Move stable tag](#Move-stable-tag)
* [Update master](#Update-master)
* [Check PyPI](#Check-PyPI)
* [Troubleshooting](#troubleshooting)

## Checkout a clean repo
- To avoid pushing untracked changes, check out the repo in a new dir

## Create a new branch
The following script does the following:
- update master locally
- creates a new release branch `release/<version>`
- updates version and changelog files
- commits the change to a new branch `release/<version>-auto`

*NOTE: This script was run by a GitHub Action but required the Action bot to be excluded from the CLA check, which it currently is not.*

```bash
./scripts/prepare_release.sh 0.7b0
```

## Open a Pull Request

The PR should be opened from the `release/<version>-auto` branch created as part of running `prepare_release.sh` in the steps above.

## Create a Release

- Create the GH release from the release branch, using a new tag for this micro version, e.g. `v0.7.0`
- Copy the changelogs from all packages that changed into the release notes (and reformat to remove hard line wraps)


## Check PyPI

This should be handled automatically on release by the [publish action](https://github.com/open-telemetry/opentelemetry-python/blob/master/.github/workflows/publish.yml).

- Check the [action logs](https://github.com/open-telemetry/opentelemetry-python/actions?query=workflow%3APublish) to make sure packages have been uploaded to PyPI
- Check the release history (e.g. https://pypi.org/project/opentelemetry-api/#history) on PyPI

If for some reason the action failed, see [Publish failed](#publish-failed) below

## Move stable tag

This will ensure the docs are pointing at the stable release.

```bash
git tag -d stable
git tag stable
git push origin stable
```

## Update master

Ensure the version and changelog updates have been applied to master.

```bash
# checkout a new branch from master
git checkout -b v0.7b0-master-update
# cherry pick the change from the release branch
git cherry-pick $(git log -n 1 origin/release/0.7b0 --format="%H")
# update the version number, make it a "dev" greater than release number, e.g. 0.8.dev0
perl -i -p -e 's/0.7b0/0.8.dev0/' $(git grep -l "0.7b0" | grep -vi CHANGELOG)
# open a PR targeting master see #331
git commit -m
```

## Troubleshooting

### Publish failed

If for some reason the action failed, do it manually:

- Switch to the release branch (important so we don't publish packages with "dev" versions)
- Build distributions with `./scripts/build.sh`
- Delete distributions we don't want to push (e.g. `testutil`)
- Push to PyPI as `twine upload --skip-existing --verbose dist/*`
- Double check PyPI!
3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ pylint==2.4.4
flake8==3.7.9
isort~=4.3
black>=19.3b0,==19.*
mypy==0.740
mypy==0.770
sphinx~=2.1
sphinx-rtd-theme~=0.4
sphinx-autodoc-typehints~=1.10.2
pytest!=5.2.3
pytest-cov>=2.8
readme-renderer~=24.0
httpretty~=1.0
opentracing~=2.2.0
8 changes: 6 additions & 2 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ sphinx-rtd-theme~=0.4
sphinx-autodoc-typehints~=1.10.2

# Required by ext packages
asgiref~=3.0
ddtrace>=0.34.0
aiohttp ~= 3.0
aiohttp~= 3.0
Deprecated>=1.2.6
django>=2.2
PyMySQL~=0.9.3
Expand All @@ -17,4 +18,7 @@ pymongo~=3.1
redis>=2.6
sqlalchemy>=1.0
thrift>=0.10.0
wrapt >=1.0.0,<2.0.0
wrapt>=1.0.0,<2.0.0
psutil~=5.7.0
boto~=2.0
google-cloud-trace >=0.23.0
15 changes: 0 additions & 15 deletions docs/auto_instrumentation/auto_instrumentation.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/auto_instrumentation/instrumentor.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
source_dirs = [
os.path.abspath("../opentelemetry-api/src/"),
os.path.abspath("../opentelemetry-sdk/src/"),
os.path.abspath("../opentelemetry-auto-instrumentation/src/"),
os.path.abspath("../opentelemetry-instrumentation/src/"),
]

ext = "../ext"
Expand Down
Loading