@dynatrace/cordova-plugin 2.331.1 → 2.335.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +154 -138
  2. package/files/iOS/Dynatrace.xcframework/Info.plist +11 -11
  3. package/files/iOS/Dynatrace.xcframework/_CodeSignature/CodeDirectory +0 -0
  4. package/files/iOS/Dynatrace.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  5. package/files/iOS/Dynatrace.xcframework/_CodeSignature/CodeResources +135 -135
  6. package/files/iOS/Dynatrace.xcframework/_CodeSignature/CodeSignature +0 -0
  7. package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
  8. package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +3 -1
  9. package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +37 -1
  10. package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
  11. package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  12. package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +10 -2
  13. package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.private.swiftinterface +4 -4
  14. package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  15. package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftinterface +4 -4
  16. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  17. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +6 -2
  18. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +37 -1
  19. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  20. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  21. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  22. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +10 -2
  23. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +4 -4
  24. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  25. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -4
  26. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +10 -2
  27. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +4 -4
  28. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  29. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +4 -4
  30. package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +29 -29
  31. package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
  32. package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +3 -1
  33. package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +37 -1
  34. package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
  35. package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
  36. package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.private.swiftinterface +3 -3
  37. package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftdoc +0 -0
  38. package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftinterface +3 -3
  39. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  40. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +6 -2
  41. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +37 -1
  42. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  43. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
  44. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
  45. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface +3 -3
  46. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc +0 -0
  47. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface +3 -3
  48. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface +3 -3
  49. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc +0 -0
  50. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface +3 -3
  51. package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +25 -25
  52. package/files/plugin.gradle +1 -1
  53. package/networking/NativeNetworkInterceptorUtils.js +2 -2
  54. package/package.json +2 -2
  55. package/plugin.xml +2 -2
  56. package/scripts/helpers/FileHelper.js +4 -4
  57. package/scripts/helpers/InstallHelper.js +9 -15
  58. package/scripts/helpers/PathHelper.js +2 -14
@@ -6,11 +6,11 @@
6
6
  <dict>
7
7
  <key>Headers/Dynatrace-Swift.h</key>
8
8
  <data>
9
- kvZmQQJ66tEhXXDeXBCNm9QPkY4=
9
+ JPTJnEGc1ujLzn/bS39s2ePHtqY=
10
10
  </data>
11
11
  <key>Headers/Dynatrace.h</key>
12
12
  <data>
13
- jajRIjuHpmWFFnoTO9MywwUH2eQ=
13
+ 4129c9b7CHW2ROL0W3GHhaT6nO4=
14
14
  </data>
15
15
  <key>Headers/DynatraceSwiftUI.h</key>
16
16
  <data>
@@ -22,55 +22,55 @@
22
22
  </data>
23
23
  <key>Info.plist</key>
24
24
  <data>
25
- UaFmGfeS+e0JmumAiv9b2dMcixQ=
25
+ 9fGUO9fAd9qUAtagJ+VvjH5yHv0=
26
26
  </data>
27
27
  <key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
28
28
  <data>
29
- u51a+GNWSL4EZ4cUzxbhdtjVqRc=
29
+ M1Sz0j/MHGgQXIaqBQ6pE/kdkLQ=
30
30
  </data>
31
31
  <key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
32
32
  <data>
33
- mm9U6MDtd4pUHFk1o3bMkNqrLb8=
33
+ tFBHjhPOYE5Ha2eB3ZoW2b1DUUY=
34
34
  </data>
35
35
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
36
36
  <data>
37
- lz5VAWxfC6/IgO6hdm5FFJ7CBPY=
37
+ vPWxTU6XFYfdrHBsPyovaZivM/4=
38
38
  </data>
39
39
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
40
40
  <data>
41
- ZgNx0ndrXb6GEhfluT+MdzJQrII=
41
+ jqAhRSuAuW5mTx84BEfOQM7x07g=
42
42
  </data>
43
43
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
44
44
  <data>
45
- eUC7iW581r0ai3z0RIf3nwRYGlc=
45
+ 48E9JzfzsDfzkXqcpHfDYLmdyE8=
46
46
  </data>
47
47
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
48
48
  <data>
49
- ZgNx0ndrXb6GEhfluT+MdzJQrII=
49
+ jqAhRSuAuW5mTx84BEfOQM7x07g=
50
50
  </data>
51
51
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
52
52
  <data>
