|
| 1 | +try: |
| 2 | + from ._ddup import * # noqa: F403, F401 |
| 3 | +except ImportError: |
| 4 | + from typing import Optional |
| 5 | + from typing import Dict |
| 6 | + from ddtrace.span import Span |
| 7 | + |
| 8 | + # Decorator for not-implemented |
| 9 | + def not_implemented(func): |
| 10 | + def wrapper(*args, **kwargs): |
| 11 | + raise NotImplementedError("{} is not implemented on this platform".format(func.__name__)) |
| 12 | + |
| 13 | + @not_implemented |
| 14 | + def init( |
| 15 | + env, # type: Optional[str] |
| 16 | + service, # type: Optional[str] |
| 17 | + version, # type: Optional[str] |
| 18 | + tags, # type: Optional[Dict[str, str]] |
| 19 | + max_nframes, # type: Optional[int] |
| 20 | + url, # type: Optional[str] |
| 21 | + ): |
| 22 | + pass |
| 23 | + |
| 24 | + @not_implemented |
| 25 | + def start_sample(nframes): # type: (int) -> None |
| 26 | + pass |
| 27 | + |
| 28 | + @not_implemented |
| 29 | + def push_cputime(value, count): # type: (int, int) -> None |
| 30 | + pass |
| 31 | + |
| 32 | + @not_implemented |
| 33 | + def push_walltime(value, count): # type: (int, int) -> None |
| 34 | + pass |
| 35 | + |
| 36 | + @not_implemented |
| 37 | + def push_acquire(value, count): # type: (int, int) -> None |
| 38 | + pass |
| 39 | + |
| 40 | + @not_implemented |
| 41 | + def push_release(value, count): # type: (int, int) -> None |
| 42 | + pass |
| 43 | + |
| 44 | + @not_implemented |
| 45 | + def push_alloc(value, count): # type: (int, int) -> None |
| 46 | + pass |
| 47 | + |
| 48 | + @not_implemented |
| 49 | + def push_heap(value): # type: (int) -> None |
| 50 | + pass |
| 51 | + |
| 52 | + @not_implemented |
| 53 | + def push_lock_name(lock_name): # type: (str) -> None |
| 54 | + pass |
| 55 | + |
| 56 | + @not_implemented |
| 57 | + def push_frame(name, filename, address, line): # type: (str, str, int, int) -> None |
| 58 | + pass |
| 59 | + |
| 60 | + @not_implemented |
| 61 | + def push_threadinfo(thread_id, thread_native_id, thread_name): # type: (int, int, Optional[str]) -> None |
| 62 | + pass |
| 63 | + |
| 64 | + @not_implemented |
| 65 | + def push_taskinfo(task_id, task_name): # type: (int, str) -> None |
| 66 | + pass |
| 67 | + |
| 68 | + @not_implemented |
| 69 | + def push_exceptioninfo(exc_type, count): # type: (type, int) -> None |
| 70 | + pass |
| 71 | + |
| 72 | + @not_implemented |
| 73 | + def push_class_name(class_name): # type: (str) -> None |
| 74 | + pass |
| 75 | + |
| 76 | + @not_implemented |
| 77 | + def push_span(span, endpoint_collection_enabled): # type: (Optional[Span], bool) -> None |
| 78 | + pass |
| 79 | + |
| 80 | + @not_implemented |
| 81 | + def flush_sample(): # type: () -> None |
| 82 | + pass |
| 83 | + |
| 84 | + @not_implemented |
| 85 | + def upload(): # type: () -> None |
| 86 | + pass |
0 commit comments