Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit ea40da8

Browse files
authored
Release for v0.7.12 (#995)
1 parent 86c2e8a commit ea40da8

File tree

62 files changed

+281
-191
lines changed

Some content is hidden

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

62 files changed

+281
-191
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# This file controls who is tagged for review for any given pull request.
33

44
# For anything not explicitly taken by someone else:
5-
* @census-instrumentation/global-owners @aabmass @c24t @hectorhdzg @lzchen @reyang @songy23 @victoraugustolls
5+
* @census-instrumentation/global-owners @aabmass @hectorhdzg @lzchen @songy23 @victoraugustolls

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'release/*'
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
# 18.04 needed for python3.4
12+
runs-on: ubuntu-18.04
13+
env:
14+
# We use these variables to convert between tox and GHA version literals
15+
py27: 2.7
16+
py34: 3.4
17+
py35: 3.5
18+
py36: 3.6
19+
py37: 3.7
20+
strategy:
21+
# ensures the entire test matrix is run, even if one permutation fails
22+
fail-fast: false
23+
matrix:
24+
python-version: [py27, py34, py35, py36, py37]
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
- name: Set up Python ${{ env[matrix.python-version] }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ env[matrix.python-version] }}
32+
- name: Install tox
33+
run: pip install -U tox-factor
34+
- name: Cache tox environment
35+
uses: actions/cache@v2
36+
with:
37+
path: .tox
38+
# bump version prefix to fully reset caches
39+
key: v1-tox-${{ matrix.python-version }}-${{ hashFiles('tox.ini') }}
40+
- name: run tox
41+
run: tox -f ${{ matrix.python-version }}

.pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# run arbitrary code.
66
extension-pkg-whitelist=
77

8-
# Add files or directories to the blacklist. They should be base names, not
8+
# Add files or directories to the excludelist. They should be base names, not
99
# paths.
1010
ignore=CVS
1111

12-
# Add files or directories matching the regex patterns to the blacklist. The
12+
# Add files or directories matching the regex patterns to the excludelist. The
1313
# regex matches against base names, not paths.
1414
ignore-patterns=
1515

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
## 0.7.12
6+
Released 2021-01-14
7+
- Change blacklist to excludelist
8+
([#977](https://github.com/census-instrumentation/opencensus-python/pull/977))
9+
510
## 0.7.11
611
Released 2020-10-13
712

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ Customization
118118

119119
There are several things you can customize in OpenCensus:
120120

121-
* **Blacklist**, which excludes certain hosts and paths from being tracked.
121+
* **Excludelist**, which excludes certain hosts and paths from being tracked.
122122
By default, the health check path for the App Engine flexible environment is
123-
not tracked, you can turn it on by excluding it from the blacklist setting.
123+
not tracked, you can turn it on by excluding it from the excludelist setting.
124124

125125
* **Exporter**, which sends the traces.
126126
By default, the traces are printed to stdout in JSON format. You can choose
@@ -174,8 +174,8 @@ information, please read the
174174
175175
'OPENCENSUS': {
176176
'TRACE': {
177-
'BLACKLIST_HOSTNAMES': ['localhost', '127.0.0.1'],
178-
'BLACKLIST_PATHS': ['_ah/health'],
177+
'EXCLUDELIST_HOSTNAMES': ['localhost', '127.0.0.1'],
178+
'EXCLUDELIST_PATHS': ['_ah/health'],
179179
'SAMPLER': 'opencensus.trace.samplers.ProbabilitySampler(rate=1)',
180180
'EXPORTER': '''opencensus.ext.ocagent.trace_exporter.TraceExporter(
181181
service_name='foobar',

contrib/opencensus-ext-azure/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## Unreleased
44

5+
## 1.0.6
6+
Released 2021-01-14
7+
8+
- Disable heartbeat metrics in exporters
9+
([#984](https://github.com/census-instrumentation/opencensus-python/pull/984))
10+
- Loosen instrumentation key validation to GUID
11+
([#984](https://github.com/census-instrumentation/opencensus-python/pull/984))
12+
513
## 1.0.5
614
Released 2020-10-13
715

contrib/opencensus-ext-azure/opencensus/ext/azure/common/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self, src, dst):
6767

6868
def run(self): # pragma: NO COVER
6969
# Indicate that this thread is an exporter thread.
70-
# Used to suppress tracking of requests in this thread.
70+
# Used to suppress tracking of requests in this thread
7171
execution_context.set_is_exporter(True)
7272
src = self.src
7373
dst = self.dst

contrib/opencensus-ext-azure/opencensus/ext/azure/common/transport.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def _transmit(self, envelopes):
7676
except Exception:
7777
pass
7878
if response.status_code == 200:
79-
logger.info('Transmission succeeded: %s.', text)
8079
return 0
8180
if response.status_code == 206: # Partial Content
8281
if data:

contrib/opencensus-ext-azure/opencensus/ext/azure/common/utils.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,9 @@ def timestamp_to_iso_str(timestamp):
5858
return to_iso_str(datetime.datetime.utcfromtimestamp(timestamp))
5959

6060

61-
# Validate UUID format
62-
# Specs taken from https://tools.ietf.org/html/rfc4122
61+
# Validate GUID format
6362
uuid_regex_pattern = re.compile('^[0-9a-f]{8}-'
64-
'[0-9a-f]{4}-'
65-
'[1-5][0-9a-f]{3}-'
66-
'[89ab][0-9a-f]{3}-'
63+
'([0-9a-f]{4}-){3}'
6764
'[0-9a-f]{12}$')
6865

6966

0 commit comments

Comments
 (0)