Skip to content

chore: move aws span pointer helper imports #529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions datadog_lambda/span_pointers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
import logging
from typing import List

from ddtrace._trace.utils_botocore.span_pointers.dynamodb import (
_aws_dynamodb_item_span_pointer_description,
)
from ddtrace._trace.utils_botocore.span_pointers.s3 import (
_aws_s3_object_span_pointer_description,
)
from ddtrace._trace._span_pointer import _SpanPointerDirection
from ddtrace._trace._span_pointer import _SpanPointerDescription
from datadog_lambda.trigger import EventTypes
Expand Down Expand Up @@ -80,6 +74,10 @@ def _calculate_s3_span_pointers_for_object_created_s3_information(
return []

try:
from ddtrace._trace.utils_botocore.span_pointers.s3 import (
_aws_s3_object_span_pointer_description,
)

return [
_aws_s3_object_span_pointer_description(
pointer_direction=_SpanPointerDirection.UPSTREAM,
Expand Down Expand Up @@ -124,6 +122,10 @@ def _calculate_dynamodb_span_pointers_for_event_record(
return []

try:
from ddtrace._trace.utils_botocore.span_pointers.dynamodb import (
_aws_dynamodb_item_span_pointer_description,
)

return [
_aws_dynamodb_item_span_pointer_description(
pointer_direction=_SpanPointerDirection.UPSTREAM,
Expand Down
Loading