Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
fa0816e
Prepare for 0.7.0 release (#739)
lzchen Jul 31, 2019
7a221bb
Bump version to 0.7.0 for only packages that have changed (#741)
lzchen Aug 1, 2019
0c5ae8f
fix typo (#742)
lzchen Aug 1, 2019
17849f0
Skip existing packages on twine upload (#743)
c24t Aug 2, 2019
8dd76d9
Bump SD exporter package version for release (#748)
c24t Aug 5, 2019
7395e37
Bump SD exporter to 0.7.1 for release (#749)
c24t Aug 6, 2019
272d46f
Bump stackdriver to 0.7.1 (#752)
c24t Aug 6, 2019
504722d
Bump version for httplibs and requests (#753)
lzchen Aug 6, 2019
bcda851
0.7.2 release (#762)
c24t Aug 16, 2019
f109f0a
Minor Releases (#776)
lzchen Aug 26, 2019
5b064c9
GA for Azure exporter v1.0.0, minor Releases for certain packages (#792)
lzchen Oct 1, 2019
0787052
Minor Release for Flask (#795)
lzchen Oct 1, 2019
3afd7bc
Release for Datadog exporters and some azure exporter changes (#818)
lzchen Nov 19, 2019
9ba948f
Bump version for release to 0.7.6 (#819)
lzchen Nov 26, 2019
72f2363
Release for v0.7.7 (#853)
lzchen Feb 3, 2020
257238b
fix version typo (#855)
lzchen Feb 4, 2020
e8aee41
Release for v0.7.8 (#912)
lzchen Jun 17, 2020
6a87e2f
hotfix (#915)
lzchen Jun 18, 2020
8561909
Update version
lzchen Jun 18, 2020
a51cdb9
Release for v0.7.10 (#926)
lzchen Jun 29, 2020
49b0cf9
bump context version dependency (#933)
lzchen Jul 21, 2020
c649ac8
Release for v0.7.11 (#960)
lzchen Oct 13, 2020
86c2e8a
Update __init__.py
lzchen Oct 19, 2020
d11f7ff
Merge branch 'master' of https://github.com/census-instrumentation/op…
lzchen Jan 14, 2021
60d3913
build
lzchen Jan 14, 2021
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
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches-ignore:
- 'release/*'
pull_request:
branches:
- master

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
known_first_party=opencensus
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions context/opencensus-context/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

## Unreleased

## opencensus-ext-context 0.1.2

## 0.1.2
Released 2020-06-29

Expand Down
2 changes: 1 addition & 1 deletion context/opencensus-context/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion contrib/opencensus-correlation/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
15 changes: 11 additions & 4 deletions contrib/opencensus-ext-azure/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-azure/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions contrib/opencensus-ext-datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## Unreleased

## 0.1.0
Released 2019-11-26

Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-datadog/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={},
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-datadog/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-dbapi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-dbapi/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 3 additions & 0 deletions contrib/opencensus-ext-django/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-django/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-django/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
5 changes: 5 additions & 0 deletions contrib/opencensus-ext-flask/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-flask/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-flask/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-gevent/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={},
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-gevent/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
6 changes: 3 additions & 3 deletions contrib/opencensus-ext-google-cloud-clientlibs/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 3 additions & 0 deletions contrib/opencensus-ext-grpc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-grpc/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-grpc/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
8 changes: 7 additions & 1 deletion contrib/opencensus-ext-httplib/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-httplib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-httplib/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-jaeger/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={},
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-jaeger/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-logging/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-logging/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Loading