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

Commit a51cdb9

Browse files
authored
Release for v0.7.10 (#926)
1 parent 8561909 commit a51cdb9

File tree

24 files changed

+2693
-2749
lines changed

24 files changed

+2693
-2749
lines changed

CHANGELOG.md

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

33
## Unreleased
44

5+
## 0.7.10
6+
Released 2020-06-29
7+
8+
- Updated `azure` module
9+
([#903](https://github.com/census-instrumentation/opencensus-python/pull/903),
10+
[#925](https://github.com/census-instrumentation/opencensus-python/pull/925))
11+
12+
- Updated `stackdriver` module
13+
([#919](https://github.com/census-instrumentation/opencensus-python/pull/919))
14+
515
## 0.7.9
616
Released 2020-06-17
717

context/opencensus-context/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.1.2
6+
Released 2020-06-29
7+
8+
- Release source distribution
9+
510
## 0.1.1
611
Released 2019-05-31
712

context/opencensus-context/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.1.1'
15+
__version__ = '0.1.2'

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.4
6+
Released 2020-06-29
7+
8+
- Remove dependency rate from standard metrics
9+
([#903](https://github.com/census-instrumentation/opencensus-python/pull/903))
10+
- Implement customEvents using AzureEventHandler
11+
([#925](https://github.com/census-instrumentation/opencensus-python/pull/925))
12+
513
## 1.0.3
614
Released 2020-06-17
715

contrib/opencensus-ext-azure/README.rst

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,21 @@ Modifying Logs
121121
logger.addHandler(handler)
122122
logger.warning('Hello, World!')
123123
124+
Events
125+
######
126+
127+
You can send `customEvent` telemetry in exactly the same way you would send `trace` telemetry except using the `AzureEventHandler` instead.
128+
129+
.. code:: python
130+
131+
import logging
132+
133+
from opencensus.ext.azure.log_exporter import AzureEventHandler
134+
135+
logger = logging.getLogger(__name__)
136+
logger.addHandler(AzureEventHandler(connection_string='InstrumentationKey=<your-instrumentation_key-here>'))
137+
logger.setLevel(logging.INFO)
138+
logger.info('Hello, World!')
124139
125140
Metrics
126141
~~~~~~~
@@ -178,10 +193,10 @@ The **Azure Monitor Metrics Exporter** allows you to export metrics to `Azure Mo
178193
if __name__ == "__main__":
179194
main()
180195
181-
Standard Metrics
182-
################
196+
Performance counters
197+
####################
183198

184-
The exporter also includes a set of standard metrics that are exported to Azure Monitor by default.
199+
The exporter also includes a set of performance counters that are exported to Azure Monitor by default.
185200

186201
.. code:: python
187202
@@ -191,7 +206,7 @@ The exporter also includes a set of standard metrics that are exported to Azure
191206
from opencensus.ext.azure import metrics_exporter
192207
193208
def main():
194-
# All you need is the next line. You can disable standard metrics by
209+
# All you need is the next line. You can disable performance counters by
195210
# passing in enable_standard_metrics=False into the constructor of
196211
# new_metrics_exporter()
197212
_exporter = metrics_exporter.new_metrics_exporter(connection_string='InstrumentationKey=<your-instrumentation-key-here>')
@@ -205,13 +220,12 @@ The exporter also includes a set of standard metrics that are exported to Azure
205220
if __name__ == "__main__":
206221
main()
207222
208-
Below is a list of standard metrics that are currently available:
223+
Below is a list of performance counters that are currently available:
209224

210225
- Available Memory (bytes)
211226
- CPU Processor Time (percentage)
212227
- Incoming Request Rate (per second)
213228
- Incoming Request Average Execution Time (milliseconds)
214-
- Outgoing Request Rate (per second)
215229
- Process CPU Usage (percentage)
216230
- Process Private Bytes (bytes)
217231

contrib/opencensus-ext-azure/examples/logs/correlated.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@
3636
with tracer.span(name='test'):
3737
logger.warning('In the span')
3838
logger.warning('After the span')
39+
40+
input("...")

contrib/opencensus-ext-azure/examples/logs/error.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ def main():
3232

3333
if __name__ == '__main__':
3434
main()
35+
input("...")
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2019, OpenCensus Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import logging
16+
17+
from opencensus.ext.azure.log_exporter import AzureEventHandler
18+
19+
logger = logging.getLogger(__name__)
20+
# TODO: you need to specify the instrumentation key in a connection string
21+
# and place it in the APPLICATIONINSIGHTS_CONNECTION_STRING
22+
# environment variable.
23+
logger.addHandler(AzureEventHandler())
24+
logger.setLevel(logging.INFO)
25+
logger.info('Hello, World!')
26+
27+
input("...")

contrib/opencensus-ext-azure/examples/logs/properties.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@
3232
result = 1 / 0 # generate a ZeroDivisionError
3333
except Exception:
3434
logger.exception('Captured an exception.', extra=properties)
35+
36+
input("...")

contrib/opencensus-ext-azure/examples/logs/simple.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@
2222
# environment variable.
2323
logger.addHandler(AzureLogHandler())
2424
logger.warning('Hello, World!')
25+
26+
input("...")

0 commit comments

Comments
 (0)