diff --git a/CHANGELOG.md b/CHANGELOG.md index ba42f246..6c9ecd06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,9 @@ Models can now be stored alongside their pipelines in the same repository, strea - ~~accept `pyannote/wespeaker-voxceleb-resnet34-LM` model user agreement~~ - load pipeline with `Pipeline.from_pretrained("pyannote/speaker-diarization-3.1", token=True)` +#### Telemetry + +With the optional telemetry feature in `pyannote.audio`, you can choose to send anonymous usage metrics to help the `pyannote` team improve the library. ### Breaking changes diff --git a/README.md b/README.md index 319494d5..a0dde477 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ Consider switching to [

- ## Highlights - :exploding_head: state-of-the-art performance (see [Benchmark](#benchmark)) @@ -106,6 +105,77 @@ __[Diarization error rate](http://pyannote.github.io/pyannote-metrics/reference. __Processing speed on a NVIDIA H100 80GB HBM3__ +## Telemetry + +With the optional telemetry feature in `pyannote.audio`, you can choose to send anonymous usage metrics to help the `pyannote` team improve the library. + +### What we track + +For each call to `Pipeline.from_pretrained({origin})` (or `Model.from_pretrained({origin})`), we track information about `{origin}` in the following privacy-preserving way: + +* If `{origin}` is an official `pyannote` or `pyannoteAI` pipeline (or model) hosted on `Huggingface`, we track it as `{origin}`. +* If `{origin}` is a pipeline (or model) hosted on `Huggingface` from any other organization, we track it as `huggingface`. +* If `{origin}` is a path to a local file or directory, we track it as `local`. + +We also track the pipeline Python class (e.g. `pyannote.audio.pipelines.SpeakerDiarization`). + +For each file processed with a pipeline, we track +* the file duration in seconds +* the value of `num_speakers`, `min_speakers`, and `max_speakers` for speaker diarization pipelines + +**We do not track any information that could identify who the user is.** + +### Configuring telemetry + +Telemetry can be configured in three ways: +1. Using an environment variable +2. Within the current Python session only +3. Globally across sessions + +All of these options will modify the value of the environment variable for consistency. +If the environment variable is not set, `pyannote.audio` will read the default value in the telemetry config. +The default config can also be changed from Python. + +#### Using environment variable + +You can control telemetry by setting the `PYANNOTE_METRICS_ENABLED` environment variable: + +```bash +# enable metrics +export PYANNOTE_METRICS_ENABLED=1 + +# disable metrics +export PYANNOTE_METRICS_ENABLED=0 +``` + +#### For current session + +To control telemetry for your current Python kernel session: + +```python +from pyannote.audio.telemetry import set_telemetry_metrics + +# enable metrics for current session +set_telemetry_metrics(True) + +# disable metrics for current session +set_telemetry_metrics(False) +``` + +#### Global configuration + +To set telemetry preferences that persist across sessions: + +```python +from pyannote.audio.telemetry import set_telemetry_metrics + +# enable metrics globally +set_telemetry_metrics(True, save_choice_as_default=True) + +# disable metrics globally +set_telemetry_metrics(False, save_choice_as_default=True) +``` + ## Documentation - [Changelog](CHANGELOG.md) diff --git a/pyproject.toml b/pyproject.toml index a4aded54..2770aa3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,20 +2,19 @@ name = "pyannote-audio" description = "State-of-the-art speaker diarization toolkit" readme = "README.md" -authors = [ - { name = "Hervé BREDIN", email = "herve@pyannote.ai" } -] +authors = [{ name = "Hervé BREDIN", email = "herve@pyannote.ai" }] requires-python = ">=3.10" -dynamic = [ - "version", -] +dynamic = ["version"] dependencies = [ "asteroid-filterbanks>=0.4.0", "einops>=0.8.1", "huggingface-hub>=0.28.1", "lightning>=2.5.0.post0", + "opentelemetry-api==1.34.0", + "opentelemetry-sdk==1.34.0", + "opentelemetry-exporter-otlp==1.34.0", "pyannote-core>=6.0.0rc1", "pyannote-database>=6.0.0rc1", "pyannote-metrics>=4.0.0rc1", @@ -36,25 +35,11 @@ dependencies = [ pyannote-audio = "pyannote.audio.__main__:app" [project.optional-dependencies] -test = [ - "papermill>=2.6.0", - "pytest>=8.3.4", - "speechbrain>=1.0.2", -] -doc = [ - "sphinx-rtd-theme>=3.0.2", - "sphinx>=8.1.3", -] -cli = [ - "typer>=0.15.1", -] -separation = [ - "asteroid>=0.5.2", - "transformers>=4.48.3", -] -dev = [ - "ipython>=8.32.0", -] +test = ["papermill>=2.6.0", "pytest>=8.3.4", "speechbrain>=1.0.2"] +doc = ["sphinx-rtd-theme>=3.0.2", "sphinx>=8.1.3"] +cli = ["typer>=0.15.1"] +separation = ["asteroid>=0.5.2", "transformers>=4.48.3"] +dev = ["ipython>=8.32.0"] [build-system] requires = ["hatchling", "hatch-vcs"] @@ -67,6 +52,4 @@ source = "vcs" packages = ["src/pyannote"] [dependency-groups] -dev = [ - "ipykernel>=6.29.5", -] +dev = ["ipykernel>=6.29.5"] diff --git a/src/pyannote/audio/core/model.py b/src/pyannote/audio/core/model.py index bd31aaa3..a84d26c1 100644 --- a/src/pyannote/audio/core/model.py +++ b/src/pyannote/audio/core/model.py @@ -52,6 +52,7 @@ from pyannote.audio.core.task import ( from pyannote.audio.utils.hf_hub import AssetFileName, download_from_hf_hub from pyannote.audio.utils.multi_task import map_with_specifications from pyannote.audio.utils.dependencies import check_dependencies +from pyannote.audio.telemetry import track_model_init # NOTE: needed to backward compatibility to load models trained before pyannote.audio 3.x @@ -551,6 +552,8 @@ class Model(lightning.LightningModule): if isinstance(checkpoint, io.BytesIO) or os.path.isfile(checkpoint): # if checkpoint is a BytesIO object or a file path, use it as is path_to_model_checkpoint = checkpoint + otel_origin: str = "local" + # if checkpoint is a directory, look for the model checkpoint # inside this directory (or inside a subfolder if specified) @@ -561,11 +564,13 @@ class Model(lightning.LightningModule): ) else: path_to_model_checkpoint = Path(checkpoint) / AssetFileName.Model.value + otel_origin: str = "local" # otherwise, assume that the checkpoint is hosted on HF model hub else: + checkpoint = str(checkpoint) _, _, path_to_model_checkpoint = download_from_hf_hub( - str(checkpoint), + checkpoint, AssetFileName.Model, subfolder=subfolder, cache_dir=cache_dir, @@ -573,6 +578,13 @@ class Model(lightning.LightningModule): ) if path_to_model_checkpoint is None: return None + + otel_origin: str = ( + checkpoint + if checkpoint.lower().startswith(("pyannote/", "pyannoteai/")) + else "huggingface" + ) + if map_location is None: @@ -628,4 +640,9 @@ class Model(lightning.LightningModule): raise e + # save model origin (HF, local, etc) as attribute for telemetry purposes + model._otel_origin = otel_origin + track_model_init(model) + + return model diff --git a/src/pyannote/audio/core/pipeline.py b/src/pyannote/audio/core/pipeline.py index 4958943e..20922077 100644 --- a/src/pyannote/audio/core/pipeline.py +++ b/src/pyannote/audio/core/pipeline.py @@ -43,7 +43,7 @@ from pyannote.audio.core.model import Model from pyannote.audio.utils.hf_hub import AssetFileName, download_from_hf_hub from pyannote.audio.utils.reproducibility import fix_reproducibility from pyannote.audio.utils.dependencies import check_dependencies - +from pyannote.audio.telemetry import track_pipeline_init, track_pipeline_apply def expand_subfolders( config, @@ -156,17 +156,20 @@ class Pipeline(_Pipeline): model_id = Path(checkpoint) config_yml = model_id / AssetFileName.Pipeline.value revision = None + otel_origin: str = "local" # if checkpoint is a file, assume it is the pipeline checkpoint elif os.path.isfile(checkpoint): model_id = Path(checkpoint).parent config_yml = checkpoint revision = None + otel_origin: str = "local" # otherwise, assume that the checkpoint is hosted on HF model hub else: + checkpoint = str(checkpoint) model_id, revision, config_yml = download_from_hf_hub( - str(checkpoint), + checkpoint, AssetFileName.Pipeline, cache_dir=cache_dir, token=token, @@ -174,6 +177,12 @@ class Pipeline(_Pipeline): if config_yml is None: return None + otel_origin: str = ( + checkpoint + if checkpoint.lower().startswith(("pyannote/", "pyannoteai/")) + else "huggingface" + ) + with open(config_yml, "r") as fp: config = yaml.load(fp, Loader=yaml.SafeLoader) @@ -208,6 +217,11 @@ class Pipeline(_Pipeline): params.setdefault("cache_dir", cache_dir) pipeline = Klass(**params) + # save pipeline origin (HF, local, etc) and class name as attributes for telemetry purposes + pipeline._otel_origin = otel_origin + pipeline._otel_name = pipeline_name + track_pipeline_init(pipeline) + # freeze parameters if "freeze" in config: params = config["freeze"] @@ -395,6 +409,10 @@ class Pipeline(_Pipeline): if hasattr(self, "preprocessors"): file = ProtocolFile(file, lazy=self.preprocessors) + # send file duration to telemetry as well as + # requested number of speakers in case of diarization + track_pipeline_apply(self, file, **kwargs) + return self.apply(file, **kwargs) def to(self, device: torch.device): diff --git a/src/pyannote/audio/telemetry/__init__.py b/src/pyannote/audio/telemetry/__init__.py new file mode 100644 index 00000000..c3ff8d83 --- /dev/null +++ b/src/pyannote/audio/telemetry/__init__.py @@ -0,0 +1,15 @@ +from .metrics import ( + set_opentelemetry_log_level, + set_telemetry_metrics, + track_model_init, + track_pipeline_init, + track_pipeline_apply, +) + +__all__ = [ + "set_telemetry_metrics", + "set_opentelemetry_log_level", + "track_model_init", + "track_pipeline_init", + "track_pipeline_apply", +] diff --git a/src/pyannote/audio/telemetry/config.yaml b/src/pyannote/audio/telemetry/config.yaml new file mode 100644 index 00000000..6a8e05e7 --- /dev/null +++ b/src/pyannote/audio/telemetry/config.yaml @@ -0,0 +1,3 @@ +metrics_enabled: true +otlp_endpoint: https://otel.pyannote.ai/v1/metrics +telemetry_log_level: CRITICAL \ No newline at end of file diff --git a/src/pyannote/audio/telemetry/metrics.py b/src/pyannote/audio/telemetry/metrics.py new file mode 100644 index 00000000..a56fb401 --- /dev/null +++ b/src/pyannote/audio/telemetry/metrics.py @@ -0,0 +1,277 @@ +# Copyright (c) 2025 - Pruna AI GmbH. All rights reserved. +# Copyright (c) 2025 - pyannoteAI + +"""OpenTelemetry metrics for tracking function usage. + +Metrics can be enabled/disabled for the current python kernel: + +>>> from pyannote.audio.telemetry.metrics import set_telemetry_metrics +>>> set_telemetry_metrics(True) # enable +>>> set_telemetry_metrics(False) # disable + +To activate / deactivate globally: + +>>> set_telemetry_metrics(True, save_choice_as_default=True) +""" + +from __future__ import annotations + +import logging +import os +from pathlib import Path +from typing import Any +from uuid import uuid4 + +import yaml +from opentelemetry import metrics +from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter +from opentelemetry.sdk.metrics import MeterProvider +from opentelemetry.sdk.metrics.export import PeriodicExportingMetricReader +from pyannote.audio import __version__ +import numpy as np + +CONFIG_FILE = Path(__file__).parent / "config.yaml" + +# Load initial configuration +with open(CONFIG_FILE) as config_file_stream: + CONFIG = yaml.safe_load(config_file_stream) + +OTLP_ENDPOINT = CONFIG["otlp_endpoint"] +OTLP_HEADERS = CONFIG.get("otlp_headers", {}) +SESSION_ID = str(uuid4()) +DEFAULT_LOG_LEVEL = CONFIG["telemetry_log_level"] + +# Initialize metrics with basic setup +exporter = OTLPMetricExporter(endpoint=OTLP_ENDPOINT, headers=OTLP_HEADERS) +reader = PeriodicExportingMetricReader(exporter, export_interval_millis=60000) + +provider = MeterProvider(metric_readers=[reader]) +metrics.set_meter_provider(provider) +meter = metrics.get_meter(__name__) + +# track model initialization +model_init_counter = meter.create_counter( + name="oss-model-init", + description="Number of model initializations", + unit="1", +) + +def track_model_init(model: "Model") -> None: + """ + Increment the model initialization counter. + + Parameters + ---------- + model : Model + Instantiated model + """ + if is_metrics_enabled(): + model_init_counter.add( + 1, + { + "origin": getattr(model, "_otel_origin", "unknown"), + "version": __version__, + "session_id": SESSION_ID, + }, + ) + + +# track pipeline initialization +pipeline_init_counter = meter.create_counter( + name="oss-pipeline-init", + description="Number of pipeline initializations", + unit="1", +) + + +def track_pipeline_init(pipeline: "Pipeline") -> None: + """ + Track pipeline initialization + + Parameters + ---------- + pipeline : Pipeline + Instantiated pipeline + """ + if is_metrics_enabled(): + pipeline_init_counter.add( + 1, + { + "origin": getattr(pipeline, "_otel_origin", "unknown"), + "name": getattr(pipeline, "_otel_name", "unknown"), + "version": __version__, + "session_id": SESSION_ID, + }, + ) + +# track pipeline application +file_duration_bucket = meter.create_histogram( + name="oss-pipeline-apply", + explicit_bucket_boundaries_advisory=[ + 10, # 10 seconds + 20, # 20 seconds + 30, # 30 seconds + 60, # 1 minute + 120, # 2 minutes + 300, # 5 minutes + 600, # 10 minutes + 1800, # 30 minutes + 3600, # 1 hour + 7200, # 2 hours + 14400, # 4 hours + 28800, # 8 hours + 86400, # 24 hours + ], + description="Duration of file in seconds", + unit="s", +) + +def track_pipeline_apply( + pipeline: "Pipeline", + file: "AudioFile", + num_speakers: int | None = None, + min_speakers: int | None = None, + max_speakers: int | None = None, + **kwargs: Any, +) -> None: + """ + Track duration of files processed by pipelines + + Parameters + ---------- + pipeline : Pipeline + The pipeline being applied. + file : AudioFile + The audio file being processed by the pipeline. + num_speakers, min_speakers, max_speakers : int, optional + Requested number of speakers in the audio file, if applicable. + """ + + if is_metrics_enabled(): + from pyannote.audio.core.io import Audio + duration: float = Audio().get_duration(file) + + from pyannote.audio.pipelines.utils.diarization import set_num_speakers + num_speakers, min_speakers, max_speakers = set_num_speakers( + num_speakers=num_speakers, + min_speakers=min_speakers, + max_speakers=max_speakers, + ) + + file_duration_bucket.record( + duration, + { + "origin": getattr(pipeline, "_otel_origin", "unknown"), + "name": getattr(pipeline, "_otel_name", "unknown"), + "version": __version__, + "session_id": SESSION_ID, + "num_speakers": num_speakers, + "min_speakers": min_speakers, + "max_speakers": max_speakers if np.isfinite(max_speakers) else "inf", + }, + ) + +# Set initial metrics enabled state in env var if not already set +if "PYANNOTE_METRICS_ENABLED" not in os.environ: + os.environ["PYANNOTE_METRICS_ENABLED"] = str(CONFIG["metrics_enabled"]).lower() + + +def is_metrics_enabled() -> bool: + """ + Check if metrics are enabled. + + Returns + ------- + bool + True if metrics are enabled, False otherwise. + """ + + if "PYANNOTE_METRICS_ENABLED" not in os.environ: + raise ValueError("PYANNOTE_METRICS_ENABLED environment variable is not set.") + + return os.environ["PYANNOTE_METRICS_ENABLED"].lower() == "true" + + +def _save_metrics_config(enabled: bool) -> None: + """ + Save metrics state to the configuration file. + + Parameters + ---------- + enabled : bool + Whether metrics should be enabled or disabled. + """ + with open(CONFIG_FILE) as f: + config = yaml.safe_load(f) + + config["metrics_enabled"] = enabled + + with open(CONFIG_FILE, "w") as f: + yaml.safe_dump(config, f) + + +def set_telemetry_metrics(enabled: bool, save_choice_as_default: bool = False) -> None: + """ + Enable or disable metrics globally. + + Parameters + ---------- + enabled : bool + Whether to enable or disable the metrics. + save_choice_as_default : bool, optional + If True, saves the state to the configuration file as the default value. + """ + enabled = bool(enabled) + os.environ["PYANNOTE_METRICS_ENABLED"] = str(enabled).lower() + if save_choice_as_default: + _save_metrics_config(enabled) + + +def set_opentelemetry_log_level(level: str) -> None: + """ + Set the log level for OpenTelemetry loggers to control error visibility. + + This can be used to suppress error messages when telemetry fails. + + Parameters + ---------- + level : str + The log level to set. Must be one of: 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'. + + - 'DEBUG': Show all messages including detailed debugging information + - 'INFO': Show informational messages, warnings and errors + - 'WARNING': Show only warnings and errors (default) + - 'ERROR': Show only errors + - 'CRITICAL': Show only critical errors + + Raises + ------ + ValueError + If the provided level is not a valid logging level. + + Examples + -------- + To suppress most error messages: + + >>> set_opentelemetry_log_level('ERROR') + + To show all messages: + + >>> set_opentelemetry_log_level('DEBUG') + """ + valid_levels = ("DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL") + level = level.upper() + + if level not in valid_levels: + raise ValueError(f"Log level must be one of: {', '.join(valid_levels)}") + + # Configure OpenTelemetry loggers + logging_level = getattr(logging, level) + + # Set log level for all OpenTelemetry loggers + for logger_name in logging.root.manager.loggerDict: + if logger_name.startswith("opentelemetry"): + logging.getLogger(logger_name).setLevel(logging_level) + + +set_opentelemetry_log_level(DEFAULT_LOG_LEVEL) diff --git a/uv.lock b/uv.lock index 8bd3e261..de68e5e1 100644 --- a/uv.lock +++ b/uv.lock @@ -4,7 +4,8 @@ requires-python = ">=3.10" resolution-markers = [ "python_full_version < '3.11'", "python_full_version == '3.11.*'", - "python_full_version >= '3.12'", + "python_full_version >= '3.13'", + "python_full_version == '3.12.*'", ] [[package]] @@ -719,6 +720,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/da/71/ae30dadffc90b9006d77af76b393cb9dfbfc9629f339fc1574a1c52e6806/future-1.0.0-py3-none-any.whl", hash = "sha256:929292d34f5872e70396626ef385ec22355a1fae8ad29e1a734c3e43f9fbc216", size = 491326 }, ] +[[package]] +name = "googleapis-common-protos" +version = "1.70.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "protobuf" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/39/24/33db22342cf4a2ea27c9955e6713140fedd51e8b141b5ce5260897020f1a/googleapis_common_protos-1.70.0.tar.gz", hash = "sha256:0e1b44e0ea153e6594f9f394fef15193a68aaaea2d843f83e2742717ca753257", size = 145903 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/86/f1/62a193f0227cf15a920390abe675f386dec35f7ae3ffe6da582d3ade42c7/googleapis_common_protos-1.70.0-py3-none-any.whl", hash = "sha256:b8bfcca8c25a2bb253e0e0b0adaf8c00773e5e6af6fd92397576680b807e0fd8", size = 294530 }, +] + [[package]] name = "greenlet" version = "3.1.1" @@ -863,6 +876,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/ff/62/85c4c919272577931d407be5ba5d71c20f0b616d31a0befe0ae45bb79abd/imagesize-1.4.1-py2.py3-none-any.whl", hash = "sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b", size = 8769 }, ] +[[package]] +name = "importlib-metadata" +version = "8.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "zipp" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/76/66/650a33bd90f786193e4de4b3ad86ea60b53c89b669a5c7be931fac31cdb0/importlib_metadata-8.7.0.tar.gz", hash = "sha256:d13b81ad223b890aa16c5471f2ac3056cf76c5f10f82d6f9292f0b415f389000", size = 56641 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/b0/36bd937216ec521246249be3bf9855081de4c5e06a0c9b4219dbeda50373/importlib_metadata-8.7.0-py3-none-any.whl", hash = "sha256:e5dd1551894c77868a30651cef00984d50e1002d06942a7101d34870c5f02afd", size = 27656 }, +] + [[package]] name = "iniconfig" version = "2.0.0" @@ -1625,6 +1650,119 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/87/20/199b8713428322a2f22b722c62b8cc278cc53dffa9705d744484b5035ee9/nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:781e950d9b9f60d8241ccea575b32f5105a5baf4c2351cab5256a24869f12a1a", size = 99144 }, ] +[[package]] +name = "opentelemetry-api" +version = "1.34.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "importlib-metadata" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/4c/0b/4433d3f18301b541d98ea775fcbeab817fc7f962e980a75d17c967471b64/opentelemetry_api-1.34.0.tar.gz", hash = "sha256:48d167589134799093005b7f7f347c69cc67859c693b17787f334fbe8871279f", size = 64983 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/98/f9/d50ba0c92a97a6d0861357d0ecd67e850d319ac7e7be1895cc236b6ed2b5/opentelemetry_api-1.34.0-py3-none-any.whl", hash = "sha256:390b81984affe4453180820ca518de55e3be051111e70cc241bb3b0071ca3a2c", size = 65768 }, +] + +[[package]] +name = "opentelemetry-exporter-otlp" +version = "1.34.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "opentelemetry-exporter-otlp-proto-grpc" }, + { name = "opentelemetry-exporter-otlp-proto-http" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/27/3c/5670ffcb88691f8a29b753d2639550cf6726be4bd5d101373294419b7992/opentelemetry_exporter_otlp-1.34.0.tar.gz", hash = "sha256:d23df4fc22e0a863db2b2117c5a5780d5fa3bbeb65fdce9848d1f98fc3ace4cd", size = 6176 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/9e/53cf14827b7e3084f28c73934f899cd3a3dde22efc3fe869a0ff7151ffd4/opentelemetry_exporter_otlp-1.34.0-py3-none-any.whl", hash = "sha256:73e2465560ef4e932b5348598593db202621eb666c34349c9cefc90a19aaf5c6", size = 7039 }, +] + +[[package]] +name = "opentelemetry-exporter-otlp-proto-common" +version = "1.34.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "opentelemetry-proto" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/81/12/0d549f53e70a8297c1817705febe2bdb81479dc74c5b2496014f35f74455/opentelemetry_exporter_otlp_proto_common-1.34.0.tar.gz", hash = "sha256:5916d9ceda8c733adbec5e9cecf654fbf359e9f619ff43214277076fba888557", size = 20818 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e9/78/7bfd2d027aa36a68fff4019950569f8cda27793441098cda0a82ea2ecb89/opentelemetry_exporter_otlp_proto_common-1.34.0-py3-none-any.whl", hash = "sha256:a5ab7a9b7c3c7ba957c8ddcb08c0c93b1d732e066f544682a250ecf4d7a9ceef", size = 18835 }, +] + +[[package]] +name = "opentelemetry-exporter-otlp-proto-grpc" +version = "1.34.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "googleapis-common-protos" }, + { name = "grpcio" }, + { name = "opentelemetry-api" }, + { name = "opentelemetry-exporter-otlp-proto-common" }, + { name = "opentelemetry-proto" }, + { name = "opentelemetry-sdk" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/51/d3/2d1037ba79cfd0cc01258ebf4ec5140d6cec5c337d885ed2f07502d2a1d3/opentelemetry_exporter_otlp_proto_grpc-1.34.0.tar.gz", hash = "sha256:a634425340f506d5ebf641c92d88eb873754d4c5259b5b816afb234c6f87b37d", size = 22565 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bd/42/094c93ffda2834631a121cdc89af80c7a9f2ee6249a4498d7f5151beb57e/opentelemetry_exporter_otlp_proto_grpc-1.34.0-py3-none-any.whl", hash = "sha256:31c41017af85833242d49beb07bde7341b0a145f0b898ee383f3e3019037afb1", size = 18612 }, +] + +[[package]] +name = "opentelemetry-exporter-otlp-proto-http" +version = "1.34.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "googleapis-common-protos" }, + { name = "opentelemetry-api" }, + { name = "opentelemetry-exporter-otlp-proto-common" }, + { name = "opentelemetry-proto" }, + { name = "opentelemetry-sdk" }, + { name = "requests" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/99/80/c382acdddc75d440a4bc5283a1cda997435985031ec2d978d99ab3ef9461/opentelemetry_exporter_otlp_proto_http-1.34.0.tar.gz", hash = "sha256:3f674dbc32549a2fae413a77428d59b38e8c8b4caaf7f594ae2c2f8d2f018014", size = 15353 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/69/c5/468c245231feff02ac41573a1d73b1bbd5ff0412365f441de785a4fa178c/opentelemetry_exporter_otlp_proto_http-1.34.0-py3-none-any.whl", hash = "sha256:b3cc9dd5152fae2dd32f3566bbfbc7d26d6ab3ef6c6b3f85bc9f6adc059d713f", size = 17743 }, +] + +[[package]] +name = "opentelemetry-proto" +version = "1.34.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "protobuf" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/95/19/45adb533d0a34990942d12eefb2077d59b22958940c71484a45e694f5dd7/opentelemetry_proto-1.34.0.tar.gz", hash = "sha256:73e40509b692630a47192888424f7e0b8fb19d9ecf2f04e6f708170cd3346dfe", size = 34343 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/db/58/708881f5ad3c72954caa61ac970d3c01209dbebf5e534fb840dfb777bad2/opentelemetry_proto-1.34.0-py3-none-any.whl", hash = "sha256:ffb1f1b27552fda5a1cd581e34243cc0b6f134fb14c1c2a33cc3b4b208c9bf97", size = 55691 }, +] + +[[package]] +name = "opentelemetry-sdk" +version = "1.34.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "opentelemetry-api" }, + { name = "opentelemetry-semantic-conventions" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/52/07/8ca4b295322b5978e2cc4fab3f743ddabf72b82b5d2c50141471f573149d/opentelemetry_sdk-1.34.0.tar.gz", hash = "sha256:719559622afcd515c2aec462ccb749ba2e70075a01df45837623643814d33716", size = 159322 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/55/96/5b788eef90a65543a67988729f0e44fc46eac1da455505ae5091f418a9d9/opentelemetry_sdk-1.34.0-py3-none-any.whl", hash = "sha256:7850bcd5b5c95f9aae48603d6592bdad5c7bdef50c03e06393f8f457d891fe32", size = 118385 }, +] + +[[package]] +name = "opentelemetry-semantic-conventions" +version = "0.55b0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "opentelemetry-api" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f1/64/b99165f7e205e103a83406fb5c3dde668c3a990b3fa0cbe358011095f4fa/opentelemetry_semantic_conventions-0.55b0.tar.gz", hash = "sha256:933d2e20c2dbc0f9b2f4f52138282875b4b14c66c491f5273bcdef1781368e9c", size = 119828 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ca/b1/d7a2472f7da7e39f1a85f63951ad653c1126a632d6491c056ec6284a10a7/opentelemetry_semantic_conventions-0.55b0-py3-none-any.whl", hash = "sha256:63bb15b67377700e51c422d0d24092ca6ce9f3a4cb6f032375aa8af1fc2aab65", size = 196224 }, +] + [[package]] name = "optuna" version = "4.2.0" @@ -1999,6 +2137,9 @@ dependencies = [ { name = "huggingface-hub" }, { name = "lightning" }, { name = "matplotlib" }, + { name = "opentelemetry-api" }, + { name = "opentelemetry-exporter-otlp" }, + { name = "opentelemetry-sdk" }, { name = "pyannote-core" }, { name = "pyannote-database" }, { name = "pyannote-metrics" }, @@ -2049,6 +2190,9 @@ requires-dist = [ { name = "ipython", marker = "extra == 'dev'", specifier = ">=8.32.0" }, { name = "lightning", specifier = ">=2.5.0.post0" }, { name = "matplotlib", specifier = ">=3.10.0" }, + { name = "opentelemetry-api", specifier = "==1.34.0" }, + { name = "opentelemetry-exporter-otlp", specifier = "==1.34.0" }, + { name = "opentelemetry-sdk", specifier = "==1.34.0" }, { name = "papermill", marker = "extra == 'test'", specifier = ">=2.6.0" }, { name = "pyannote-core", specifier = ">=6.0.0rc1" }, { name = "pyannote-database", specifier = ">=6.0.0rc1" }, @@ -3548,3 +3692,12 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/f5/d5/688db678e987c3e0fb17867970700b92603cadf36c56e5fb08f23e822a0c/yarl-1.18.3-cp313-cp313-win_amd64.whl", hash = "sha256:578e281c393af575879990861823ef19d66e2b1d0098414855dd367e234f5b3c", size = 315723 }, { url = "https://files.pythonhosted.org/packages/f5/4b/a06e0ec3d155924f77835ed2d167ebd3b211a7b0853da1cf8d8414d784ef/yarl-1.18.3-py3-none-any.whl", hash = "sha256:b57f4f58099328dfb26c6a771d09fb20dbbae81d20cfb66141251ea063bd101b", size = 45109 }, ] + +[[package]] +name = "zipp" +version = "3.23.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/02/0f2892c661036d50ede074e376733dca2ae7c6eb617489437771209d4180/zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166", size = 25547 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2e/54/647ade08bf0db230bfea292f893923872fd20be6ac6f53b2b936ba839d75/zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e", size = 10276 }, +]