Tankanow: Hi @haotianw465, what is the status of this PR? Do you need any action from me?
haotianw465: No. Thank you for your contribution. I'm merging this change and will prepare a release soon.
diff --git a/aws_xray_sdk/ext/resources/aws_para_whitelist.json b/aws_xray_sdk/ext/resources/aws_para_whitelist.json
index bc6642a..3a89b2e 100644
--- a/aws_xray_sdk/ext/resources/aws_para_whitelist.json
+++ b/aws_xray_sdk/ext/resources/aws_para_whitelist.json
@@ -1,5 +1,14 @@
 {
   "services": {
+    "sns": {
+      "operations": {
+        "Publish": {
+          "request_parameters": [
+            "TopicArn"
+          ]
+        }
+      }
+    },
     "dynamodb": {
       "operations": {
         "BatchGetItem": {

Add SNS Service "Publish" operation to the aws_para_whitelist
Currently the SNS publish operation shows up with a minimum set of metadata:
```
"aws": {
    "operation": "Publish",
    "region": "us-east-1",
    "request_id": "a939cee1-7c48-5675-b385-9ae2206dc121"
}
```

This should include at least the known internal AWS resources like `TopicArn` or `TargetArn` and maybe even the `PhoneNumber`.
diff --git a/tests/ext/botocore/test_botocore.py b/tests/ext/botocore/test_botocore.py
index 8d48785..f006de2 100644
--- a/tests/ext/botocore/test_botocore.py
+++ b/tests/ext/botocore/test_botocore.py
@@ -150,3 +150,26 @@ def test_pass_through_on_context_missing():
     assert result is not None
 
     xray_recorder.configure(context_missing='RUNTIME_ERROR')
+
+
+def test_sns_publish_parameters():
+    sns = session.create_client('sns', region_name='us-west-2')
+    response = {
+        'ResponseMetadata': {
+            'RequestId': REQUEST_ID,
+            'HTTPStatusCode': 200,
+        }
+    }
+
+    with Stubber(sns) as stubber:
+        stubber.add_response('publish', response, {'TopicArn': 'myAmazingTopic', 'Message': 'myBodaciousMessage'})
+        sns.publish(TopicArn='myAmazingTopic', Message='myBodaciousMessage')
+
+    subsegment = xray_recorder.current_segment().subsegments[0]
+    assert subsegment.http['response']['status'] == 200
+
+    aws_meta = subsegment.aws
+    assert aws_meta['topic_arn'] == 'myAmazingTopic'
+    assert aws_meta['request_id'] == REQUEST_ID
+    assert aws_meta['region'] == 'us-west-2'
+    assert aws_meta['operation'] == 'Publish'

pip install -e .
parse_log_pytest
pytest
pytest
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
-e git+https://github.com/aws/aws-xray-sdk-python.git@303861097a2dc401dfe0c3fdafed184a0aefb2b2#egg=aws_xray_sdk
botocore==1.26.10
certifi==2021.5.30
charset-normalizer==2.0.12
future==1.0.0
idna==3.10
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
jmespath==0.10.0
jsonpickle==2.2.0
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
python-dateutil==2.9.0.post0
requests==2.27.1
six==1.17.0
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
urllib3==1.26.20
wrapt==1.16.0
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: aws-xray-sdk-python
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - botocore==1.26.10
      - charset-normalizer==2.0.12
      - future==1.0.0
      - idna==3.10
      - jmespath==0.10.0
      - jsonpickle==2.2.0
      - python-dateutil==2.9.0.post0
      - requests==2.27.1
      - six==1.17.0
      - urllib3==1.26.20
      - wrapt==1.16.0
prefix: /opt/conda/envs/aws-xray-sdk-python

tests/ext/botocore/test_botocore.py::test_sns_publish_parameters
tests/ext/botocore/test_botocore.py::test_ddb_table_name tests/ext/botocore/test_botocore.py::test_s3_bucket_name_capture tests/ext/botocore/test_botocore.py::test_list_parameter_counting tests/ext/botocore/test_botocore.py::test_map_parameter_grouping tests/ext/botocore/test_botocore.py::test_pass_through_on_context_missing
aws_xray_sdk/ext/resources/aws_para_whitelist.json
aws_xray_sdk/ext/resources/aws_para_whitelist.json