Permalink
Browse files

standard deadcode

  • Loading branch information...
1 parent 6b57d25 commit b8f99137b70b7c52fe115a169894caa907e6660f @bensigelman bensigelman committed Feb 5, 2016
Showing with 0 additions and 104 deletions.
  1. +0 −1 Makefile
  2. +0 −24 opentracing/standard/__init__.py
  3. +0 −24 opentracing/standard/context.py
  4. +0 −55 opentracing/standard/raw.py
View
@@ -85,7 +85,6 @@ dist: clean
# ls -l dist
install:
- pip install setuptools
pip install -r requirements.txt
pip install -r requirements-test.txt
echo skipping pip install -r requirements-doc.txt
@@ -1,24 +0,0 @@
-# Copyright (c) 2015 Uber Technologies, Inc.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-from __future__ import absolute_import
-
-from .context import TraceContext # noqa
-# from .span import Span # noqa
-# from .tracer import Tracer # noqa
@@ -1,24 +0,0 @@
-# Copyright (c) 2015 Uber Technologies, Inc.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-from __future__ import absolute_import
-import opentracing
-
-
@@ -1,55 +0,0 @@
-# Copyright (c) 2015 Uber Technologies, Inc.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-from __future__ import absolute_import
-
-
-class RawSpan(object):
- """
- Represents all accumulated state associated with a finished Span.
- """
- def __init__(self, trace_context, operation_name):
- self.trace_context = trace_context
- self.operation_name = operation_name
- self.start_time = None
- self.duration = None
- self.tags = None # array of (key, value) tuples when initialized
- self.logs = None # array of RawLog's when initialized
-
- def set_tag(self, key, value):
- if self.tags is None:
- self.tags = []
- self.tags.append((key, value))
-
- def add_log(self, log):
- if self.logs is None:
- self.logs = []
- self.logs.append(log)
-
-
-class RawLog(object):
- """
- Encapsulates a log attached to a Span.
- """
- def __init__(self, timestamp, is_error, message, *args):
- self.timestamp = timestamp
- self.is_error = is_error
- self.message = message
- self.payload = args

0 comments on commit b8f9913

Please sign in to comment.