Skip to content

Commit

Permalink
SDK as namespace package makes it extendable
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN committed Oct 6, 2020
1 parent b565d6b commit 9bf4113
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
The OpenTelemetry SDK package is an implementation of the OpenTelemetry
API
"""
from . import metrics, trace, util
from opentelemetry.sdk import metrics, trace, util

__all__ = ["metrics", "trace", "util"]
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@
# limitations under the License.

import threading
from typing import Sequence

from . import MetricRecord, MetricsExporter, MetricsExportResult
from opentelemetry.sdk.metrics.export import (
MetricRecord,
MetricsExporter,
MetricsExportResult,
)
from typing import Sequence


class InMemoryMetricsExporter(MetricsExporter):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@

from opentelemetry.configuration import Configuration
from opentelemetry.context import attach, detach, set_value
from opentelemetry.sdk.trace import Span, SpanProcessor
from opentelemetry.util import time_ns

from .. import Span, SpanProcessor

logger = logging.getLogger(__name__)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import threading
import typing

from .. import Span
from . import SpanExporter, SpanExportResult
from opentelemetry.sdk.trace import Span
from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult


class InMemorySpanExporter(SpanExporter):
Expand Down

0 comments on commit 9bf4113

Please sign in to comment.