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

can you exclude packages in iOS?

In the Android Auto Instrumentation documentation i see there is an option to customize the instrumentation and exlcude 3rd party packages, classes, or methods. Is this same feature available with iOS? Neither the Auto or Manual instrumentation pages mention this feature that i saw.

Android information below:

Additional customization

Auto-instrumentation instruments all packages by default. To skip third party content, use the DTXExcludePackagesproperty to exclude packages, classes, or methods. For example:

DTXExcludePackages=com.xyz.IncludedClass.excludeThisMethod,com.xyz.ExcludedClass

If you only want to instrument your application package, use the DTXIncludePackages property to select the packages and deactivate DTXIncludeAllPackages. You can't include packages using the DTXIncludePackages property, if they are already excluded by the DTXExcludePackages property.

DTXIncludeAllPackages=false
DTXIncludePackages=com.this.pkg,com.that.pkg

To refresh the uninstrumented application with the instrumented application on Google Play, you must change the version number. By default, the auto-instrumentator does not change the version code and name. Use the DTXVersionCode and DTXVersionName properties to change these two values. If you have build a new APK file with a new version name and code, then you do not have to change these values, because the auto-instrumentor uses your new version name and code.

2 REPLIES 2

Joe_Hoffman
Dynatrace Champion
Dynatrace Champion

Did you look at the DTXExcludedLifecyleClasses key? This allows you to specify classes which will be excluded from lifecycle instrumentation within an iOS app.


harp
Dynatrace Pro
Dynatrace Pro


you can exclude Lifecycle or Control Classes from instrumentation:

Lifecycle Classes:

<key>DTXExcludedLifecycleClasses</key>
<array>
<string>MyViewController</string>
<string>MyViewControlleParent</string>
</array>

Control Classes:

<key>DTXExcludedControls</key>
<array>
<string>Button</string>
<string>DatePicker</string>
<string>Slider</string>
<string>Stepper</string>
<string>Switch</string>
<string>RefreshControl</string>
<string>ToolBar</string>
<string>SegmentedControl</string>
<string>TableView</string>
<string>TabBar</string>
<string>AlertView</string>
<string>AlertAction</string>
<string>PageView</string>
<string>NavigationController</string>
<string>CollectionView</string>
<string>Gesture</string>
<string>ActionSheet</string>
</array>