diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 79688a726..bf62bcf53 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,8 +5,6 @@ on: branches-ignore: - 'release/*' pull_request: - branches: - - master jobs: build: diff --git a/.isort.cfg b/.isort.cfg index 4f378fabf..834ec46e7 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -14,4 +14,4 @@ line_length=79 multi_line_output=3 known_future_library = six,six.moves,__future__ known_third_party=google,mock,pymysql,sqlalchemy,psycopg2,mysql,requests,django,pytest,grpc,flask,bitarray,prometheus_client,psutil,pymongo,wrapt,thrift,retrying,pyramid,werkzeug,gevent -known_first_party=opencensus \ No newline at end of file +known_first_party=opencensus diff --git a/CHANGELOG.md b/CHANGELOG.md index 59d18767f..6cb5f4e47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,17 @@ ## Unreleased -- PeriodicMetricTask flush on exit -([#943](https://github.com/census-instrumentation/opencensus-python/pull/943)) +## 0.7.12 +Released 2021-01-14 - Change blacklist to excludelist ([#977](https://github.com/census-instrumentation/opencensus-python/pull/977)) +## 0.7.11 +Released 2020-10-13 + +- PeriodicMetricTask flush on exit +([#943](https://github.com/census-instrumentation/opencensus-python/pull/943)) + ## 0.7.10 Released 2020-06-29 diff --git a/context/opencensus-context/CHANGELOG.md b/context/opencensus-context/CHANGELOG.md index a49592ac1..55518cfea 100644 --- a/context/opencensus-context/CHANGELOG.md +++ b/context/opencensus-context/CHANGELOG.md @@ -2,8 +2,6 @@ ## Unreleased -## opencensus-ext-context 0.1.2 - ## 0.1.2 Released 2020-06-29 diff --git a/context/opencensus-context/version.py b/context/opencensus-context/version.py index ff18aeb50..3f601a176 100644 --- a/context/opencensus-context/version.py +++ b/context/opencensus-context/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.2' diff --git a/contrib/opencensus-correlation/version.py b/contrib/opencensus-correlation/version.py index deb2f374d..8088a1980 100644 --- a/contrib/opencensus-correlation/version.py +++ b/contrib/opencensus-correlation/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.4.dev0' +__version__ = '0.3.0' diff --git a/contrib/opencensus-ext-azure/CHANGELOG.md b/contrib/opencensus-ext-azure/CHANGELOG.md index 9aa43b71f..b8d2cddcb 100644 --- a/contrib/opencensus-ext-azure/CHANGELOG.md +++ b/contrib/opencensus-ext-azure/CHANGELOG.md @@ -2,6 +2,17 @@ ## Unreleased +## 1.0.6 +Released 2021-01-14 + +- Disable heartbeat metrics in exporters + ([#984](https://github.com/census-instrumentation/opencensus-python/pull/984)) +- Loosen instrumentation key validation to GUID + ([#984](https://github.com/census-instrumentation/opencensus-python/pull/984)) + +## 1.0.5 +Released 2020-10-13 + - Attach rate metrics via Heartbeat for Web and Function apps ([#930](https://github.com/census-instrumentation/opencensus-python/pull/930)) - Attach rate metrics for VM @@ -12,10 +23,6 @@ ([#946](https://github.com/census-instrumentation/opencensus-python/pull/946)) - Added queue capacity configuration for exporters ([#949](https://github.com/census-instrumentation/opencensus-python/pull/949)) -- Disable heartbeat metrics in exporters - ([#984](https://github.com/census-instrumentation/opencensus-python/pull/984)) -- Loosen instrumentation key validation to GUID - ([#984](https://github.com/census-instrumentation/opencensus-python/pull/984)) ## 1.0.4 Released 2020-06-29 diff --git a/contrib/opencensus-ext-azure/opencensus/ext/azure/common/version.py b/contrib/opencensus-ext-azure/opencensus/ext/azure/common/version.py index 71eb269bd..43f8a937a 100644 --- a/contrib/opencensus-ext-azure/opencensus/ext/azure/common/version.py +++ b/contrib/opencensus-ext-azure/opencensus/ext/azure/common/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '1.0.dev0' +__version__ = '1.0.6' diff --git a/contrib/opencensus-ext-azure/opencensus/ext/azure/log_exporter/__init__.py b/contrib/opencensus-ext-azure/opencensus/ext/azure/log_exporter/__init__.py index e7a9b511d..2a7bafcd1 100644 --- a/contrib/opencensus-ext-azure/opencensus/ext/azure/log_exporter/__init__.py +++ b/contrib/opencensus-ext-azure/opencensus/ext/azure/log_exporter/__init__.py @@ -30,6 +30,7 @@ ) from opencensus.ext.azure.common.storage import LocalFileStorage from opencensus.ext.azure.common.transport import TransportMixin +from opencensus.ext.azure.metrics_exporter import heartbeat_metrics from opencensus.trace import execution_context logger = logging.getLogger(__name__) @@ -59,6 +60,26 @@ def __init__(self, **options): self._queue = Queue(capacity=self.options.queue_capacity) self._worker = Worker(self._queue, self) self._worker.start() + heartbeat_metrics.enable_heartbeat_metrics( + self.options.connection_string, self.options.instrumentation_key) + + def _export(self, batch, event=None): # pragma: NO COVER + try: + if batch: + envelopes = [self.log_record_to_envelope(x) for x in batch] + envelopes = self.apply_telemetry_processors(envelopes) + result = self._transmit(envelopes) + if result > 0: + self.storage.put(envelopes, result) + if event: + if isinstance(event, QueueExitEvent): + self._transmit_from_storage() # send files before exit + return + if len(batch) < self.options.max_batch_size: + self._transmit_from_storage() + finally: + if event: + event.set() def _export(self, batch, event=None): # pragma: NO COVER try: diff --git a/contrib/opencensus-ext-azure/opencensus/ext/azure/trace_exporter/__init__.py b/contrib/opencensus-ext-azure/opencensus/ext/azure/trace_exporter/__init__.py index 42ffe6ffe..fa82b09d1 100644 --- a/contrib/opencensus-ext-azure/opencensus/ext/azure/trace_exporter/__init__.py +++ b/contrib/opencensus-ext-azure/opencensus/ext/azure/trace_exporter/__init__.py @@ -28,6 +28,7 @@ ) from opencensus.ext.azure.common.storage import LocalFileStorage from opencensus.ext.azure.common.transport import TransportMixin +from opencensus.ext.azure.metrics_exporter import heartbeat_metrics from opencensus.trace.span import SpanKind try: diff --git a/contrib/opencensus-ext-azure/setup.py b/contrib/opencensus-ext-azure/setup.py index d4f228478..d7c8eff50 100644 --- a/contrib/opencensus-ext-azure/setup.py +++ b/contrib/opencensus-ext-azure/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.12, < 1.0.0', 'psutil >= 5.6.3', 'requests >= 2.19.0', ], diff --git a/contrib/opencensus-ext-azure/tests/test_azure_standard_metrics.py b/contrib/opencensus-ext-azure/tests/test_azure_standard_metrics.py index 317c0e2c5..785c987d2 100644 --- a/contrib/opencensus-ext-azure/tests/test_azure_standard_metrics.py +++ b/contrib/opencensus-ext-azure/tests/test_azure_standard_metrics.py @@ -78,7 +78,7 @@ def test_get_process_private_bytes_metric(self): '\\Process(??APP_WIN32_PROC??)\\Private Bytes') def test_get_process_private_bytes(self): - with mock.patch('opencensus.ext.azure.metrics_exporter' + + with mock.patch('opencensus.ext.azure.metrics_exporter' '.standard_metrics.process.PROCESS') as process_mock: memory = collections.namedtuple('memory', 'rss') pmem = memory(rss=100) @@ -90,7 +90,7 @@ def test_get_process_private_bytes(self): @mock.patch('opencensus.ext.azure.metrics_exporter' '.standard_metrics.process.logger') def test_get_process_private_bytes_exception(self, logger_mock): - with mock.patch('opencensus.ext.azure.metrics_exporter' + + with mock.patch('opencensus.ext.azure.metrics_exporter' '.standard_metrics.process.PROCESS') as process_mock: process_mock.memory_info.side_effect = Exception() standard_metrics.ProcessMemoryMetric.get_value() diff --git a/contrib/opencensus-ext-datadog/CHANGELOG.md b/contrib/opencensus-ext-datadog/CHANGELOG.md index b93e3f3d1..c6bcf394c 100644 --- a/contrib/opencensus-ext-datadog/CHANGELOG.md +++ b/contrib/opencensus-ext-datadog/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## Unreleased + ## 0.1.0 Released 2019-11-26 diff --git a/contrib/opencensus-ext-datadog/setup.py b/contrib/opencensus-ext-datadog/setup.py index 804bbdcba..f87c97931 100644 --- a/contrib/opencensus-ext-datadog/setup.py +++ b/contrib/opencensus-ext-datadog/setup.py @@ -39,7 +39,7 @@ include_package_data=True, install_requires=[ 'bitarray >= 1.0.1, < 2.0.0', - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.6, < 1.0.0', 'requests >= 2.19.0', ], extras_require={}, diff --git a/contrib/opencensus-ext-datadog/version.py b/contrib/opencensus-ext-datadog/version.py index f3a64a892..d323c46d6 100644 --- a/contrib/opencensus-ext-datadog/version.py +++ b/contrib/opencensus-ext-datadog/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.1.dev0' +__version__ = '0.1.0' diff --git a/contrib/opencensus-ext-dbapi/setup.py b/contrib/opencensus-ext-dbapi/setup.py index f55daf5d6..27f430844 100644 --- a/contrib/opencensus-ext-dbapi/setup.py +++ b/contrib/opencensus-ext-dbapi/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-dbapi/version.py b/contrib/opencensus-ext-dbapi/version.py index ff18aeb50..3f601a176 100644 --- a/contrib/opencensus-ext-dbapi/version.py +++ b/contrib/opencensus-ext-dbapi/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.2' diff --git a/contrib/opencensus-ext-django/CHANGELOG.md b/contrib/opencensus-ext-django/CHANGELOG.md index 0a92e17f0..116a0e499 100644 --- a/contrib/opencensus-ext-django/CHANGELOG.md +++ b/contrib/opencensus-ext-django/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +## 0.7.3 +Released 2021-01-14 + - Change blacklist to excludelist ([#977](https://github.com/census-instrumentation/opencensus-python/pull/977)) diff --git a/contrib/opencensus-ext-django/opencensus/ext/django/middleware.py b/contrib/opencensus-ext-django/opencensus/ext/django/middleware.py index e3774dbbd..84685f008 100644 --- a/contrib/opencensus-ext-django/opencensus/ext/django/middleware.py +++ b/contrib/opencensus-ext-django/opencensus/ext/django/middleware.py @@ -167,6 +167,9 @@ def __init__(self, get_response=None): if django.VERSION >= (2,): # pragma: NO COVER connection.execute_wrappers.append(_trace_db_call) + if django.VERSION >= (2,): # pragma: NO COVER + connection.execute_wrappers.append(_trace_db_call) + def process_request(self, request): """Called on each request, before Django decides which view to execute. diff --git a/contrib/opencensus-ext-django/setup.py b/contrib/opencensus-ext-django/setup.py index b2acf735e..741a22090 100644 --- a/contrib/opencensus-ext-django/setup.py +++ b/contrib/opencensus-ext-django/setup.py @@ -44,7 +44,7 @@ long_description=open('README.rst').read(), install_requires=[ 'Django >= 1.11', - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.12, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-django/version.py b/contrib/opencensus-ext-django/version.py index dffc606db..b7a1f8944 100644 --- a/contrib/opencensus-ext-django/version.py +++ b/contrib/opencensus-ext-django/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.3' diff --git a/contrib/opencensus-ext-flask/CHANGELOG.md b/contrib/opencensus-ext-flask/CHANGELOG.md index a5808a446..537b142e0 100644 --- a/contrib/opencensus-ext-flask/CHANGELOG.md +++ b/contrib/opencensus-ext-flask/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +## 0.7.4 +Released 2021-01-14 + - Change blacklist to excludelist ([#977](https://github.com/census-instrumentation/opencensus-python/pull/977)) @@ -16,6 +19,8 @@ Released 2019-08-26 - Updated `http.status_code` attribute to be an int. ([#755](https://github.com/census-instrumentation/opencensus-python/pull/755)) +- Fixes value for `http.route` in Flask middleware + ([#759](https://github.com/census-instrumentation/opencensus-python/pull/759)) ## 0.7.1 Released 2019-08-05 diff --git a/contrib/opencensus-ext-flask/setup.py b/contrib/opencensus-ext-flask/setup.py index e3fc3a640..65594c6ae 100644 --- a/contrib/opencensus-ext-flask/setup.py +++ b/contrib/opencensus-ext-flask/setup.py @@ -40,7 +40,7 @@ long_description=open('README.rst').read(), install_requires=[ 'flask >= 0.12.3, < 2.0.0', - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.12, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-flask/version.py b/contrib/opencensus-ext-flask/version.py index dffc606db..d5d5f1a28 100644 --- a/contrib/opencensus-ext-flask/version.py +++ b/contrib/opencensus-ext-flask/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.4' diff --git a/contrib/opencensus-ext-gevent/setup.py b/contrib/opencensus-ext-gevent/setup.py index 022df4a14..d15a3953b 100644 --- a/contrib/opencensus-ext-gevent/setup.py +++ b/contrib/opencensus-ext-gevent/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', 'gevent >= 1.3' ], extras_require={}, diff --git a/contrib/opencensus-ext-gevent/version.py b/contrib/opencensus-ext-gevent/version.py index ff18aeb50..d323c46d6 100644 --- a/contrib/opencensus-ext-gevent/version.py +++ b/contrib/opencensus-ext-gevent/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.0' diff --git a/contrib/opencensus-ext-google-cloud-clientlibs/setup.py b/contrib/opencensus-ext-google-cloud-clientlibs/setup.py index a66b4c683..b9a8ffb87 100644 --- a/contrib/opencensus-ext-google-cloud-clientlibs/setup.py +++ b/contrib/opencensus-ext-google-cloud-clientlibs/setup.py @@ -39,9 +39,9 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', - 'opencensus-ext-grpc >= 0.4.dev0, < 1.0.0', - 'opencensus-ext-requests >= 0.2.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', + 'opencensus-ext-grpc >= 0.3.0, < 1.0.0', + 'opencensus-ext-requests >= 0.1.2, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-google-cloud-clientlibs/version.py b/contrib/opencensus-ext-google-cloud-clientlibs/version.py index ff18aeb50..3f601a176 100644 --- a/contrib/opencensus-ext-google-cloud-clientlibs/version.py +++ b/contrib/opencensus-ext-google-cloud-clientlibs/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.2' diff --git a/contrib/opencensus-ext-grpc/CHANGELOG.md b/contrib/opencensus-ext-grpc/CHANGELOG.md index d06dd0866..0562d9216 100644 --- a/contrib/opencensus-ext-grpc/CHANGELOG.md +++ b/contrib/opencensus-ext-grpc/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +## 0.7.2 +Released 2021-01-14 + - Extract byte size from proto-plus messages ([#976](https://github.com/census-instrumentation/opencensus-python/pull/976)) diff --git a/contrib/opencensus-ext-grpc/setup.py b/contrib/opencensus-ext-grpc/setup.py index 31b96b390..ec9401baf 100644 --- a/contrib/opencensus-ext-grpc/setup.py +++ b/contrib/opencensus-ext-grpc/setup.py @@ -40,7 +40,7 @@ long_description=open('README.rst').read(), install_requires=[ 'grpcio >= 1.0.0, < 2.0.0', - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.12, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-grpc/version.py b/contrib/opencensus-ext-grpc/version.py index dffc606db..c652125f7 100644 --- a/contrib/opencensus-ext-grpc/version.py +++ b/contrib/opencensus-ext-grpc/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.2' diff --git a/contrib/opencensus-ext-httplib/CHANGELOG.md b/contrib/opencensus-ext-httplib/CHANGELOG.md index 605fd3a33..bcdcde478 100644 --- a/contrib/opencensus-ext-httplib/CHANGELOG.md +++ b/contrib/opencensus-ext-httplib/CHANGELOG.md @@ -2,6 +2,12 @@ ## Unreleased +## 0.7.4 +Released 2021-01-14 + +- Change blacklist to excludelist +([#977](https://github.com/census-instrumentation/opencensus-python/pull/977)) + ## 0.7.3 Released 2020-02-03 @@ -16,7 +22,7 @@ Released 2019-08-26 ## 0.7.1 Released 2019-08-06 - - Support exporter changes in `opencensus>=0.7.0` +- Support exporter changes in `opencensus>=0.7.0` ## 0.1.3 Released 2019-05-31 diff --git a/contrib/opencensus-ext-httplib/setup.py b/contrib/opencensus-ext-httplib/setup.py index 340b43406..080c35998 100644 --- a/contrib/opencensus-ext-httplib/setup.py +++ b/contrib/opencensus-ext-httplib/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-httplib/version.py b/contrib/opencensus-ext-httplib/version.py index dffc606db..d5d5f1a28 100644 --- a/contrib/opencensus-ext-httplib/version.py +++ b/contrib/opencensus-ext-httplib/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.4' diff --git a/contrib/opencensus-ext-jaeger/setup.py b/contrib/opencensus-ext-jaeger/setup.py index 688958f73..693a92f12 100644 --- a/contrib/opencensus-ext-jaeger/setup.py +++ b/contrib/opencensus-ext-jaeger/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.1, < 1.0.0', 'thrift >= 0.10.0', ], extras_require={}, diff --git a/contrib/opencensus-ext-jaeger/version.py b/contrib/opencensus-ext-jaeger/version.py index dffc606db..752777753 100644 --- a/contrib/opencensus-ext-jaeger/version.py +++ b/contrib/opencensus-ext-jaeger/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.1' diff --git a/contrib/opencensus-ext-logging/setup.py b/contrib/opencensus-ext-logging/setup.py index 76cf383d3..64bc5a5ed 100644 --- a/contrib/opencensus-ext-logging/setup.py +++ b/contrib/opencensus-ext-logging/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-logging/version.py b/contrib/opencensus-ext-logging/version.py index ff18aeb50..d323c46d6 100644 --- a/contrib/opencensus-ext-logging/version.py +++ b/contrib/opencensus-ext-logging/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.0' diff --git a/contrib/opencensus-ext-mysql/setup.py b/contrib/opencensus-ext-mysql/setup.py index 3456658f3..25540421c 100644 --- a/contrib/opencensus-ext-mysql/setup.py +++ b/contrib/opencensus-ext-mysql/setup.py @@ -40,8 +40,8 @@ long_description=open('README.rst').read(), install_requires=[ 'mysql-connector >= 2.1.6, < 3.0.0', - 'opencensus >= 0.8.dev0, < 1.0.0', - 'opencensus-ext-dbapi >= 0.2.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', + 'opencensus-ext-dbapi >= 0.1.2, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-mysql/version.py b/contrib/opencensus-ext-mysql/version.py index ff18aeb50..3f601a176 100644 --- a/contrib/opencensus-ext-mysql/version.py +++ b/contrib/opencensus-ext-mysql/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.2' diff --git a/contrib/opencensus-ext-ocagent/setup.py b/contrib/opencensus-ext-ocagent/setup.py index 4ac94a067..3e34f2369 100644 --- a/contrib/opencensus-ext-ocagent/setup.py +++ b/contrib/opencensus-ext-ocagent/setup.py @@ -40,7 +40,7 @@ long_description=open('README.rst').read(), install_requires=[ 'grpcio >= 1.0.0, < 2.0.0', - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.1, < 1.0.0', 'opencensus-proto >= 0.1.0, < 1.0.0', ], extras_require={}, diff --git a/contrib/opencensus-ext-ocagent/version.py b/contrib/opencensus-ext-ocagent/version.py index dffc606db..752777753 100644 --- a/contrib/opencensus-ext-ocagent/version.py +++ b/contrib/opencensus-ext-ocagent/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.1' diff --git a/contrib/opencensus-ext-postgresql/setup.py b/contrib/opencensus-ext-postgresql/setup.py index 41bd59806..111ee03d6 100644 --- a/contrib/opencensus-ext-postgresql/setup.py +++ b/contrib/opencensus-ext-postgresql/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', 'psycopg2-binary >= 2.7.3.1', ], extras_require={}, diff --git a/contrib/opencensus-ext-postgresql/version.py b/contrib/opencensus-ext-postgresql/version.py index ff18aeb50..3f601a176 100644 --- a/contrib/opencensus-ext-postgresql/version.py +++ b/contrib/opencensus-ext-postgresql/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.2' diff --git a/contrib/opencensus-ext-prometheus/setup.py b/contrib/opencensus-ext-prometheus/setup.py index 2fca7c76f..8a9e82b3d 100644 --- a/contrib/opencensus-ext-prometheus/setup.py +++ b/contrib/opencensus-ext-prometheus/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', 'prometheus_client >= 0.5.0, < 1.0.0', ], extras_require={}, diff --git a/contrib/opencensus-ext-prometheus/version.py b/contrib/opencensus-ext-prometheus/version.py index bf7c8163b..20fd9b8ed 100644 --- a/contrib/opencensus-ext-prometheus/version.py +++ b/contrib/opencensus-ext-prometheus/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.3.dev0' +__version__ = '0.2.1' diff --git a/contrib/opencensus-ext-pymongo/setup.py b/contrib/opencensus-ext-pymongo/setup.py index 63adca99e..5c8936628 100644 --- a/contrib/opencensus-ext-pymongo/setup.py +++ b/contrib/opencensus-ext-pymongo/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.1, < 1.0.0', 'pymongo >= 3.1.0', ], extras_require={}, diff --git a/contrib/opencensus-ext-pymongo/version.py b/contrib/opencensus-ext-pymongo/version.py index dffc606db..752777753 100644 --- a/contrib/opencensus-ext-pymongo/version.py +++ b/contrib/opencensus-ext-pymongo/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.1' diff --git a/contrib/opencensus-ext-pymysql/setup.py b/contrib/opencensus-ext-pymysql/setup.py index f8502034d..58fcd84ca 100644 --- a/contrib/opencensus-ext-pymysql/setup.py +++ b/contrib/opencensus-ext-pymysql/setup.py @@ -40,8 +40,8 @@ long_description=open('README.rst').read(), install_requires=[ 'PyMySQL >= 0.7.11, < 1.0.0', - 'opencensus >= 0.8.dev0, < 1.0.0', - 'opencensus-ext-dbapi >= 0.2.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', + 'opencensus-ext-dbapi >= 0.1.2, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-pymysql/version.py b/contrib/opencensus-ext-pymysql/version.py index ff18aeb50..3f601a176 100644 --- a/contrib/opencensus-ext-pymysql/version.py +++ b/contrib/opencensus-ext-pymysql/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.2' diff --git a/contrib/opencensus-ext-pyramid/CHANGELOG.md b/contrib/opencensus-ext-pyramid/CHANGELOG.md index c5dc96999..31fb762e6 100644 --- a/contrib/opencensus-ext-pyramid/CHANGELOG.md +++ b/contrib/opencensus-ext-pyramid/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 0.7.2 +Released 2021-01-14 - Change blacklist to excludelist ([#977](https://github.com/census-instrumentation/opencensus-python/pull/977)) diff --git a/contrib/opencensus-ext-pyramid/setup.py b/contrib/opencensus-ext-pyramid/setup.py index 7fcd90ef3..bc6f16098 100644 --- a/contrib/opencensus-ext-pyramid/setup.py +++ b/contrib/opencensus-ext-pyramid/setup.py @@ -40,7 +40,7 @@ long_description=open('README.rst').read(), install_requires=[ 'pyramid >= 1.9.1, < 2.0.0', - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.12, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-pyramid/version.py b/contrib/opencensus-ext-pyramid/version.py index dffc606db..c652125f7 100644 --- a/contrib/opencensus-ext-pyramid/version.py +++ b/contrib/opencensus-ext-pyramid/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.2' diff --git a/contrib/opencensus-ext-requests/CHANGELOG.md b/contrib/opencensus-ext-requests/CHANGELOG.md index 4c2c4cf24..a42e24866 100644 --- a/contrib/opencensus-ext-requests/CHANGELOG.md +++ b/contrib/opencensus-ext-requests/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +## 0.7.4 +Released 2021-01-14 +- Change blacklist to excludelist +([#977](https://github.com/census-instrumentation/opencensus-python/pull/977)) + ## 0.7.3 Released 2020-02-03 @@ -20,7 +25,7 @@ Released 2019-08-26 ## 0.7.1 Released 2019-08-06 - - Support exporter changes in `opencensus>=0.7.0` +- Support exporter changes in `opencensus>=0.7.0` ## 0.1.2 Released 2019-04-24 diff --git a/contrib/opencensus-ext-requests/setup.py b/contrib/opencensus-ext-requests/setup.py index 37aca2d26..9833b3f8e 100644 --- a/contrib/opencensus-ext-requests/setup.py +++ b/contrib/opencensus-ext-requests/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.12, < 1.0.0', 'wrapt >= 1.0.0, < 2.0.0', ], extras_require={}, diff --git a/contrib/opencensus-ext-requests/version.py b/contrib/opencensus-ext-requests/version.py index dffc606db..d5d5f1a28 100644 --- a/contrib/opencensus-ext-requests/version.py +++ b/contrib/opencensus-ext-requests/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.4' diff --git a/contrib/opencensus-ext-sqlalchemy/setup.py b/contrib/opencensus-ext-sqlalchemy/setup.py index 30090c4f4..31da80847 100644 --- a/contrib/opencensus-ext-sqlalchemy/setup.py +++ b/contrib/opencensus-ext-sqlalchemy/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', 'SQLAlchemy >= 1.1.14, < 2.0.0', ], extras_require={}, diff --git a/contrib/opencensus-ext-sqlalchemy/version.py b/contrib/opencensus-ext-sqlalchemy/version.py index ff18aeb50..3f601a176 100644 --- a/contrib/opencensus-ext-sqlalchemy/version.py +++ b/contrib/opencensus-ext-sqlalchemy/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.2' diff --git a/contrib/opencensus-ext-stackdriver/CHANGELOG.md b/contrib/opencensus-ext-stackdriver/CHANGELOG.md index 7dd8184aa..a8071d279 100644 --- a/contrib/opencensus-ext-stackdriver/CHANGELOG.md +++ b/contrib/opencensus-ext-stackdriver/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog ## Unreleased + +## 0.7.4 +Released 2020-10-13 + - Change default transporter in stackdriver exporter ([#929](https://github.com/census-instrumentation/opencensus-python/pull/929)) diff --git a/contrib/opencensus-ext-stackdriver/setup.py b/contrib/opencensus-ext-stackdriver/setup.py index f87f47ab8..4714779f4 100644 --- a/contrib/opencensus-ext-stackdriver/setup.py +++ b/contrib/opencensus-ext-stackdriver/setup.py @@ -42,7 +42,7 @@ 'google-cloud-monitoring >= 0.30.0, < 1.0.0', 'google-cloud-trace >= 0.20.0, < 1.0.0', 'rsa <= 4.0; python_version<="3.4"', - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.11, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-stackdriver/version.py b/contrib/opencensus-ext-stackdriver/version.py index dffc606db..d5d5f1a28 100644 --- a/contrib/opencensus-ext-stackdriver/version.py +++ b/contrib/opencensus-ext-stackdriver/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.4' diff --git a/contrib/opencensus-ext-threading/setup.py b/contrib/opencensus-ext-threading/setup.py index 963e01e89..2f7889e52 100644 --- a/contrib/opencensus-ext-threading/setup.py +++ b/contrib/opencensus-ext-threading/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-threading/version.py b/contrib/opencensus-ext-threading/version.py index ff18aeb50..3f601a176 100644 --- a/contrib/opencensus-ext-threading/version.py +++ b/contrib/opencensus-ext-threading/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.2.dev0' +__version__ = '0.1.2' diff --git a/contrib/opencensus-ext-zipkin/setup.py b/contrib/opencensus-ext-zipkin/setup.py index b9d24c277..9904384cc 100644 --- a/contrib/opencensus-ext-zipkin/setup.py +++ b/contrib/opencensus-ext-zipkin/setup.py @@ -39,7 +39,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus >= 0.8.dev0, < 1.0.0', + 'opencensus >= 0.7.0, < 1.0.0', ], extras_require={}, license='Apache-2.0', diff --git a/contrib/opencensus-ext-zipkin/version.py b/contrib/opencensus-ext-zipkin/version.py index bf7c8163b..ee24582a0 100644 --- a/contrib/opencensus-ext-zipkin/version.py +++ b/contrib/opencensus-ext-zipkin/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.3.dev0' +__version__ = '0.2.2' diff --git a/opencensus/common/version/__init__.py b/opencensus/common/version/__init__.py index dffc606db..e6da719b6 100644 --- a/opencensus/common/version/__init__.py +++ b/opencensus/common/version/__init__.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.8.dev0' +__version__ = '0.7.12' diff --git a/setup.py b/setup.py index c060e343d..30604f4b3 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'opencensus-context == 0.2.dev0', + 'opencensus-context == 0.1.2', 'google-api-core >= 1.0.0, < 2.0.0', ], extras_require={}, diff --git a/tox.ini b/tox.ini index a460651bf..64c5cb604 100644 --- a/tox.ini +++ b/tox.ini @@ -1,58 +1,43 @@ [tox] envlist = - py{27,34,35,36,37}-unit - py37-lint - py37-setup - py37-docs + py{27,37}-unit [testenv] install_command = python -m pip install {opts} {packages} deps = - unit,lint: mock==3.0.5 - unit,lint: pytest==4.6.4 - unit,lint: pytest-cov - unit,lint: retrying - unit,lint: unittest2 - unit,lint,py37-setup,docs: -e context/opencensus-context - unit,lint,docs: -e contrib/opencensus-correlation - unit,lint,docs: -e . - unit,lint: -e contrib/opencensus-ext-azure - unit,lint: -e contrib/opencensus-ext-datadog - unit,lint: -e contrib/opencensus-ext-dbapi - unit,lint: -e contrib/opencensus-ext-django - unit,lint: -e contrib/opencensus-ext-flask - unit,lint: -e contrib/opencensus-ext-gevent - unit,lint: -e contrib/opencensus-ext-grpc - unit,lint: -e contrib/opencensus-ext-httplib - unit,lint: -e contrib/opencensus-ext-jaeger - unit,lint: -e contrib/opencensus-ext-logging - unit,lint: -e contrib/opencensus-ext-mysql - unit,lint: -e contrib/opencensus-ext-ocagent - unit,lint: -e contrib/opencensus-ext-postgresql - unit,lint: -e contrib/opencensus-ext-prometheus - unit,lint: -e contrib/opencensus-ext-pymongo - unit,lint: -e contrib/opencensus-ext-pymysql - unit,lint: -e contrib/opencensus-ext-pyramid - unit,lint: -e contrib/opencensus-ext-requests - unit,lint: -e contrib/opencensus-ext-sqlalchemy - unit,lint: -e contrib/opencensus-ext-stackdriver - unit,lint: -e contrib/opencensus-ext-threading - unit,lint: -e contrib/opencensus-ext-zipkin - unit,lint: -e contrib/opencensus-ext-google-cloud-clientlibs - lint: flake8 - lint: isort ~= 4.3.21 - setup: docutils - setup: pygments - docs: setuptools >= 36.4.0 - docs: sphinx >= 1.6.3 + unit: mock==3.0.5 + unit: pytest==4.6.4 + unit: pytest-cov + unit: retrying + unit: unittest2 + unit: -e context/opencensus-context + unit: -e contrib/opencensus-correlation + unit: -e . + unit: -e contrib/opencensus-ext-azure + unit: -e contrib/opencensus-ext-datadog + unit: -e contrib/opencensus-ext-dbapi + unit: -e contrib/opencensus-ext-django + unit: -e contrib/opencensus-ext-flask + unit: -e contrib/opencensus-ext-gevent + unit: -e contrib/opencensus-ext-grpc + unit: -e contrib/opencensus-ext-httplib + unit: -e contrib/opencensus-ext-jaeger + unit: -e contrib/opencensus-ext-logging + unit: -e contrib/opencensus-ext-mysql + unit: -e contrib/opencensus-ext-ocagent + unit: -e contrib/opencensus-ext-postgresql + unit: -e contrib/opencensus-ext-prometheus + unit: -e contrib/opencensus-ext-pymongo + unit: -e contrib/opencensus-ext-pymysql + unit: -e contrib/opencensus-ext-pyramid + unit: -e contrib/opencensus-ext-requests + unit: -e contrib/opencensus-ext-sqlalchemy + unit: -e contrib/opencensus-ext-stackdriver + unit: -e contrib/opencensus-ext-threading + unit: -e contrib/opencensus-ext-zipkin + unit: -e contrib/opencensus-ext-google-cloud-clientlibs commands = unit: py.test --quiet --cov={envdir}/opencensus --cov=context --cov=contrib --cov-report term-missing --cov-config=.coveragerc --cov-fail-under=97 tests/unit/ context/ contrib/ ; TODO system tests - lint: isort --check-only --diff --recursive . - lint: flake8 context/ contrib/ opencensus/ tests/ examples/ - ; lint: - bash ./scripts/pylint.sh - py37-setup: python setup.py check --restructuredtext --strict - py37-docs: bash ./scripts/update_docs.sh - ; TODO deployment