Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from opencensus.common.correlationcontext.correlationcontext import CorrelationContext
from opencensus.common.correlationcontext.correlationcontext \
import CorrelationContext


__all__ = ['CorrelationContext']
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.


class CorrelationContext(object):
pass
2 changes: 1 addition & 1 deletion contrib/opencensus-correlation/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-correlation',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-correlation', # noqa: E501
zip_safe=False,
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import unittest
from opencensus.common.correlationcontext import CorrelationContext


class CorrelationContextTest(unittest.TestCase):
def test_ctor_default(self):
self.assertTrue(CorrelationContext())
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-dbapi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-dbapi',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-dbapi', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-django/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('examples', 'tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-django',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-django', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-flask/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('examples', 'tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-flask',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-flask', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-google-cloud-clientlibs/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-google-cloud-clientlibs',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-google-cloud-clientlibs', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-grpc/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('examples', 'tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-grpc',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-grpc', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-httplib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-httplib',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-httplib', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-jaeger/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-jaeger',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-jaeger', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-mysql/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-mysql',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-mysql', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-ocagent/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-ocagent',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-ocagent', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-postgresql/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-postgresql',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-postgresql', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-prometheus/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('examples', 'tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-prometheus',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-prometheus', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-pymongo/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-pymongo',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-pymongo', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-pymysql/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-pymysql',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-pymysql', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-pyramid/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('examples', 'tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-pyramid',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-pyramid', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-requests/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-requests',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-requests', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-sqlalchemy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-sqlalchemy',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-sqlalchemy', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-stackdriver/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('examples', 'tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-stackdriver',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-stackdriver', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-threading/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-threading',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-threading', # noqa: E501
zip_safe=False,
)
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-zipkin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
license='Apache-2.0',
packages=find_packages(exclude=('tests',)),
namespace_packages=[],
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-zipkin',
url='https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-zipkin', # noqa: E501
zip_safe=False,
)
4 changes: 2 additions & 2 deletions nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def lint(session):

session.run(
'flake8',
'--exclude=opencensus/trace/exporters/gen/',
'opencensus/', 'tests/', 'examples/')
'--exclude=contrib/opencensus-ext-ocagent/opencensus/ext/ocagent/trace_exporter/gen/',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we want to have a config file (e.g. lint.rc) under the ocagent ext folder. Flake doesn't seem to support this, probably we should revisit when we switch to pylint.

'contrib/', 'opencensus/', 'tests/', 'examples/')


@nox.session
Expand Down