Skip to content

Commit b04ddc1

Browse files
authored
Merge branch 'master' into tornado
2 parents 29c8bcf + 63685b1 commit b04ddc1

File tree

42 files changed

+1524
-415
lines changed

Some content is hidden

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

42 files changed

+1524
-415
lines changed

.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 list of files or directories to be excluded. They should be base names, not
99
# paths.
1010
ignore=CVS,gen,proto
1111

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

docs/api/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ OpenTelemetry Python API
66
.. toctree::
77
:maxdepth: 1
88

9+
baggage
910
configuration
1011
context
11-
correlationcontext
1212
metrics
1313
trace

docs/api/baggage.propagation.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
opentelemetry.baggage.propagation package
2+
====================================================
3+
4+
Module contents
5+
---------------
6+
7+
.. automodule:: opentelemetry.baggage.propagation

docs/api/baggage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
opentelemetry.baggage package
2+
========================================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
baggage.propagation
10+
11+
Module contents
12+
---------------
13+
14+
.. automodule:: opentelemetry.baggage

docs/api/correlationcontext.propagation.rst

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

docs/api/correlationcontext.rst

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

docs/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Now run the above script, hit the root url (http://localhost:5000/) a few times,
174174
python flask_example.py
175175
176176
177-
Configure Your HTTP Propagator (b3, CorrelationContext)
177+
Configure Your HTTP Propagator (b3, Baggage)
178178
-------------------------------------------------------
179179

180180
A major feature of distributed tracing is the ability to correlate a trace across

docs/getting_started/tests/test_flask.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
from time import sleep
1919

2020
import requests
21+
from requests.adapters import HTTPAdapter
22+
from requests.packages.urllib3.util.retry import Retry
2123

2224

2325
class TestFlask(unittest.TestCase):
@@ -27,10 +29,13 @@ def test_flask(self):
2729
server = subprocess.Popen(
2830
[sys.executable, server_script], stdout=subprocess.PIPE,
2931
)
30-
sleep(1)
32+
retry_strategy = Retry(total=10, backoff_factor=1)
33+
adapter = HTTPAdapter(max_retries=retry_strategy)
34+
http = requests.Session()
35+
http.mount("http://", adapter)
3136

3237
try:
33-
result = requests.get("http://localhost:5000")
38+
result = http.get("http://localhost:5000")
3439
self.assertEqual(result.status_code, 200)
3540

3641
sleep(0.1)

exporter/opentelemetry-exporter-jaeger/tests/test_jaeger_exporter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,11 @@ def test_translate_to_jaeger(self):
215215
otel_spans[0].end(end_time=end_times[0])
216216

217217
otel_spans[1].start(start_time=start_times[1])
218+
otel_spans[1].resource = Resource({})
218219
otel_spans[1].end(end_time=end_times[1])
219220

220221
otel_spans[2].start(start_time=start_times[2])
222+
otel_spans[2].resource = Resource({})
221223
otel_spans[2].end(end_time=end_times[2])
222224

223225
# pylint: disable=protected-access

exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _export(self, data):
186186
if error.code() == StatusCode.OK:
187187
return self._result.SUCCESS
188188

189-
return self.result.FAILURE
189+
return self._result.FAILURE
190190

191191
return self._result.FAILURE
192192

0 commit comments

Comments
 (0)