53
- g+CLD866+bgSHiHJwJJEyQCKqU4=
53
+ 4Ba/ouUbGYqf0RVjpxu2aE7OyEw=
54
54
  </data>
55
55
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
56
56
  <data>
57
- lz5VAWxfC6/IgO6hdm5FFJ7CBPY=
57
+ vPWxTU6XFYfdrHBsPyovaZivM/4=
58
58
  </data>
59
59
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
60
60
  <data>
61
- Z4qVJH4/nDCXXpnlBDFKpybA9Co=
61
+ CEU5KNZoBORAZpww1FXzZ8oDSM0=
62
62
  </data>
63
63
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
64
64
  <data>
65
- 269h4+WqlO8NaWP4rJIryjFaUPk=
65
+ aJf7F6QHT3vCR2N7lXemUIB+HH8=
66
66
  </data>
67
67
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
68
68
  <data>
69
- Z4qVJH4/nDCXXpnlBDFKpybA9Co=
69
+ CEU5KNZoBORAZpww1FXzZ8oDSM0=
70
70
  </data>
71
71
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
72
72
  <data>
73
- HjV3HpQIPEr95iIdfu425wfKoVU=
73
+ azi1hH6HVrrogrXmjDr8Gx+bi2M=
74
74
  </data>
75
75
  <key>Modules/module.modulemap</key>
76
76
  <data>
@@ -87,14 +87,14 @@
87
87
  <dict>
88
88
  <key>hash2</key>
89
89
  <data>
90
- Onc05BGDApHwePlrer94iJ4q+xfQBxV0b/IXAkEokJ0=
90
+ 00MPik1nU/D3MIauZvu27bSIOL/9AMwZQj32bdUVd5A=
91
91
  </data>
92
92
  </dict>
93
93
  <key>Headers/Dynatrace.h</key>
94
94
  <dict>
95
95
  <key>hash2</key>
96
96
  <data>
97
- J2Pbsy0U+a5fERuIeS8/2QfnGf1AgY4rswHMcCICVfc=
97
+ i0VMPSoOXJqnX6dqD/b1/Yqd5Op/8YUBt8S7OLcuaOo=
98
98
  </data>
99
99
  </dict>
100
100
  <key>Headers/DynatraceSwiftUI.h</key>
@@ -115,84 +115,84 @@
115
115
  <dict>
116
116
  <key>hash2</key>
117
117
  <data>
118
- U+BOtAYB6gVsSNXuu9Mim4cWXOefZJYVMV3IuAee+jI=
118
+ 1KFxR3aDtXTwbe6fvgRo7QOFPOrAlBC7L1TMkK3XJKc=
119
119
  </data>
120
120
  </dict>
121
121
  <key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
122
122
  <dict>
123
123
  <key>hash2</key>
124
124
  <data>
125
- ka4fcAnSEBXb50ClL8gRpN4AuSRM6MrsGKotzuq5fYU=
125
+ zd0spF0j1kM/1KLPSPWJJimTpyBlRU9LzLJ+8NfW+3s=
126
126
  </data>
127
127
  </dict>
128
128
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
129
129
  <dict>
130
130
  <key>hash2</key>
131
131
  <data>
132
- Bx5KgNFKpXUDn9pMvGZJSV3hgYo5B6I6XAzQuzYApkQ=
132
+ aSrQBoR+3SvwP0d2sf6h2z6gGUH4DPy6zvav8hF4IWs=
133
133
  </data>
134
134
  </dict>
135
135
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
136
136
  <dict>
137
137
  <key>hash2</key>
138
138
  <data>
139
- K4STPx2hWaKcjkorP1vhavnIzCgXTBANiwn33L6QFhA=
139
+ f6J0h8GP5XdDIYLvpp8UdS+2kD5wV6iU7nd6a4mb1rQ=
140
140
  </data>
141
141
  </dict>
142
142
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
143
143
  <dict>
144
144
  <key>hash2</key>
145
145
  <data>
146
- HuiySCW/tFZQ/jiFLnYfjkP8tU160LBju+iCxxwwD+k=
146
+ K8EGKgr1tWr2+DleE0zMvDO7n4YXbHBJIb51iZ7nP7s=
147
147
  </data>
148
148
  </dict>
149
149
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
150
150
  <dict>
151
151
  <key>hash2</key>
152
152
  <data>
153
- K4STPx2hWaKcjkorP1vhavnIzCgXTBANiwn33L6QFhA=
153
+ f6J0h8GP5XdDIYLvpp8UdS+2kD5wV6iU7nd6a4mb1rQ=
154
154
  </data>
