Repository: serverless/dashboard (language: python)

Issue:
feat!: Change name of python sdk module to sls_sdk
To fix the collision with Serverless Dashboard SDK.


Discussion / hints:

Fix patch:
diff --git a/python/packages/sdk/CHANGELOG.md b/python/packages/sdk/CHANGELOG.md
index 904bdfc37..061ca200e 100644
--- a/python/packages/sdk/CHANGELOG.md
+++ b/python/packages/sdk/CHANGELOG.md
@@ -19,7 +19,7 @@ All notable changes to this project will be documented in this file. See [standa
 ### Features
 
 - Add `_report_notice` method
-- Emit `trace-span-close` event when a span is closed 
+- Emit `trace-span-close` event when a span is closed
 
 ## 0.3.5 (2023-03-22)
 
diff --git a/python/packages/sdk/sls_sdk/__init__.py b/python/packages/sdk/serverless_sdk/__init__.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/__init__.py
rename to python/packages/sdk/serverless_sdk/__init__.py
diff --git a/python/packages/sdk/sls_sdk/base.py b/python/packages/sdk/serverless_sdk/base.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/base.py
rename to python/packages/sdk/serverless_sdk/base.py
diff --git a/python/packages/sdk/sls_sdk/exceptions.py b/python/packages/sdk/serverless_sdk/exceptions.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/exceptions.py
rename to python/packages/sdk/serverless_sdk/exceptions.py
diff --git a/python/packages/sdk/sls_sdk/lib/__init__.py b/python/packages/sdk/serverless_sdk/lib/__init__.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/__init__.py
rename to python/packages/sdk/serverless_sdk/lib/__init__.py
diff --git a/python/packages/sdk/sls_sdk/lib/captured_event.py b/python/packages/sdk/serverless_sdk/lib/captured_event.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/captured_event.py
rename to python/packages/sdk/serverless_sdk/lib/captured_event.py
diff --git a/python/packages/sdk/sls_sdk/lib/emitter.py b/python/packages/sdk/serverless_sdk/lib/emitter.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/emitter.py
rename to python/packages/sdk/serverless_sdk/lib/emitter.py
diff --git a/python/packages/sdk/sls_sdk/lib/error.py b/python/packages/sdk/serverless_sdk/lib/error.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/error.py
rename to python/packages/sdk/serverless_sdk/lib/error.py
diff --git a/python/packages/sdk/sls_sdk/lib/error_captured_event.py b/python/packages/sdk/serverless_sdk/lib/error_captured_event.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/error_captured_event.py
rename to python/packages/sdk/serverless_sdk/lib/error_captured_event.py
diff --git a/python/packages/sdk/sls_sdk/lib/id.py b/python/packages/sdk/serverless_sdk/lib/id.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/id.py
rename to python/packages/sdk/serverless_sdk/lib/id.py
diff --git a/python/packages/sdk/sls_sdk/lib/instrumentation/logging.py b/python/packages/sdk/serverless_sdk/lib/instrumentation/logging.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/instrumentation/logging.py
rename to python/packages/sdk/serverless_sdk/lib/instrumentation/logging.py
diff --git a/python/packages/sdk/sls_sdk/lib/name.py b/python/packages/sdk/serverless_sdk/lib/name.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/name.py
rename to python/packages/sdk/serverless_sdk/lib/name.py
diff --git a/python/packages/sdk/sls_sdk/lib/notice.py b/python/packages/sdk/serverless_sdk/lib/notice.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/notice.py
rename to python/packages/sdk/serverless_sdk/lib/notice.py
diff --git a/python/packages/sdk/sls_sdk/lib/stack_trace_string.py b/python/packages/sdk/serverless_sdk/lib/stack_trace_string.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/stack_trace_string.py
rename to python/packages/sdk/serverless_sdk/lib/stack_trace_string.py
diff --git a/python/packages/sdk/sls_sdk/lib/tags.py b/python/packages/sdk/serverless_sdk/lib/tags.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/tags.py
rename to python/packages/sdk/serverless_sdk/lib/tags.py
diff --git a/python/packages/sdk/sls_sdk/lib/timing.py b/python/packages/sdk/serverless_sdk/lib/timing.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/timing.py
rename to python/packages/sdk/serverless_sdk/lib/timing.py
diff --git a/python/packages/sdk/sls_sdk/lib/trace.py b/python/packages/sdk/serverless_sdk/lib/trace.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/trace.py
rename to python/packages/sdk/serverless_sdk/lib/trace.py
diff --git a/python/packages/sdk/sls_sdk/lib/warning.py b/python/packages/sdk/serverless_sdk/lib/warning.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/warning.py
rename to python/packages/sdk/serverless_sdk/lib/warning.py
diff --git a/python/packages/sdk/sls_sdk/lib/warning_captured_event.py b/python/packages/sdk/serverless_sdk/lib/warning_captured_event.py
similarity index 100%
rename from python/packages/sdk/sls_sdk/lib/warning_captured_event.py
rename to python/packages/sdk/serverless_sdk/lib/warning_captured_event.py
diff --git a/python/packages/sdk/sls_sdk/py.typed b/python/packages/sdk/serverless_sdk/py.typed
similarity index 100%
rename from python/packages/sdk/sls_sdk/py.typed
rename to python/packages/sdk/serverless_sdk/py.typed


Test patch:
diff --git a/python/packages/sdk/tests/lib/instrumentation/test_logging.py b/python/packages/sdk/tests/lib/instrumentation/test_logging.py
index 04a9fc942..ba2a16ce7 100644
--- a/python/packages/sdk/tests/lib/instrumentation/test_logging.py
+++ b/python/packages/sdk/tests/lib/instrumentation/test_logging.py
@@ -1,22 +1,22 @@
 import pytest
 from unittest.mock import MagicMock
-import sls_sdk.lib.instrumentation.logging
+import serverless_sdk.lib.instrumentation.logging
 import logging
-from sls_sdk import serverlessSdk
+from serverless_sdk import serverlessSdk
 
 
 @pytest.fixture(autouse=True)
 def instrumentation_setup():
-    sls_sdk.lib.instrumentation.logging.install()
+    serverless_sdk.lib.instrumentation.logging.install()
     yield
-    sls_sdk.lib.instrumentation.logging.uninstall()
+    serverless_sdk.lib.instrumentation.logging.uninstall()
 
 
 def test_instrument_error(monkeypatch):
     # given
     mock = MagicMock()
     monkeypatch.setattr(
-        sls_sdk.lib.instrumentation.logging, "create_error_captured_event", mock
+        serverless_sdk.lib.instrumentation.logging, "create_error_captured_event", mock
     )
     error = Exception("My error")
 
@@ -31,7 +31,7 @@ def test_instrument_error_with_multiple_arguments(monkeypatch):
     # given
     mock = MagicMock()
     monkeypatch.setattr(
-        sls_sdk.lib.instrumentation.logging, "create_error_captured_event", mock
+        serverless_sdk.lib.instrumentation.logging, "create_error_captured_event", mock
     )
     error = "%s %s went wrong"
     args = ("logging", "test")
@@ -47,7 +47,7 @@ def test_instrument_warning(monkeypatch):
     # given
     mock = MagicMock()
     monkeypatch.setattr(
-        sls_sdk.lib.instrumentation.logging,
+        serverless_sdk.lib.instrumentation.logging,
         "create_warning_captured_event",
         mock,
     )
@@ -64,7 +64,7 @@ def test_instrument_warn(monkeypatch):
     # given
     mock = MagicMock()
     monkeypatch.setattr(
-        sls_sdk.lib.instrumentation.logging,
+        serverless_sdk.lib.instrumentation.logging,
         "create_warning_captured_event",
         mock,
     )
@@ -81,7 +81,7 @@ def test_instrument_warning_recognize_sdk_warning(monkeypatch):
     # given
     mock = MagicMock()
     monkeypatch.setattr(
-        sls_sdk.lib.instrumentation.logging,
+        serverless_sdk.lib.instrumentation.logging,
         "create_warning_captured_event",
         mock,
     )
@@ -98,7 +98,7 @@ def test_instrument_warning_recognize_sdk_error(monkeypatch):
     # given
     mock = MagicMock()
     monkeypatch.setattr(
-        sls_sdk.lib.instrumentation.logging,
+        serverless_sdk.lib.instrumentation.logging,
         "create_error_captured_event",
         mock,
     )
diff --git a/python/packages/sdk/tests/lib/test_captured_event.py b/python/packages/sdk/tests/lib/test_captured_event.py
index 8e977b18f..de055efbd 100644
--- a/python/packages/sdk/tests/lib/test_captured_event.py
+++ b/python/packages/sdk/tests/lib/test_captured_event.py
@@ -2,10 +2,10 @@
 import time
 import json
 from unittest.mock import MagicMock
-from sls_sdk.lib.captured_event import CapturedEvent
-from sls_sdk.lib.tags import Tags, convert_tags_to_protobuf
-from sls_sdk.lib.timing import to_protobuf_epoch_timestamp
-import sls_sdk.lib.captured_event
+from serverless_sdk.lib.captured_event import CapturedEvent
+from serverless_sdk.lib.tags import Tags, convert_tags_to_protobuf
+from serverless_sdk.lib.timing import to_protobuf_epoch_timestamp
+import serverless_sdk.lib.captured_event
 
 
 def test_captured_event():
@@ -46,7 +46,7 @@ def test_captured_event():
 def test_captured_event_invalid_custom_tags(monkeypatch):
     # given
     mock = MagicMock()
-    monkeypatch.setattr(sls_sdk.lib.captured_event, "report_error", mock)
+    monkeypatch.setattr(serverless_sdk.lib.captured_event, "report_error", mock)
     timestamp = time.perf_counter_ns()
     tags = {"foo- !": "bar"}
     event_name = "foo.bar.event"
diff --git a/python/packages/sdk/tests/lib/test_error.py b/python/packages/sdk/tests/lib/test_error.py
index c66863533..80b327129 100644
--- a/python/packages/sdk/tests/lib/test_error.py
+++ b/python/packages/sdk/tests/lib/test_error.py
@@ -1,8 +1,8 @@
 from __future__ import annotations
 import pytest
 from unittest.mock import MagicMock, patch, ANY
-from sls_sdk.lib.error import report as report_error, logger
-import sls_sdk.lib.error_captured_event
+from serverless_sdk.lib.error import report as report_error, logger
+import serverless_sdk.lib.error_captured_event
 
 
 def test_error_with_exception(monkeypatch):
@@ -10,7 +10,7 @@ def test_error_with_exception(monkeypatch):
     error = Exception("Something went wrong")
     create_error_captured_event = MagicMock()
     monkeypatch.setattr(
-        sls_sdk.lib.error_captured_event,
+        serverless_sdk.lib.error_captured_event,
         "create",
         create_error_captured_event,
     )
@@ -46,7 +46,7 @@ def test_error_with_custom_object(monkeypatch):
     }
     create_error_captured_event = MagicMock()
     monkeypatch.setattr(
-        sls_sdk.lib.error_captured_event,
+        serverless_sdk.lib.error_captured_event,
         "create",
         create_error_captured_event,
     )
