Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup SDK to be a Namespace Package so it can be extended #1205

Merged
merged 4 commits into from
Oct 15, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -16,6 +16,3 @@
The OpenTelemetry SDK package is an implementation of the OpenTelemetry
API
"""
from . import metrics, trace, util
aabmass marked this conversation as resolved.
Show resolved Hide resolved

__all__ = ["metrics", "trace", "util"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
import threading
from typing import Sequence

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


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
aabmass marked this conversation as resolved.
Show resolved Hide resolved
from opentelemetry.sdk.trace import Span
from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult


class InMemorySpanExporter(SpanExporter):
Expand Down