cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Exclude Log from framework in the Dynatrace swift

paucaro
Visitor

Hi there, 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

 

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

 

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

8 REPLIES 8

Patrick_H
Dynatrace Champion
Dynatrace Champion

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
iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

Hi there, 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. I don't know if they are known by another name, sorry for the confusion.

paucaro_0-1689261856199.png

 

Patrick_H
Dynatrace Champion
Dynatrace Champion

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

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


* only exclude instrumentation for the class that handles this tableview

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

see https://www.dynatrace.com/support/help/shortlink/ios-configuration-keys#user-actions for more details

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

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

Patrick_H
Dynatrace Champion
Dynatrace Champion

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?

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

Yes, it is about "Initiate BioCatchSDK ..." UserAction I want to ignore. Sorry if i confused you with the screenshot 😔

Patrick_H
Dynatrace Champion
Dynatrace Champion

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:

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

 

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

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

Thank you, it was very useful 👍

Featured Posts