|
@@ -5,16 +5,18 @@ from sentry.utils.kvstore.encoding import KVStorageCodecWrapper
|
|
|
from .base import EventProcessingStore
|
|
|
|
|
|
|
|
|
-def BigtableEventProcessingStore(**options) -> EventProcessingStore:
|
|
|
+class BigtableEventProcessingStore(EventProcessingStore):
|
|
|
"""
|
|
|
Creates an instance of the processing store which uses Bigtable as its
|
|
|
backend.
|
|
|
|
|
|
Keyword argument are forwarded to the ``BigtableKVStorage`` constructor.
|
|
|
"""
|
|
|
- return EventProcessingStore(
|
|
|
- KVStorageCodecWrapper(
|
|
|
- BigtableKVStorage(**options),
|
|
|
- JSONCodec() | BytesCodec(), # maintains functional parity with cache backend
|
|
|
+
|
|
|
+ def __init__(self, **options):
|
|
|
+ super().__init__(
|
|
|
+ KVStorageCodecWrapper(
|
|
|
+ BigtableKVStorage(**options),
|
|
|
+ JSONCodec() | BytesCodec(), # maintains functional parity with cache backend
|
|
|
+ )
|
|
|
)
|
|
|
- )
|