# Exclude Log from framework in the Dynatrace swift

**URL:** <https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627>\
**Category:** Real User Monitoring\
**Tags:** tagging, mobile-monitoring\
**Created:** [July 11, 2023, 4:47pm UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627 "2023-07-11T16:47:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![paucaro](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@paucaro](https://community.dynatrace.com/u/paucaro)\
**Post date:** [July 11, 2023, 4:47pm UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627/1 "2023-07-11T16:47:42Z")

</div>

Hi there,&nbsp;I am using functions from an SDK framework in the cocoapods module of my ios project, and the Dynatrace dashboard shows tags from the SDK.

In order to exclude the tag, I have tried to add DTXExcludedLifecycleClasses to info.plist like this

```markup
<key>DTXExcludedLifecycleClasses</key>
<array>
<string>ClassInModuleCocoapodsThatUseSdkMethods</string>
</array>

```

but it doesn’t do anything, how could I exclude the tag produced by the SDK?

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [July 12, 2023, 6:15am UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627/2 "2023-07-12T06:15:24Z")

</div>

Hi!

I need some more details to be able to provide an answer:

- what do you refer to with “tag”?
- which action is generated by the SDK?
- what does the affected class inherit from

---

<div class="post-metadata">

**Author:** ![paucaro](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@paucaro](https://community.dynatrace.com/u/paucaro)\
**Post date:** [July 13, 2023, 3:38pm UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627/3 "2023-07-13T15:38:53Z")

</div>

Hi there,&nbsp;sorry for the delay, when I said about the tags I was referring to these events and actions that appear registered in the user session in the dynatrace dashboard.&nbsp;I don’t know if they are known by another name, sorry for the confusion.

 ![paucaro_0-1689261856199.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/e/ae9b4d4b429796a95f80b1b6a58aa5b9ea4d1a2a.png)

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [July 13, 2023, 3:58pm UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627/4 "2023-07-13T15:58:15Z")

</div>

The marked UserAction is a touch an a tableview cell - to exclude those there are 2 options:  
\* globally exclude all touches in tables

```markup
<key>DTXExcludedControls</key>
<array>
<string>TableView</string>
</array>

```

\* only exclude instrumentation for the class that handles this tableview

```markup
<key>DTXExcludedControlClasses</key>
<array>
<string>ClassNameOfYourUITableViewDelegate</string>
</array>

```

see&nbsp;[OneAgent for iOS configuration keys in RUM Classic — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/ios-configuration-keys#user-actions)&nbsp;for more details

---

<div class="post-metadata">

**Author:** ![paucaro](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@paucaro](https://community.dynatrace.com/u/paucaro)\
**Post date:** [July 13, 2023, 8:22pm UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627/5 "2023-07-13T20:22:35Z")

</div>

I understand that both are used to exclude control classes such as tables, buttons and others. Does it work the same for the case of wanting to exclude events caused by a framework registered in dynatrace? Because I tried this setting of DTXExcludedControlClasses but it doesn’t work for me. Events logged in the SDK happen when I call SDK own functions, eg SDK.functionA() and it’s not exactly a UI control class.

I don’t know if I’m misunderstanding it, but I would like to clarify it, thank you very much

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [July 14, 2023, 8:35am UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627/6 "2023-07-14T08:35:02Z")

</div>

Not sure if I understand what you try to exclude. The UserAction (Touch on TableViewCell…) marked in the screenshot is triggered by a user interaction (touch) on a table - not by a SDK call.  
Or did I misinterpret your question and this is about the “Initiate BioCatchSDK…” UserAction you want to ignore?

---

<div class="post-metadata">

**Author:** ![paucaro](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@paucaro](https://community.dynatrace.com/u/paucaro)\
**Post date:** [July 14, 2023, 2:16pm UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627/7 "2023-07-14T14:16:50Z")

</div>

Yes, it is about “Initiate BioCatchSDK …” UserAction I want to ignore. Sorry if i confused you with the screenshot&nbsp;😔

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [July 14, 2023, 2:58pm UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627/8 "2023-07-14T14:58:48Z")

</div>

Oh, seems we need to update our help there - it is missing the gestures. So I can offer you to globally ignore gestures as workaround:

```markup
<key>DTXExcludedControls</key>
<array>
<string>Gesture</string>
</array>

```

The&nbsp;DTXExcludedControlClasses key also should work if you know which class implements the UIGestureRecognizers for this gesture.

---

<div class="post-metadata">

**Author:** ![paucaro](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@paucaro](https://community.dynatrace.com/u/paucaro)\
**Post date:** [July 14, 2023, 4:20pm UTC](https://community.dynatrace.com/t/exclude-log-from-framework-in-the-dynatrace-swift/40627/9 "2023-07-14T16:20:33Z")

</div>

Thank you, it was very useful&nbsp;👍