diff --git a/python/packages/sdk/tests/lib/test_error_captured_event.py b/python/packages/sdk/tests/lib/test_error_captured_event.py
index ce927db1f..b6b4d9086 100644
--- a/python/packages/sdk/tests/lib/test_error_captured_event.py
+++ b/python/packages/sdk/tests/lib/test_error_captured_event.py
@@ -2,13 +2,13 @@
 from unittest import mock
 from unittest.mock import MagicMock
 import json
-from sls_sdk.lib.error_captured_event import (
+from serverless_sdk.lib.error_captured_event import (
     create as create_error_captured_event,
     logger,
 )
-from sls_sdk import serverlessSdk
-from sls_sdk.lib.tags import convert_tags_to_protobuf
-from sls_sdk.lib.timing import to_protobuf_epoch_timestamp
+from serverless_sdk import serverlessSdk
+from serverless_sdk.lib.tags import convert_tags_to_protobuf
+from serverless_sdk.lib.timing import to_protobuf_epoch_timestamp
 
 
 def assert_protobuf_dict(captured_event, tags, fingerprint=None):
diff --git a/python/packages/sdk/tests/lib/test_event_emitter.py b/python/packages/sdk/tests/lib/test_event_emitter.py
index c7ed69341..48d40d605 100644
--- a/python/packages/sdk/tests/lib/test_event_emitter.py
+++ b/python/packages/sdk/tests/lib/test_event_emitter.py
@@ -1,6 +1,6 @@
 import pytest
 from unittest.mock import MagicMock
-from sls_sdk.lib.emitter import EventEmitter, EVENT_TYPE
+from serverless_sdk.lib.emitter import EventEmitter, EVENT_TYPE
 
 
 @pytest.mark.parametrize("event_type", EVENT_TYPE.__args__)
diff --git a/python/packages/sdk/tests/lib/test_id.py b/python/packages/sdk/tests/lib/test_id.py
index e95bc5e13..6c851cf6d 100644
--- a/python/packages/sdk/tests/lib/test_id.py
+++ b/python/packages/sdk/tests/lib/test_id.py
@@ -1,6 +1,6 @@
 from __future__ import annotations
 
-from sls_sdk.lib.id import generate_id
+from serverless_sdk.lib.id import generate_id
 
 
 def test_generate_id():
diff --git a/python/packages/sdk/tests/lib/test_name.py b/python/packages/sdk/tests/lib/test_name.py
index e9087cadc..6df6f1d5c 100644
--- a/python/packages/sdk/tests/lib/test_name.py
+++ b/python/packages/sdk/tests/lib/test_name.py
@@ -3,8 +3,8 @@
 from typing_extensions import Final
 import pytest
 
-from sls_sdk.exceptions import InvalidTraceSpanName
-from sls_sdk.lib.name import get_resource_name, is_valid_name
+from serverless_sdk.exceptions import InvalidTraceSpanName
+from serverless_sdk.lib.name import get_resource_name, is_valid_name
 
 
 VALID_NAME: Final[str] = "valid.name"
diff --git a/python/packages/sdk/tests/lib/test_notice.py b/python/packages/sdk/tests/lib/test_notice.py
index c24470064..bb17e4474 100644
--- a/python/packages/sdk/tests/lib/test_notice.py
+++ b/python/packages/sdk/tests/lib/test_notice.py
@@ -1,7 +1,7 @@
 from __future__ import annotations
 from unittest.mock import MagicMock, patch
-from sls_sdk.lib.notice import report as report_notice
-from sls_sdk.lib.emitter import event_emitter
+from serverless_sdk.lib.notice import report as report_notice
+from serverless_sdk.lib.emitter import event_emitter
 
 
 def test_report_notice():
diff --git a/python/packages/sdk/tests/lib/test_stack_trace_string.py b/python/packages/sdk/tests/lib/test_stack_trace_string.py
index 71542e5c4..7b6ccdd6b 100644
--- a/python/packages/sdk/tests/lib/test_stack_trace_string.py
+++ b/python/packages/sdk/tests/lib/test_stack_trace_string.py
@@ -1,5 +1,5 @@
 import traceback
-from sls_sdk.lib.stack_trace_string import resolve
+from serverless_sdk.lib.stack_trace_string import resolve
 
 
 def test_resolve_stack_trace_string_from_error():
diff --git a/python/packages/sdk/tests/lib/test_tags.py b/python/packages/sdk/tests/lib/test_tags.py
index fed444f73..15b59c42e 100644
--- a/python/packages/sdk/tests/lib/test_tags.py
+++ b/python/packages/sdk/tests/lib/test_tags.py
@@ -7,15 +7,15 @@
 import pytest
 from typing_extensions import Final
 
-from sls_sdk.base import ValidTags
-from sls_sdk.exceptions import (
+from serverless_sdk.base import ValidTags
+from serverless_sdk.exceptions import (
     DuplicateTraceSpanName,
     InvalidTraceSpanTagName,
     InvalidTraceSpanTagValue,
     SdkException,
 )
-from sls_sdk.lib.tags import ensure_tag_name, ensure_tag_value, Tags
-import sls_sdk.lib.tags
+from serverless_sdk.lib.tags import ensure_tag_name, ensure_tag_value, Tags
+import serverless_sdk.lib.tags
 
 
 VALID_NAMES: Final[Tuple[str, ...]] = (
@@ -128,7 +128,7 @@ def test_tags_update_with_prefix():
 
 def test_tags_invalid_names_and_values(tags: Tags, monkeypatch):
     mock = MagicMock()
-    monkeypatch.setattr(sls_sdk.lib.tags, "report_error", mock)
+    monkeypatch.setattr(serverless_sdk.lib.tags, "report_error", mock)
     for name in INVALID_NAMES:
         for value in VALID_VALUES:
             tags[name] = value
@@ -163,7 +163,7 @@ def test_tags_invalid_names_and_values_internal_method_raises_exception(tags: Ta
 
 def test_tags_duplicate(tags: Tags, monkeypatch):
     mock = MagicMock()
-    monkeypatch.setattr(sls_sdk.lib.tags, "report_error", mock)
+    monkeypatch.setattr(serverless_sdk.lib.tags, "report_error", mock)
     for name in VALID_NAMES:
         tags[name] = "example"
 
@@ -187,7 +187,7 @@ def test_tags_duplicate_internal_method_raises_exception(tags: Tags):
 def test_tags_invalid_names_and_values_bulk(tags: Tags, monkeypatch):
     # given
     mock = MagicMock()
-    monkeypatch.setattr(sls_sdk.lib.tags, "report_error", mock)
+    monkeypatch.setattr(serverless_sdk.lib.tags, "report_error", mock)
 
     # when
     tags.update({name: "" for name in INVALID_NAMES})
@@ -201,7 +201,7 @@ def test_tags_invalid_names_and_values_bulk_internal_method_raises_exception(
 ):
     # given
     mock = MagicMock()
-    monkeypatch.setattr(sls_sdk.lib.tags, "report_error", mock)
+    monkeypatch.setattr(serverless_sdk.lib.tags, "report_error", mock)
 
     # when
     with pytest.raises(SdkException):
diff --git a/python/packages/sdk/tests/lib/test_timing.py b/python/packages/sdk/tests/lib/test_timing.py
index 453f7d051..cbe1fd391 100644
--- a/python/packages/sdk/tests/lib/test_timing.py
+++ b/python/packages/sdk/tests/lib/test_timing.py
@@ -1,4 +1,4 @@
-from sls_sdk.lib.timing import to_protobuf_epoch_timestamp
+from serverless_sdk.lib.timing import to_protobuf_epoch_timestamp
 import time
 
 
diff --git a/python/packages/sdk/tests/lib/test_trace_span.py b/python/packages/sdk/tests/lib/test_trace_span.py
index 373628b3b..2a39e188f 100644
--- a/python/packages/sdk/tests/lib/test_trace_span.py
+++ b/python/packages/sdk/tests/lib/test_trace_span.py
@@ -2,9 +2,9 @@
 import time
 import json
 from unittest.mock import patch, call
-from sls_sdk.lib.timing import to_protobuf_epoch_timestamp
-from sls_sdk.lib.trace import TraceSpan
-from sls_sdk.lib.emitter import event_emitter
+from serverless_sdk.lib.timing import to_protobuf_epoch_timestamp
+from serverless_sdk.lib.trace import TraceSpan
+from serverless_sdk.lib.emitter import event_emitter
 
 
 # root span that lives throughout the test session
@@ -212,25 +212,25 @@ def test_span_closure():
 def test_root_span_reuse():
     # given
     from importlib import reload
-    import sls_sdk.lib.trace
+    import serverless_sdk.lib.trace
 
-    reload(sls_sdk.lib.trace)
+    reload(serverless_sdk.lib.trace)
 
     span = TraceSpan("root")
     TraceSpan("child1").close()
     TraceSpan("child2").close()
     span.close()
     span.sub_spans.clear()
-    del sls_sdk.lib.trace.root_span.end_time
+    del serverless_sdk.lib.trace.root_span.end_time
 
     # when
     span.start_time = time.perf_counter_ns()
     TraceSpan("otherchild").close()
-    sls_sdk.lib.trace.root_span.close()
+    serverless_sdk.lib.trace.root_span.close()
 
     # then
-    assert [x.name for x in sls_sdk.lib.trace.root_span.spans] == [
+    assert [x.name for x in serverless_sdk.lib.trace.root_span.spans] == [
         "root",
         "otherchild",
     ]
-    sls_sdk.lib.trace.root_span.sub_spans.clear()
+    serverless_sdk.lib.trace.root_span.sub_spans.clear()
diff --git a/python/packages/sdk/tests/lib/test_warning.py b/python/packages/sdk/tests/lib/test_warning.py
index f999e9687..d7b933317 100644
--- a/python/packages/sdk/tests/lib/test_warning.py
+++ b/python/packages/sdk/tests/lib/test_warning.py
@@ -1,7 +1,7 @@
 from __future__ import annotations
 from unittest.mock import MagicMock, patch
-from sls_sdk.lib.warning import report as report_warning, logger
-import sls_sdk.lib.warning
+from serverless_sdk.lib.warning import report as report_warning, logger
+import serverless_sdk.lib.warning
 
 
 def test_report_warning(monkeypatch):
@@ -10,7 +10,7 @@ def test_report_warning(monkeypatch):
     code = "WARN_CODE"
     create_warning_captured_event = MagicMock()
     monkeypatch.setattr(
-        sls_sdk.lib.warning,
+        serverless_sdk.lib.warning,
         "create_warning_captured_event",
         create_warning_captured_event,
     )
diff --git a/python/packages/sdk/tests/lib/test_warning_captured_event.py b/python/packages/sdk/tests/lib/test_warning_captured_event.py
index fda4e18d2..d81a803fc 100644
--- a/python/packages/sdk/tests/lib/test_warning_captured_event.py
+++ b/python/packages/sdk/tests/lib/test_warning_captured_event.py
@@ -2,13 +2,13 @@
 from unittest import mock
 from unittest.mock import MagicMock
 import json
-from sls_sdk.lib.warning_captured_event import (
+from serverless_sdk.lib.warning_captured_event import (
     create as create_warning_captured_event,
     logger,
 )
-from sls_sdk import serverlessSdk
-from sls_sdk.lib.tags import Tags, convert_tags_to_protobuf
-from sls_sdk.lib.timing import to_protobuf_epoch_timestamp
+from serverless_sdk import serverlessSdk
+from serverless_sdk.lib.tags import Tags, convert_tags_to_protobuf
+from serverless_sdk.lib.timing import to_protobuf_epoch_timestamp
 
 
 def assert_protobuf_dict(captured_event, tags, fingerprint=None):
diff --git a/python/packages/sdk/tests/test_sdk.py b/python/packages/sdk/tests/test_sdk.py
index 8ffaffc9d..d0e7b42f7 100644
--- a/python/packages/sdk/tests/test_sdk.py
+++ b/python/packages/sdk/tests/test_sdk.py
@@ -4,24 +4,24 @@
 import pytest
 
 from . import get_params
-import sls_sdk
-from sls_sdk import ServerlessSdk
-from sls_sdk.base import SLS_ORG_ID
-from sls_sdk.lib.error_captured_event import TYPE_MAP as ERROR_TYPE_MAP
-from sls_sdk.lib.warning_captured_event import TYPE_MAP as WARNING_TYPE_MAP
-from sls_sdk.lib.emitter import event_emitter
+import serverless_sdk
+from serverless_sdk import ServerlessSdk
+from serverless_sdk.base import SLS_ORG_ID
+from serverless_sdk.lib.error_captured_event import TYPE_MAP as ERROR_TYPE_MAP
+from serverless_sdk.lib.warning_captured_event import TYPE_MAP as WARNING_TYPE_MAP
+from serverless_sdk.lib.emitter import event_emitter
 
 
 @pytest.fixture
 def sdk() -> ServerlessSdk:
-    from sls_sdk import serverlessSdk
+    from serverless_sdk import serverlessSdk
 
     return serverlessSdk
 
 
 def test_can_import_serverless_sdk():
     try:
-        from sls_sdk import serverlessSdk
+        from serverless_sdk import serverlessSdk
 
     except ImportError as e:
         raise AssertionError("Cannot import `serverlessSdk`") from e
@@ -95,7 +95,7 @@ def test_has_create_trace_span_method(sdk: ServerlessSdk):
 
 
 def test_create_trace_span_returns_trace_span(sdk: ServerlessSdk):
-    from sls_sdk.lib.trace import TraceSpan
+    from serverless_sdk.lib.trace import TraceSpan
 
     span = sdk._create_trace_span("name", "input", "output")
 
@@ -174,7 +174,7 @@ def test_sdk_exposes_set_tag(sdk: ServerlessSdk):
 def test_sdk_set_tag_does_not_crash_on_invalid_input(sdk: ServerlessSdk, monkeypatch):
     # given
     mock = MagicMock()
-    monkeypatch.setattr(sls_sdk, "report_error", mock)
+    monkeypatch.setattr(serverless_sdk, "report_error", mock)
     tag_name = ""
     tag_value = "value"