155
155
  </dict>
156
156
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
157
157
  <dict>
158
158
  <key>hash2</key>
159
159
  <data>
160
- caG337HmeWl2Py4Hxm/NSF90Ts8SyK+eVZw6TfYY7+4=
160
+ 6zese9pC1/JbotKSqeKxPCmUbyP2/8vKT5UGIRv9bP8=
161
161
  </data>
162
162
  </dict>
163
163
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
164
164
  <dict>
165
165
  <key>hash2</key>
166
166
  <data>
167
- Bx5KgNFKpXUDn9pMvGZJSV3hgYo5B6I6XAzQuzYApkQ=
167
+ aSrQBoR+3SvwP0d2sf6h2z6gGUH4DPy6zvav8hF4IWs=
168
168
  </data>
169
169
  </dict>
170
170
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
171
171
  <dict>
172
172
  <key>hash2</key>
173
173
  <data>
174
- S+FSQ4Q18kw0F5iQVpRAvvWH9uWcaNCuZM+VCUt/u8I=
174
+ NGzBVK/L5j6nLD0LoHqVxJix2Gg2ala40FEFbFf7g4o=
175
175
  </data>
176
176
  </dict>
177
177
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
178
178
  <dict>
179
179
  <key>hash2</key>
180
180
  <data>
181
- Po6Q1egkvy/DoREsb6n7DB5T5FzZwSe8T6m4XPpKqG8=
181
+ 0jhmtBv5cQEKWf/56VBFW0TonL66yo4+lFr6ae5D0nI=
182
182
  </data>
183
183
  </dict>
184
184
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
185
185
  <dict>
186
186
  <key>hash2</key>
187
187
  <data>
188
- S+FSQ4Q18kw0F5iQVpRAvvWH9uWcaNCuZM+VCUt/u8I=
188
+ NGzBVK/L5j6nLD0LoHqVxJix2Gg2ala40FEFbFf7g4o=
189
189
  </data>
190
190
  </dict>
191
191
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
192
192
  <dict>
193
193
  <key>hash2</key>
194
194
  <data>
195
- cGkHUjlTz2mVTlqUBefAtp205YgEaesEWzU2GhOTu8E=
195
+ 4T+4eR3Al4SyB1PQLnHjvlE3fxXJfxavFOPbquky8gM=
196
196
  </data>
197
197
  </dict>
198
198
  <key>Modules/module.modulemap</key>
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
3
+ // Generated by Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
4
4
  #ifndef DYNATRACE_SWIFT_H
5
5
  #define DYNATRACE_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -65,6 +65,7 @@
65
65
  # if __has_include(<uchar.h>)
66
66
  # include <uchar.h>
67
67
  # elif !defined(__cplusplus)
68
+ typedef unsigned char char8_t;
68
69
  typedef uint_least16_t char16_t;
69
70
  typedef uint_least32_t char32_t;
70
71
  # endif
@@ -301,6 +302,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
301
302
  #endif
302
303
 
303
304
  #if defined(__OBJC__)
305
+
304
306
  #endif
305
307
  #if __has_attribute(external_source_symbol)
306
308
  # pragma clang attribute pop
@@ -1,5 +1,5 @@
1
1
  // Dynatrace.h
2
- // Version: 8.331.1.1008
2
+ // Version: 8.335.1.1009
3
3
  //
4
4
  // These materials contain confidential information and
5
5
  // trade secrets of Dynatrace Corporation. You shall
