Skip to content

Commit

Permalink
update contrib sha
Browse files Browse the repository at this point in the history
  • Loading branch information
owais committed Aug 30, 2021
1 parent 59f41a4 commit feb3ef6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
# Otherwise, set variable to the commit of your branch on
# opentelemetry-python-contrib which is compatible with these Core repo
# changes.
CONTRIB_REPO_SHA: 3ad534cbba41c2b92618f5f03c4c92cee4a72df6
CONTRIB_REPO_SHA: 71b0ca7d80a2c717bdee12c11ede6d803ac980df

jobs:
build:
Expand Down
10 changes: 8 additions & 2 deletions tests/util/src/opentelemetry/test/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ def get_finished_spans(self):
self, self.memory_exporter.get_finished_spans()
)

def assertSpanInstrumentationInfo(self, span, module):
def assertSpanInstrumentationInfo( # pylint: disable=C0103
self, span, module
):
self.assertEqual(span.instrumentation_info.name, module.__name__)
self.assertEqual(span.instrumentation_info.version, module.__version__)

def assertSpanHasAttributes(self, span, attributes):
def assertSpanHasAttributes( # pylint: disable=C0103
self, span, attributes
):
for key, val in attributes.items():
self.assertIn(key, span.attributes)
self.assertEqual(val, span.attributes[key])
Expand Down Expand Up @@ -112,9 +116,11 @@ def by_name(self, name):
if span.name == name:
return span
self.test.fail("Did not find span with name {}".format(name))
return None

def by_attr(self, key, value):
for span in self:
if span.attributes.get(key) == value:
return span
self.test.fail("Did not find span with attrs {}={}".format(key, value))
return None

0 comments on commit feb3ef6

Please sign in to comment.