mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-06 14:59:11 +08:00
16 lines
306 B
Python
16 lines
306 B
Python
from abc import ABCMeta, abstractmethod
|
|
|
|
# ref: https://stackoverflow.com/a/38668373
|
|
ABC = ABCMeta('ABC', (object,), {'__slots__': ()})
|
|
|
|
|
|
class Propagator(ABC):
|
|
|
|
@abstractmethod
|
|
def inject(self, span_context, carrier):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def extract(self, carrier):
|
|
pass
|