Skip to content

Commit

Permalink
code qual
Browse files Browse the repository at this point in the history
  • Loading branch information
soundofspace committed Apr 2, 2024
1 parent 9609d30 commit 3b8f2b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scrapy/meter_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
from typing import TYPE_CHECKING

from opentelemetry.metrics import NoOpMeterProvider, MeterProvider
from opentelemetry.metrics import NoOpMeterProvider as OTNoOpMeterProvider, MeterProvider as OTMeterProvider
from opentelemetry.sdk.metrics.view import View

if TYPE_CHECKING:
Expand All @@ -14,7 +14,7 @@
logger = logging.getLogger(__name__)


class MeterProvider(MeterProvider, ABC):
class MeterProvider(OTMeterProvider, ABC):
"""
Wrapper for MeterProvider so we have crawler available during init.
"""
Expand All @@ -32,9 +32,9 @@ def add_view(self, view: View):
"""
self._views.append(view)

class NoOpMeterProvider(NoOpMeterProvider, MeterProvider):
class NoOpMeterProvider(OTNoOpMeterProvider, MeterProvider):
"""
Wrapper for NoOpMeterProvider so we support passing crawler during init.
"""
def __init__(self, crawler: "Crawler"):
super().__init__(crawler)
super().__init__(crawler)

0 comments on commit 3b8f2b1

Please sign in to comment.