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 #5

Merged
merged 81 commits into from
Aug 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
1238fc8
OTLP Exporter documentation example misleading (#838)
HiveTraum Jun 22, 2020
9e20f74
Script to regenerate proto code + pyi stubs (#823)
aabmass Jun 22, 2020
b2c0d53
add gco agent span label (#833)
Jun 22, 2020
3c9f99d
feat(wsgi): low cardinality span name and name override (#837)
majorgreys Jun 23, 2020
d35e626
Add unique identifier to Cloud Monitoring exporter (#841)
Jun 23, 2020
8be986c
add changelog for cloud exporters (#849)
Jun 23, 2020
f8e947c
chore: v0.10b0 master update + dev version bump (#850)
lzchen Jun 25, 2020
3c366b2
fix(celery): increase async timeout for tests (#857)
majorgreys Jun 26, 2020
fb37885
ext/datadog: Fix API/SDK dependencies in datadog exporter (#859)
mariojonke Jun 29, 2020
0c102a1
mysql: Fix auto instrumentation entry point (#858)
mariojonke Jun 30, 2020
d20ae9b
chore: use token for test package upload
Jun 30, 2020
b56fe2a
Added a warning log when the existing TracerProvider and MeterProvide…
bitspradp Jun 30, 2020
170c2c7
ext/boto ext/botocore:Converted resource to hold Resource attribute t…
bitspradp Jun 30, 2020
7a46b2d
Make it possible to set new values in Configuration (#863)
ocelotl Jul 1, 2020
6ea3f23
instrument: moving auto-instrumentation to a submodule (#873)
toumorokoshi Jul 2, 2020
2a9c3ac
chore: Making eachdist release catch more deps (#867)
toumorokoshi Jul 2, 2020
112bade
Strip letters (#877)
Jul 3, 2020
ca8c097
Resources prototype (#853)
AndrewAXue Jul 5, 2020
a8a0ed4
add license and manifest (#880)
AndrewAXue Jul 6, 2020
c0a5be5
ext/wsgi: Set span status on wsgi errors (#864)
jan25 Jul 7, 2020
d0e125a
Change exclude lists to just exclude_urls, add tests for flask and dj…
cnnradams Jul 7, 2020
34698ff
chore: Remove unused pytest marks (#884)
ocelotl Jul 7, 2020
09df35c
Update instrumentors to use span processors (#852)
ocelotl Jul 8, 2020
8cbd9d4
Update resources tests (#893)
Jul 10, 2020
61edbfa
Return INVALID_SPAN on get_current_span instead of None (#891)
lzchen Jul 10, 2020
e0f1410
disabling tests that have failed inconsistently (#900)
Jul 13, 2020
b085f37
fix typo in BatchExportSpanProcessor value error (#897)
jonahrosenblum Jul 13, 2020
e31c4bb
ext/jaeger: Fixing the serialization of a tuple element by coercing i…
bitspradp Jul 13, 2020
7c987d4
step down toumorokoshi to approver (#901)
toumorokoshi Jul 13, 2020
675334b
Update to OpenTelemetry Proto 0.4.0 (#889)
ocelotl Jul 13, 2020
1dde6ff
chore: migrate to circleci (#828)
Jul 13, 2020
5cb01d6
docs: Documentation for sampling (#882)
cnnradams Jul 14, 2020
545068d
chore: rename workflow to give it more meaning (#909)
Jul 14, 2020
7bec76a
fastapi instrumentation (#890)
toumorokoshi Jul 15, 2020
5d82b0a
chore: update bootstrap with new instrumentations (#913)
Jul 15, 2020
2a952b3
Fix a few issues with the Django example (#915)
ocelotl Jul 15, 2020
ee9d28a
instrumentation/grpc: Testing for gRPC Client Interceptor (#896)
cnnradams Jul 16, 2020
cfd9225
Add instructions to proto package README (#905)
aabmass Jul 16, 2020
23e577e
remove google exporter files (#918)
Jul 16, 2020
a818cc6
one more inconsistent test to skip (#919)
Jul 20, 2020
ce5cb96
chore: finish migrating to circleci (#920)
Jul 20, 2020
69740b1
chore: updating circle ci to add tracecontext and mypy jobs (#921)
Jul 20, 2020
e9527da
ext/opentracing: Implement get_attribute and set_attribute (#912)
ocelotl Jul 21, 2020
5ff9600
Adding gRPC instrumentor (#788)
aravinsiva Jul 22, 2020
f2c6c85
ext/aiopg: Add instrumentation for aiopg (#801)
sartx Jul 24, 2020
935280c
api/sdk: Rename record_error to record_exception per spec (#927)
Jul 24, 2020
004896f
docs: Update README.rst (#935)
achronak Jul 24, 2020
4a922d6
meta: adding aabmass as approver (#941)
Jul 27, 2020
090fb7c
Drop mauriciovasquezbernal from approvers (#948)
mauriciovasquezbernal Jul 27, 2020
7f74a89
ext/asyncpg: Shouldn't capture query parameters by default (#854)
thomasdesr Jul 28, 2020
8bc7786
chore: create pull_request_template.md (#952)
Jul 28, 2020
f682cf5
release: updating versions and changelogs (#954)
Jul 28, 2020
158d6c9
Move duplicated code to a dependency (#942)
ocelotl Jul 28, 2020
d67ad7b
bumping version to 0.12.dev0
Jul 28, 2020
e082bd6
Merge branch 'master' into v0.11b0-update
Jul 28, 2020
35fdac8
chore: merging release branch updates
Jul 29, 2020
eec050b
Rename exporter packages from "ext" to "exporter" (#953)
lzchen Jul 29, 2020
fc58032
automatic metrics for gRPC client interceptor (#917)
cnnradams Jul 29, 2020
8c4fca5
Update environment variable names (#904)
ocelotl Jul 30, 2020
1112792
Add proper length zero padding to hex strings of traceId, spanId, par…
ecourreges-orange Jul 30, 2020
242d5a7
[WIP] Views API Prototype (#596)
lzchen Aug 3, 2020
28d0cdf
Rename web framework packages from "ext" to "instrumentation" (#961)
lzchen Aug 3, 2020
6e34dfe
Rename db framework packages from "ext" to "instrumentation" (#966)
lzchen Aug 4, 2020
3143a4b
Change default Sampler to ParentOrElse(AlwaysOn) (#960)
MitchellDumovic Aug 4, 2020
57ca703
Add HTTP user-agent in WSGI instrumentation (#964)
jan25 Aug 4, 2020
eb8b1ea
Rename remaining framework packages from "ext" to "instrumentation" (…
lzchen Aug 5, 2020
9558900
instrumentation/redis: Change Redis instrument to use SpanKind.CLIENT…
akoumjian Aug 5, 2020
81025e1
docs: Add propagators section to getting started (#963)
toumorokoshi Aug 5, 2020
2e70088
ext/django: accept middlewares declared as tuples (#950)
nightmared Aug 5, 2020
8b1da35
opentracing-shim: Return consistent ScopeShim objects (#922)
ocelotl Aug 5, 2020
590c32c
Handle B3 trace_id and span_id correctly (#934)
ocelotl Aug 6, 2020
85a2f43
Stop TracerProvider from being overridden (#959)
ocelotl Aug 6, 2020
c42c5f3
Fix grpc version to previous version (#975)
ocelotl Aug 6, 2020
b3c2a03
fix: update default OTLP port to 55680 (#977)
Aug 7, 2020
76b1ed0
Renaming OTEL_RESOURCE env var (#973)
Aug 12, 2020
cffc016
Add protocol as an argument to the Jaeger exporter constructor (#978)
bitspradp Aug 13, 2020
3efe854
OC Exporter - send start_timestamp, resource labels, and convert labe…
aabmass Aug 13, 2020
e8f7b6f
views: properly hash config dict, don't copy aggregator when stateful…
cnnradams Aug 14, 2020
3341a8e
instrumentation/opentracing-shim: Preserve parent-child relationship …
ocelotl Aug 14, 2020
2bc7d35
Revisit OpenTracing Shim docs (#925)
ocelotl Aug 14, 2020
47229e9
chore: 0.13.dev0 version update (#991)
lzchen Aug 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
109 changes: 102 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
version: 2.1

executors:
python38:
py38:
docker:
- image: circleci/python:3.8
py37:
docker:
- image: circleci/python:3.7
py36:
docker:
- image: circleci/python:3.6
py35:
docker:
- image: circleci/python:3.5
py34:
docker:
- image: circleci/python:3.4
pypy3:
docker:
- image: pypy:3

commands:
setup_tox:
Expand Down Expand Up @@ -31,27 +46,107 @@ commands:
paths:
- ".tox"

run_tox_scenario:
description: "Run scripts/run-tox-scenario with setup, caching and persistence"
parameters:
pattern:
type: string
steps:
- checkout
- setup_tox
- restore_tox_cache
- run:
name: "Run scripts/run-tox-scenario"
command: tox -f '<< parameters.pattern >>'
- save_tox_cache

jobs:
docs:
executor: python38
executor: py38
steps:
- run_tox_scenario:
pattern: docs

docker-tests:
machine:
image: ubuntu-1604:201903-01
steps:
- checkout
- run:
name: "Get pyenv list"
command: pyenv versions
- run:
name: "Set Python Version"
command: pyenv global 3.7.0
- run:
name: "Update pip"
command: pip install -U pip
- setup_tox
- restore_tox_cache
- run: tox -e docs
- run: tox -e docker-tests
- save_tox_cache

lint:
executor: python38
executor: py38
steps:
- run_tox_scenario:
pattern: lint

build-py38:
parameters:
package:
type: string
executor: py38
steps:
- run_tox_scenario:
pattern: py38-<< parameters.package >>

build-py34:
parameters:
package:
type: string
default: "core"
executor: py34
steps:
- checkout
- setup_tox
- run:
name: "Install tox"
command: sudo pip install -U tox virtualenv tox-factor
- restore_tox_cache
- run: tox -e lint
- run:
name: "Run scripts/run-tox-scenario"
command: tox -f py34-<< parameters.package >>
- save_tox_cache

build:
parameters:
version:
type: string
default: "py38"
package:
type: string
default: "core"
executor: << parameters.version >>
steps:
- run_tox_scenario:
pattern: << parameters.version >>-<< parameters.package >>

workflows:
main:
circleci-build:
jobs:
- build-py38:
matrix:
parameters:
package: ["core", "exporter", "instrumentation", "tracecontext", "mypy", "mypyinstalled"]
- build:
matrix:
parameters:
version: ["py38", "py37", "py36", "py35", "pypy3"]
package: ["core", "exporter", "instrumentation"]
- build-py34:
matrix:
parameters:
package: ["core", "exporter", "instrumentation"]
- docs
- lint
- docker-tests
5 changes: 3 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ exclude =
venv*/
target
__pycache__
ext/opentelemetry-ext-jaeger/src/opentelemetry/ext/jaeger/gen/
ext/opentelemetry-ext-jaeger/build/*
exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/gen/
exporter/opentelemetry-exporter-jaeger/build/*
docs/examples/opentelemetry-example-app/src/opentelemetry_example_app/grpc/gen/
docs/examples/opentelemetry-example-app/build/*
opentelemetry-proto/build/*
opentelemetry-proto/src/opentelemetry/proto/
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# tells github that proto code is generated
opentelemetry-proto/src/**/*_pb2*.py* linguist-generated=true
27 changes: 27 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

- [ ] Test A

# Checklist:

- [ ] Followed the style guidelines of this project
- [ ] Changelogs have been updated
- [ ] Unit tests have been added
- [ ] Documentation has been updated
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- master
paths:
- 'docs/**'
- 'exporter/**'
- 'ext/**'
- 'opentelemetry-python/opentelemetry-api/src/opentelemetry/**'
- 'opentelemetry-python/opentelemetry-sdk/src/opentelemetry/sdk/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
# 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 }}
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
run: |
twine upload --repository testpypi --skip-existing --verbose dist/*
- name: Publish to PyPI
Expand Down
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<img alt="license" src="https://img.shields.io/badge/license-Apache_2.0-green.svg?style=for-the-badge">
</a>
<br/>
<a href="https://travis-ci.org/open-telemetry/opentelemetry-python">
<img alt="Build Status" src="https://travis-ci.org/open-telemetry/opentelemetry-python.svg?branch=master">
<a href="https://circleci.com/gh/open-telemetry/opentelemetry-python">
<img alt="Build Status" src="https://circleci.com/gh/open-telemetry/opentelemetry-python.svg?style=shield">
</a>
<img alt="Beta" src="https://img.shields.io/badge/status-beta-informational?logo=data:image/png;base64,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">
</p>
Expand Down Expand Up @@ -63,12 +63,19 @@ pip install opentelemetry-sdk
```

The
[`ext/`](https://github.com/open-telemetry/opentelemetry-python/tree/master/ext)
directory includes OpenTelemetry integration packages, which can be installed
separately as:
[`instrumentation/`](https://github.com/open-telemetry/opentelemetry-python/tree/master/instrumentation)
directory includes OpenTelemetry instrumentation packages, which can be installed separately as:

```sh
pip install opentelemetry-ext-{integration}
pip install opentelemetry-instrumentation-{instrumentation}
```

The
[`exporter/`](https://github.com/open-telemetry/opentelemetry-python/tree/master/exporter)
directory includes OpenTelemetry exporter packages, which can be installed separately as:

```sh
pip install opentelemetry-exporter-{exporter}
```

To install the development versions of these packages instead, clone or fork
Expand All @@ -78,7 +85,7 @@ install](https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs)
```sh
pip install -e ./opentelemetry-api
pip install -e ./opentelemetry-sdk
pip install -e ./ext/opentelemetry-ext-{integration}
pip install -e ./ext/opentelemetry-instrumentation-{instrumentation}
```

## Documentation
Expand All @@ -103,21 +110,21 @@ 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)):

- [Aaron Abbott](https://github.com/aabmass), Google
- [Carlos Alberto Cortez](https://github.com/carlosalberto), Lightstep
- [Tahir H. Butt](https://github.com/majorgreys) DataDog
- [Chris Kleinknecht](https://github.com/c24t), Google
- [Diego Hurtado](https://github.com/ocelotl)
- [Hector Hernandez](https://github.com/hectorhdzg), Microsoft
- [Mauricio Vásquez](https://github.com/mauriciovasquezbernal), Kinvolk
- [Reiley Yang](https://github.com/reyang), Microsoft
- [Yusuke Tsutsumi](https://github.com/toumorokoshi), Google

*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)):

- [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).*

Expand Down
3 changes: 3 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ sphinx-autodoc-typehints~=1.10.2
pytest!=5.2.3
pytest-cov>=2.8
readme-renderer~=24.0
grpcio-tools==1.29.0
mypy-protobuf==1.21
protobuf==3.12.2
5 changes: 3 additions & 2 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ asgiref~=3.0
asyncpg>=0.12.0
ddtrace>=0.34.0
aiohttp~= 3.0
aiopg>=0.13.0
grpcio~=1.27
Deprecated>=1.2.6
django>=2.2
PyMySQL~=0.9.3
Expand All @@ -25,7 +27,6 @@ wrapt>=1.0.0,<2.0.0
celery>=4.0
psutil~=5.7.0
boto~=2.0
google-cloud-trace >=0.23.0
google-cloud-monitoring>=0.36.0
botocore~=1.0
starlette~=0.13
fastapi~=0.58.1
4 changes: 2 additions & 2 deletions docs/api/trace.sampling.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opentelemetry.trace.sampling
============================
Sampling Traces
===============

.. automodule:: opentelemetry.trace.sampling
:members:
Expand Down
20 changes: 14 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@
os.path.abspath("../opentelemetry-instrumentation/src/"),
]

ext = "../ext"
ext_dirs = [
os.path.abspath("/".join(["../ext", f, "src"]))
for f in listdir(ext)
if isdir(join(ext, f))
exp = "../exporter"
exp_dirs = [
os.path.abspath("/".join(["../exporter", f, "src"]))
for f in listdir(exp)
if isdir(join(exp, f))
]
sys.path[:0] = source_dirs + ext_dirs

instr = "../instrumentation"
instr_dirs = [
os.path.abspath("/".join(["../instrumentation", f, "src"]))
for f in listdir(instr)
if isdir(join(instr, f))
]

sys.path[:0] = source_dirs + exp_dirs + instr_dirs

# -- Project information -----------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/auto-instrumentation/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Installation

$ pip install opentelemetry-sdk
$ pip install opentelemetry-instrumentation
$ pip install opentelemetry-ext-flask
$ pip install opentelemetry-instrumentation-flask
$ pip install requests

Execution
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/auto-instrumentation/server_instrumented.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from flask import Flask, request

from opentelemetry import propagators, trace
from opentelemetry.ext.wsgi import collect_request_attributes
from opentelemetry.instrumentation.wsgi import collect_request_attributes
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import (
ConsoleSpanExporter,
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/basic_meter/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ These examples show how to use OpenTelemetry to capture and report metrics.

There are three different examples:

* basic_metrics: Shows to how create a metric instrument, how to configure an
* basic_metrics: Shows how to create a metric instrument, how to configure an
exporter and a controller and also how to capture data by using the direct
calling convention.

Expand Down
Loading