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

Commit 7395e37

Browse files
authored
Bump SD exporter to 0.7.1 for release (#749)
1 parent 8dd76d9 commit 7395e37

File tree

34 files changed

+262
-66
lines changed

34 files changed

+262
-66
lines changed

CHANGELOG.md

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

33
## Unreleased
44

5+
## 0.7.1
6+
Released 2019-08-05
7+
8+
- Added `set_status` to `span`
9+
([#738](https://github.com/census-instrumentation/opencensus-python/pull/738))
10+
- Update released stackdriver exporter version
11+
512
## 0.7.0
613
Released 2019-07-31
714

contrib/opencensus-ext-django/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
## 0.7.0
66
Released 2019-07-31
77

8-
- Updated span attributes to include some missing attributes listed [here](https://github.com/census-instrumentation/opencensus-specs/blob/master/trace/HTTP.md#attributes)
9-
([#735](https://github.com/census-instrumentation/opencensus-python/pull/735))
8+
- Updated span attributes to include some missing attributes listed
9+
[here](https://github.com/census-instrumentation/opencensus-specs/blob/master/trace/HTTP.md#attributes)
10+
([#735](https://github.com/census-instrumentation/opencensus-python/pull/735))
1011

1112
## 0.3.2
1213
Released 2019-07-26

contrib/opencensus-ext-flask/CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22

33
## Unreleased
44

5+
## 0.7.1
6+
Released 2019-08-05
7+
8+
- Update for core library changes
9+
510
## 0.7.0
611
Released 2019-07-31
712

813
- Make ProbabilitySampler default
9-
- Updated span attributes to include some missing attributes listed [here](https://github.com/census-instrumentation/opencensus-specs/blob/master/trace/HTTP.md#attributes)
10-
([#735](https://github.com/census-instrumentation/opencensus-python/pull/735))
14+
- Updated span attributes to include some missing attributes listed
15+
[here](https://github.com/census-instrumentation/opencensus-specs/blob/master/trace/HTTP.md#attributes)
16+
([#735](https://github.com/census-instrumentation/opencensus-python/pull/735))
1117

1218
## 0.3.0
1319
Released 2019-04-24

contrib/opencensus-ext-flask/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
long_description=open('README.rst').read(),
4141
install_requires=[
4242
'flask >= 0.12.3, < 2.0.0',
43-
'opencensus >= 0.7.0, < 1.0.0',
43+
'opencensus >= 0.7.1, < 1.0.0',
4444
],
4545
extras_require={},
4646
license='Apache-2.0',

contrib/opencensus-ext-flask/tests/test_flask_middleware.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,10 @@ def test_teardown_include_exception(self):
316316
exported_spandata = mock_exporter.export.call_args[0][0][0]
317317
self.assertIsInstance(exported_spandata, span_data.SpanData)
318318
self.assertIsInstance(exported_spandata.status, status.Status)
319-
self.assertEqual(exported_spandata.status.code, code_pb2.UNKNOWN)
320-
self.assertEqual(exported_spandata.status.message, 'error')
319+
self.assertEqual(
320+
exported_spandata.status.canonical_code, code_pb2.UNKNOWN
321+
)
322+
self.assertEqual(exported_spandata.status.description, 'error')
321323

322324
def test_teardown_include_exception_and_traceback(self):
323325
mock_exporter = mock.MagicMock()
@@ -331,8 +333,10 @@ def test_teardown_include_exception_and_traceback(self):
331333
exported_spandata = mock_exporter.export.call_args[0][0][0]
332334
self.assertIsInstance(exported_spandata, span_data.SpanData)
333335
self.assertIsInstance(exported_spandata.status, status.Status)
334-
self.assertEqual(exported_spandata.status.code, code_pb2.UNKNOWN)
335-
self.assertEqual(exported_spandata.status.message, 'error')
336+
self.assertEqual(
337+
exported_spandata.status.canonical_code, code_pb2.UNKNOWN
338+
)
339+
self.assertEqual(exported_spandata.status.description, 'error')
336340
self.assertIsInstance(
337341
exported_spandata.stack_trace, stack_trace.StackTrace
338342
)

contrib/opencensus-ext-flask/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = '0.7.0'
15+
__version__ = '0.7.1'

contrib/opencensus-ext-grpc/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.1
6+
Released 2019-08-05
7+
8+
- Update for core library changes
9+
510
## 0.3.0
611
Released 2019-05-31
712

contrib/opencensus-ext-grpc/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
long_description=open('README.rst').read(),
4141
install_requires=[
4242
'grpcio >= 1.0.0, < 2.0.0',
43-
'opencensus >= 0.7.0, < 1.0.0',
43+
'opencensus >= 0.7.1, < 1.0.0',
4444
],
4545
extras_require={},
4646
license='Apache-2.0',

contrib/opencensus-ext-grpc/tests/test_server_interceptor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ def test_intercept_handler_exception(self):
147147

148148
# check that the status obj is attached to the current span
149149
self.assertIsNotNone(current_span.status)
150-
self.assertEqual(current_span.status.code, code_pb2.UNKNOWN)
151-
self.assertEqual(current_span.status.message, 'Test')
150+
self.assertEqual(
151+
current_span.status.canonical_code, code_pb2.UNKNOWN
152+
)
153+
self.assertEqual(current_span.status.description, 'Test')
152154

153155
@mock.patch(
154156
'opencensus.trace.execution_context.get_opencensus_tracer')

contrib/opencensus-ext-grpc/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = '0.3.0'
15+
__version__ = '0.7.1'

0 commit comments

Comments
 (0)