@@ -635,6 +635,23 @@ typedef NS_ENUM(int, DTX_StatusCode) {
635
635
  /// Unavailable. Use the designated initializer.
636
636
  - (instancetype _Nonnull)init NS_UNAVAILABLE;
637
637
 
638
+ @end
639
+ /*************************************************************************************************/
640
+
641
+ /*!
642
+ @brief Encapsulates W3C trace context headers for distributed tracing.
643
+ @discussion This object contains the traceparent and tracestate headers as defined by the W3C Trace Context specification.
644
+ Use these values to propagate trace context to downstream services by adding them as HTTP headers to outgoing requests.
645
+ @property traceparent The W3C traceparent header value identifying the request as part of a distributed trace.
646
+ @property tracestate The W3C tracestate header value containing vendor-specific trace information.
647
+ @seealso https://www.w3.org/TR/trace-context
648
+ */
649
+
650
+ @interface DTXTraceContext : NSObject
651
+
652
+ @property (nonatomic, strong, readonly, nonnull) NSString *traceparent;
653
+ @property (nonatomic, strong, readonly, nonnull) NSString *tracestate;
654
+
638
655
  @end
639
656
 
640
657
  /*************************************************************************************************/
@@ -1017,6 +1034,25 @@ When the user optin feature is not used:
1017
1034
  */
1018
1035
  + (void)sendEvent:(DTXEventData* _Nullable)data;
1019
1036
 
1037
+ /*!
1038
+ * @brief Generates W3C trace context headers for distributed tracing.
1039
+ *
1040
+ * Creates a new trace context or enriches an existing one with Dynatrace-specific data. The returned object
1041
+ * contains both `traceparent` and `tracestate` headers that should be added to outgoing HTTP requests.
1042
+ *
1043
+ * Returns `nil` when:
1044
+ * - Capture is off (agent is not running)
1045
+ * - Privacy settings prevent web request tagging (data collection level doesn't permit tagging)
1046
+ * - Traffic control has disabled the current session
1047
+ * - The provided `traceparent` is invalid or the agent cannot build a complete trace context
1048
+ *
1049
+ * @seealso https://www.w3.org/TR/trace-context
1050
+ * @param traceparent The W3C `traceparent` header value identifying the web request as part of a trace, or `nil` to generate a new trace
1051
+ * @param tracestate The existing W3C `tracestate` header value of the request, or `nil` if no other tracing vendor is used
1052
+ * @return A `DTXTraceContext` object containing both `traceparent` and `tracestate` header values, or `nil` if the trace context cannot be created.
1053
+ */
1054
+ + (DTXTraceContext* _Nullable)generateTraceContext:(NSString* _Nullable)traceparent tracestate:(NSString* _Nullable)tracestate;
1055
+
1020
1056
  /*!
1021
1057
  * @brief Sends a web request event with the fields set in the data object. Use the data object to add data to the request event.
1022
1058
  *
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
3
- // swift-module-flags: -target arm64-apple-tvos12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature OpaqueTypeErasure -enable-bare-slash-regex -module-name Dynatrace
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface
2
+ // swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
3
+ // swift-module-flags: -target arm64-apple-tvos12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
5
5
  @_exported import Dynatrace
6
6
  import Swift
7
7
  import _Concurrency
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
3
- // swift-module-flags: -target arm64-apple-tvos12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature OpaqueTypeErasure -enable-bare-slash-regex -module-name Dynatrace
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface
2
+ // swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
3
+ // swift-module-flags: -target arm64-apple-tvos12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
5
5
  @_exported import Dynatrace
6
6
  import Swift
7
7
  import _Concurrency
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
3
+ // Generated by Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
4
4
  #ifndef DYNATRACE_SWIFT_H
5
5
  #define DYNATRACE_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -65,6 +65,7 @@
65
65
  # if __has_include(<uchar.h>)
66
66
  # include <uchar.h>
67
67
  # elif !defined(__cplusplus)
68
+ typedef unsigned char char8_t;
68
69
  typedef uint_least16_t char16_t;
69
70
  typedef uint_least32_t char32_t;
70
71
  # endif
@@ -301,6 +302,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
301
302
  #endif
302
303
 
303
304
  #if defined(__OBJC__)
305
+
304
306
  #endif
305
307
  #if __has_attribute(external_source_symbol)
306
308
  # pragma clang attribute pop
@@ -311,7 +313,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
311
313
  #endif
312
314
 
313
315
  #elif defined(__x86_64__) && __x86_64__
314
- // Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
316
+ // Generated by Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
315
317
  #ifndef DYNATRACE_SWIFT_H
316
318
  #define DYNATRACE_SWIFT_H
317
319
  #pragma clang diagnostic push
@@ -376,6 +378,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
376
378
  # if __has_include(<uchar.h>)
377
379
  # include <uchar.h>
378
380
  # elif !defined(__cplusplus)
381
+ typedef unsigned char char8_t;
379
382
  typedef uint_least16_t char16_t;
380
383
  typedef uint_least32_t char32_t;
381
384
  # endif
@@ -612,6 +615,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
612
615
  #endif
613
616
 
614
617
  #if defined(__OBJC__)
618
+
615
619
  #endif
616
620
  #if __has_attribute(external_source_symbol)
617
621
  # pragma clang attribute pop
@@ -1,5 +1,5 @@
1
1
  // Dynatrace.h
2
- // Version: 8.331.1.1008
2
+ // Version: 8.335.1.1009
3
3
  //
4
4
  // These materials contain confidential information and
5
5
  // trade secrets of Dynatrace Corporation. You shall
@@ -635,6 +635,23 @@ typedef NS_ENUM(int, DTX_StatusCode) {
635
635
  /// Unavailable. Use the designated initializer.
636
636
  - (instancetype _Nonnull)init NS_UNAVAILABLE;
637
637
 
638
+ @end
639
+ /*************************************************************************************************/
640
+
641
+ /*!
642
+ @brief Encapsulates W3C trace context headers for distributed tracing.
643
+ @discussion This object contains the traceparent and tracestate headers as defined by the W3C Trace Context specification.
644
+ Use these values to propagate trace context to downstream services by adding them as HTTP headers to outgoing requests.
645
+ @property traceparent The W3C traceparent header value identifying the request as part of a distributed trace.
646
+ @property tracestate The W3C tracestate header value containing vendor-specific trace information.
647
+ @seealso https://www.w3.org/TR/trace-context
648
+ */
649
+
650
+ @interface DTXTraceContext : NSObject
651
+
652
+ @property (nonatomic, strong, readonly, nonnull) NSString *traceparent;
653
+ @property (nonatomic, strong, readonly, nonnull) NSString *tracestate;
654
+
638
655
  @end
639
656
 
640
657
  /*************************************************************************************************/
@@ -1017,6 +1034,25 @@ When the user optin feature is not used:
1017
1034
  */
1018
1035
  + (void)sendEvent:(DTXEventData* _Nullable)data;
1019
1036
 
1037
+ /*!
1038
+ * @brief Generates W3C trace context headers for distributed tracing.
1039
+ *
1040
+ * Creates a new trace context or enriches an existing one with Dynatrace-specific data. The returned object
1041
+ * contains both `traceparent` and `tracestate` headers that should be added to outgoing HTTP requests.
1042
+ *
1043
+ * Returns `nil` when:
1044
+ * - Capture is off (agent is not running)
1045
+ * - Privacy settings prevent web request tagging (data collection level doesn't permit tagging)
1046
+ * - Traffic control has disabled the current session
1047
+ * - The provided `traceparent` is invalid or the agent cannot build a complete trace context
1048
+ *
1049
+ * @seealso https://www.w3.org/TR/trace-context
1050
+ * @param traceparent The W3C `traceparent` header value identifying the web request as part of a trace, or `nil` to generate a new trace
1051
+ * @param tracestate The existing W3C `tracestate` header value of the request, or `nil` if no other tracing vendor is used
1052
+ * @return A `DTXTraceContext` object containing both `traceparent` and `tracestate` header values, or `nil` if the trace context cannot be created.
1053
+ */
1054
+ + (DTXTraceContext* _Nullable)generateTraceContext:(NSString* _Nullable)traceparent tracestate:(NSString* _Nullable)tracestate;
1055
+
1020
1056
  /*!
1021
1057
  * @brief Sends a web request event with the fields set in the data object. Use the data object to add data to the request event.
1022
1058
  *
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
3
- // swift-module-flags: -target arm64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature OpaqueTypeErasure -enable-bare-slash-regex -module-name Dynatrace
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface
2
+ // swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
3
+ // swift-module-flags: -target arm64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
5
5
  @_exported import Dynatrace
6
6
  import Swift
7
7
  import _Concurrency
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
3
- // swift-module-flags: -target arm64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature OpaqueTypeErasure -enable-bare-slash-regex -module-name Dynatrace
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface
2
+ // swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
3
+ // swift-module-flags: -target arm64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
5
5
  @_exported import Dynatrace
6
6
  import Swift
7
7
  import _Concurrency
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
3
- // swift-module-flags: -target x86_64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature OpaqueTypeErasure -enable-bare-slash-regex -module-name Dynatrace
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface
2
+ // swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
3
+ // swift-module-flags: -target x86_64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
5
5
  @_exported import Dynatrace
6
6
  import Swift
7
7
  import _Concurrency
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
3
- // swift-module-flags: -target x86_64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature OpaqueTypeErasure -enable-bare-slash-regex -module-name Dynatrace
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface
2
+ // swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
3
+ // swift-module-flags: -target x86_64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
5
5
  @_exported import Dynatrace
6
6
  import Swift
7
7
  import _Concurrency