|
| 1 | +```py |
| 2 | +namespace azure.monitor.opentelemetry.exporter |
| 3 | + |
| 4 | + class azure.monitor.opentelemetry.exporter.ApplicationInsightsSampler(Sampler): |
| 5 | + |
| 6 | + def __init__(self, sampling_ratio: float = 1.0): ... |
| 7 | + |
| 8 | + def get_description(self) -> str: ... |
| 9 | + |
| 10 | + def should_sample( |
| 11 | + self, |
| 12 | + parent_context: Optional[Context], |
| 13 | + trace_id: int, |
| 14 | + name: str, |
| 15 | + kind: Optional[SpanKind] = None, |
| 16 | + attributes: Attributes = None, |
| 17 | + links: Optional[Sequence[Link]] = None, |
| 18 | + trace_state: Optional[TraceState] = None |
| 19 | + ) -> SamplingResult: ... |
| 20 | + |
| 21 | + |
| 22 | + class azure.monitor.opentelemetry.exporter.AzureMonitorLogExporter(BaseExporter, LogRecordExporter): |
| 23 | + |
| 24 | + def __init__( |
| 25 | + self, |
| 26 | + *, |
| 27 | + api_version: Optional[str] = ..., |
| 28 | + connection_string: Optional[str] = ..., |
| 29 | + credential: Optional[ManagedIdentityCredential/ClientSecretCredential] = ..., |
| 30 | + disable_offline_storage: Optional[bool] = ..., |
| 31 | + max_envelopes_per_second: Optional[int] = ..., |
| 32 | + storage_directory: Optional[str] = ..., |
| 33 | + **kwargs: Any |
| 34 | + ) -> None: ... |
| 35 | + |
| 36 | + @classmethod |
| 37 | + def from_connection_string( |
| 38 | + cls, |
| 39 | + conn_str: str, |
| 40 | + *, |
| 41 | + api_version: Optional[str] = ..., |
| 42 | + **kwargs: Any |
| 43 | + ) -> AzureMonitorLogExporter: ... |
| 44 | + |
| 45 | + def export( |
| 46 | + self, |
| 47 | + batch: Sequence[ReadableLogRecord], |
| 48 | + **kwargs: Any |
| 49 | + ) -> LogRecordExportResult: ... |
| 50 | + |
| 51 | + def shutdown(self) -> None: ... |
| 52 | + |
| 53 | + |
| 54 | + class azure.monitor.opentelemetry.exporter.AzureMonitorMetricExporter(BaseExporter, MetricExporter): |
| 55 | + |
| 56 | + def __init__(self, **kwargs: Any) -> None: ... |
| 57 | + |
| 58 | + @classmethod |
| 59 | + def from_connection_string( |
| 60 | + cls, |
| 61 | + conn_str: str, |
| 62 | + *, |
| 63 | + api_version: Optional[str] = ..., |
| 64 | + **kwargs: Any |
| 65 | + ) -> AzureMonitorMetricExporter: ... |
| 66 | + |
| 67 | + def export( |
| 68 | + self, |
| 69 | + metrics_data: OTMetricsData, |
| 70 | + timeout_millis: float = 10000, |
| 71 | + **kwargs: Any |
| 72 | + ) -> MetricExportResult: ... |
| 73 | + |
| 74 | + def force_flush(self, timeout_millis: float = 10000) -> bool: ... |
| 75 | + |
| 76 | + def shutdown( |
| 77 | + self, |
| 78 | + timeout_millis: float = 30000, |
| 79 | + **kwargs: Any |
| 80 | + ) -> None: ... |
| 81 | + |
| 82 | + |
| 83 | + class azure.monitor.opentelemetry.exporter.AzureMonitorTraceExporter(BaseExporter, SpanExporter): |
| 84 | + |
| 85 | + def __init__(self, **kwargs: Any): ... |
| 86 | + |
| 87 | + @classmethod |
| 88 | + def from_connection_string( |
| 89 | + cls, |
| 90 | + conn_str: str, |
| 91 | + *, |
| 92 | + api_version: Optional[str] = ..., |
| 93 | + **kwargs: Any |
| 94 | + ) -> AzureMonitorTraceExporter: ... |
| 95 | + |
| 96 | + def export( |
| 97 | + self, |
| 98 | + spans: Sequence[ReadableSpan], |
| 99 | + **_kwargs: Any |
| 100 | + ) -> SpanExportResult: ... |
| 101 | + |
| 102 | + def shutdown(self) -> None: ... |
| 103 | + |
| 104 | + |
| 105 | + class azure.monitor.opentelemetry.exporter.RateLimitedSampler(Sampler): |
| 106 | + |
| 107 | + def __init__(self, target_spans_per_second_limit: float): ... |
| 108 | + |
| 109 | + def get_description(self) -> str: ... |
| 110 | + |
| 111 | + def should_sample( |
| 112 | + self, |
| 113 | + parent_context: Optional[Context], |
| 114 | + trace_id: int, |
| 115 | + name: str, |
| 116 | + kind: Optional[SpanKind] = None, |
| 117 | + attributes: Attributes = None, |
| 118 | + links: Optional[Sequence[Link]] = None, |
| 119 | + trace_state: Optional[TraceState] = None |
| 120 | + ) -> SamplingResult: ... |
| 121 | + |
| 122 | + |
| 123 | +namespace azure.monitor.opentelemetry.exporter.statsbeat |
| 124 | + |
| 125 | + def azure.monitor.opentelemetry.exporter.statsbeat.collect_statsbeat_metrics(exporter: BaseExporter) -> None: ... |
| 126 | + |
| 127 | + |
| 128 | + def azure.monitor.opentelemetry.exporter.statsbeat.shutdown_statsbeat_metrics() -> bool: ... |
| 129 | + |
| 130 | + |
| 131 | + class azure.monitor.opentelemetry.exporter.statsbeat.StatsbeatConfig: |
| 132 | + |
| 133 | + def __eq__(self, other: object) -> bool: ... |
| 134 | + |
| 135 | + def __hash__(self) -> int: ... |
| 136 | + |
| 137 | + def __init__( |
| 138 | + self, |
| 139 | + endpoint: str, |
| 140 | + region: str, |
| 141 | + instrumentation_key: str, |
| 142 | + disable_offline_storage: bool = False, |
| 143 | + credential: Optional[Any] = None, |
| 144 | + distro_version: Optional[str] = None, |
| 145 | + connection_string: Optional[str] = None |
| 146 | + ) -> None: ... |
| 147 | + |
| 148 | + @classmethod |
| 149 | + def from_config( |
| 150 | + cls, |
| 151 | + base_config: StatsbeatConfig, |
| 152 | + config_dict: Dict[str, str] |
| 153 | + ) -> Optional[StatsbeatConfig]: ... |
| 154 | + |
| 155 | + @classmethod |
| 156 | + def from_exporter(cls, exporter: Any) -> Optional[StatsbeatConfig]: ... |
| 157 | + |
| 158 | + |
| 159 | + class azure.monitor.opentelemetry.exporter.statsbeat.StatsbeatManager(metaclass=Singleton): |
| 160 | + |
| 161 | + def __init__(self) -> None: ... |
| 162 | + |
| 163 | + def get_current_config(self) -> Optional[StatsbeatConfig]: ... |
| 164 | + |
| 165 | + def initialize(self, config: StatsbeatConfig) -> bool: ... |
| 166 | + |
| 167 | + def is_initialized(self) -> bool: ... |
| 168 | + |
| 169 | + def shutdown(self) -> bool: ... |
| 170 | + |
| 171 | + |
| 172 | +namespace azure.monitor.opentelemetry.exporter.statsbeat.customer |
| 173 | + |
| 174 | + def azure.monitor.opentelemetry.exporter.statsbeat.customer.collect_customer_sdkstats(exporter: BaseExporter) -> None: ... |
| 175 | + |
| 176 | + |
| 177 | + def azure.monitor.opentelemetry.exporter.statsbeat.customer.get_customer_stats_manager() -> CustomerSdkStatsManager: ... |
| 178 | + |
| 179 | + |
| 180 | + def azure.monitor.opentelemetry.exporter.statsbeat.customer.shutdown_customer_sdkstats_metrics() -> None: ... |
| 181 | + |
| 182 | + |
| 183 | +``` |
0 commit comments