Skip to content

botocore: sns set destination name attribute to arn and redact phone number#3249

Merged
xrmx merged 10 commits intoopen-telemetry:mainfrom
emdneto:fix/sns-warnings
Mar 10, 2025
Merged

botocore: sns set destination name attribute to arn and redact phone number#3249
xrmx merged 10 commits intoopen-telemetry:mainfrom
emdneto:fix/sns-warnings

Conversation

@emdneto
Copy link
Member

@emdneto emdneto commented Feb 7, 2025

instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_sns.py::TestSnsExtension::test_publish_to_phone_number 
-------------------------------------------------------------------------------- live log call --------------------------------------------------------------------------------
WARNING  opentelemetry.attributes:__init__.py:100 Invalid type NoneType for attribute 'messaging.destination.name' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
@emdneto emdneto marked this pull request as ready for review February 11, 2025 14:29
@emdneto emdneto requested a review from a team as a code owner February 11, 2025 14:29
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
@emdneto emdneto changed the title botocore: sns set destination name attribute only if not phone number botocore: sns set destination name attribute to arn and redact phone number Feb 13, 2025
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
@xrmx xrmx enabled auto-merge (squash) March 10, 2025 09:32
@xrmx xrmx merged commit 3708604 into open-telemetry:main Mar 10, 2025
712 checks passed
@github-project-automation github-project-automation bot moved this from Ready for review to Done in Python PR digest Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants