mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
aws-xray-sdk: update and remove spurious re-exports (#10874)
Fixes #10873 Remove some obsolete compatibility functions that are no longer in the latest release, and stop re-exporting symbols that clearly weren't meant to be re-exported.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
aws_xray_sdk.core.async_recorder.subsegment_decorator
|
||||
aws_xray_sdk.core.models.subsegment.subsegment_decorator
|
||||
aws_xray_sdk.core.sampling.connector.ServiceConnector.fetch_sampling_rules
|
||||
aws_xray_sdk.core.sampling.sampler.ServiceConnector.fetch_sampling_rules
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
from _typeshed import Incomplete
|
||||
from types import TracebackType
|
||||
|
||||
from .models.segment import SegmentContextManager as SegmentContextManager
|
||||
from .models.subsegment import (
|
||||
SubsegmentContextManager as SubsegmentContextManager,
|
||||
is_already_recording as is_already_recording,
|
||||
subsegment_decorator as subsegment_decorator,
|
||||
)
|
||||
from .recorder import AWSXRayRecorder as AWSXRayRecorder
|
||||
from .utils import stacktrace as stacktrace
|
||||
from .models.segment import SegmentContextManager
|
||||
from .models.subsegment import SubsegmentContextManager
|
||||
from .recorder import AWSXRayRecorder
|
||||
|
||||
class AsyncSegmentContextManager(SegmentContextManager):
|
||||
async def __aenter__(self): ...
|
||||
|
||||
@@ -2,9 +2,6 @@ import time
|
||||
from logging import Logger
|
||||
from typing import Any
|
||||
|
||||
from .. import global_sdk_config as global_sdk_config
|
||||
from .exceptions.exceptions import SegmentNotFoundException as SegmentNotFoundException
|
||||
from .models.dummy_entities import DummySegment as DummySegment
|
||||
from .models.entity import Entity
|
||||
from .models.segment import Segment
|
||||
from .models.subsegment import Subsegment
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from .exceptions.exceptions import InvalidDaemonAddressException as InvalidDaemonAddressException
|
||||
|
||||
DAEMON_ADDRESS_KEY: str
|
||||
DEFAULT_ADDRESS: str
|
||||
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from logging import Logger
|
||||
|
||||
from aws_xray_sdk import global_sdk_config as global_sdk_config
|
||||
|
||||
from .context import Context as Context
|
||||
from .models.facade_segment import FacadeSegment as FacadeSegment
|
||||
from .models.trace_header import TraceHeader as TraceHeader
|
||||
from .context import Context
|
||||
|
||||
log: Logger
|
||||
LAMBDA_TRACE_HEADER_KEY: str
|
||||
|
||||
@@ -3,12 +3,6 @@ from logging import Logger
|
||||
from traceback import StackSummary
|
||||
from typing import Any
|
||||
|
||||
from ..exceptions.exceptions import AlreadyEndedException as AlreadyEndedException
|
||||
from ..utils.compat import annotation_value_types as annotation_value_types, string_types as string_types
|
||||
from ..utils.conversion import metadata_to_dict as metadata_to_dict
|
||||
from . import http as http
|
||||
from .throwable import Throwable as Throwable
|
||||
|
||||
log: Logger
|
||||
ORIGIN_TRACE_HEADER_ATTR_KEY: str
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
from ..exceptions.exceptions import FacadeSegmentMutationException as FacadeSegmentMutationException
|
||||
from .segment import Segment as Segment
|
||||
from .segment import Segment
|
||||
|
||||
MUTATION_UNSUPPORTED_MESSAGE: str
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
from types import TracebackType
|
||||
from typing import Any
|
||||
|
||||
from ..exceptions.exceptions import SegmentNameMissingException as SegmentNameMissingException
|
||||
from ..recorder import AWSXRayRecorder
|
||||
from ..utils.atomic_counter import AtomicCounter as AtomicCounter
|
||||
from .entity import Entity as Entity
|
||||
from ..utils.atomic_counter import AtomicCounter
|
||||
from .entity import Entity
|
||||
from .subsegment import Subsegment
|
||||
from .traceid import TraceId as TraceId
|
||||
|
||||
ORIGIN_TRACE_HEADER_ATTR_KEY: str
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@ from types import TracebackType
|
||||
from typing import Any
|
||||
|
||||
from ...core import AWSXRayRecorder
|
||||
from ..exceptions.exceptions import SegmentNotFoundException as SegmentNotFoundException
|
||||
from .entity import Entity as Entity
|
||||
from .entity import Entity
|
||||
from .segment import Segment
|
||||
|
||||
SUBSEGMENT_RECORDING_ATTRIBUTE: str
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
from ..utils.compat import string_types as string_types
|
||||
|
||||
log: Any
|
||||
|
||||
class Throwable:
|
||||
|
||||
@@ -2,10 +2,6 @@ from collections.abc import Iterable
|
||||
from logging import Logger
|
||||
from typing import Any
|
||||
|
||||
from aws_xray_sdk import global_sdk_config as global_sdk_config
|
||||
|
||||
from .utils.compat import PY2 as PY2, is_classmethod as is_classmethod, is_instance_method as is_instance_method
|
||||
|
||||
log: Logger
|
||||
SUPPORTED_MODULES: Any
|
||||
NO_DOUBLE_PATCH: Any
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
from ..exceptions.exceptions import MissingPluginNames as MissingPluginNames
|
||||
|
||||
module_prefix: str
|
||||
PLUGIN_MAPPING: Any
|
||||
|
||||
|
||||
@@ -3,27 +3,15 @@ from collections.abc import Callable, Iterable
|
||||
from logging import Logger
|
||||
from typing import Any
|
||||
|
||||
from aws_xray_sdk import global_sdk_config as global_sdk_config
|
||||
from aws_xray_sdk.version import VERSION as VERSION
|
||||
|
||||
from .context import Context as Context
|
||||
from .daemon_config import DaemonConfig as DaemonConfig
|
||||
from .emitters.udp_emitter import UDPEmitter as UDPEmitter
|
||||
from .exceptions.exceptions import (
|
||||
SegmentNameMissingException as SegmentNameMissingException,
|
||||
SegmentNotFoundException as SegmentNotFoundException,
|
||||
)
|
||||
from .lambda_launcher import check_in_lambda as check_in_lambda
|
||||
from .models.default_dynamic_naming import DefaultDynamicNaming as DefaultDynamicNaming
|
||||
from .models.dummy_entities import DummySegment as DummySegment, DummySubsegment as DummySubsegment
|
||||
from .models.segment import Segment as Segment, SegmentContextManager as SegmentContextManager
|
||||
from .models.subsegment import Subsegment as Subsegment, SubsegmentContextManager as SubsegmentContextManager
|
||||
from .plugins.utils import get_plugin_modules as get_plugin_modules
|
||||
from .context import Context
|
||||
from .emitters.udp_emitter import UDPEmitter
|
||||
from .models.default_dynamic_naming import DefaultDynamicNaming
|
||||
from .models.dummy_entities import DummySegment, DummySubsegment
|
||||
from .models.segment import Segment, SegmentContextManager
|
||||
from .models.subsegment import Subsegment, SubsegmentContextManager
|
||||
from .sampling.local.sampler import LocalSampler
|
||||
from .sampling.sampler import DefaultSampler
|
||||
from .streaming.default_streaming import DefaultStreaming as DefaultStreaming
|
||||
from .utils import stacktrace as stacktrace
|
||||
from .utils.compat import string_types as string_types
|
||||
from .streaming.default_streaming import DefaultStreaming
|
||||
|
||||
log: Logger
|
||||
TRACING_NAME_KEY: str
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
from datetime import datetime as datetime
|
||||
|
||||
from aws_xray_sdk.core.context import Context as Context
|
||||
from aws_xray_sdk.core.models.dummy_entities import DummySegment as DummySegment
|
||||
from aws_xray_sdk.core.utils.compat import PY2 as PY2
|
||||
|
||||
from .sampling_rule import SamplingRule as SamplingRule
|
||||
|
||||
class ServiceConnector:
|
||||
def __init__(self) -> None: ...
|
||||
def fetch_sampling_rules(self): ...
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from ..utils.search_pattern import wildcard_match as wildcard_match
|
||||
from .reservoir import Reservoir as Reservoir
|
||||
|
||||
class SamplingRule:
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
|
||||
PY2: Literal[False]
|
||||
PY35: Literal[True]
|
||||
annotation_value_types: Any
|
||||
string_types = str
|
||||
|
||||
def is_classmethod(func): ...
|
||||
def is_instance_method(parent_class, func_name, func): ...
|
||||
|
||||
Reference in New Issue
Block a user