forked from DataDog/dd-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-surface-swift
More file actions
598 lines (598 loc) · 26.1 KB
/
api-surface-swift
File metadata and controls
598 lines (598 loc) · 26.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
public typealias AttributeKey = String
public typealias AttributeValue = Encodable
public enum TrackingConsent
case granted
case notGranted
case pending
public class DDCrashReport: NSObject
public init(date: Date?,type: String,message: String,stackTrace: String,context: Data?)
public protocol DDCrashReportingPluginType: class
func readPendingCrashReport(completion: (DDCrashReport?) -> Bool)
func inject(context: Data)
public class DDRUMMonitor
public func startView(viewController: UIViewController,path: String?,attributes: [AttributeKey: AttributeValue] = [:])
public func startView(viewController: UIViewController,name: String? = nil,attributes: [AttributeKey: AttributeValue] = [:])
public func stopView(viewController: UIViewController,attributes: [AttributeKey: AttributeValue] = [:])
public func startView(key: String,name: String? = nil,attributes: [AttributeKey: AttributeValue] = [:])
public func stopView(key: String,attributes: [AttributeKey: AttributeValue] = [:])
public func addTiming(name: String)
public func addError(message: String,source: RUMErrorSource = .custom,stack: String? = nil,attributes: [AttributeKey: AttributeValue] = [:],file: StaticString? = #file,line: UInt? = #line)
public func addError(error: Error,source: RUMErrorSource = .custom,attributes: [AttributeKey: AttributeValue] = [:])
public func startResourceLoading(resourceKey: String,request: URLRequest,attributes: [AttributeKey: AttributeValue] = [:])
public func startResourceLoading(resourceKey: String,url: URL,attributes: [AttributeKey: AttributeValue] = [:])
public func startResourceLoading(resourceKey: String,httpMethod: RUMMethod,urlString: String,attributes: [AttributeKey: AttributeValue] = [:])
public func addResourceMetrics(resourceKey: String,metrics: URLSessionTaskMetrics,attributes: [AttributeKey: AttributeValue] = [:])
public func addResourceMetrics(resourceKey: String,fetch: (start: Date, end: Date),redirection: (start: Date, end: Date)?,dns: (start: Date, end: Date)?,connect: (start: Date, end: Date)?,ssl: (start: Date, end: Date)?,firstByte: (start: Date, end: Date)?,download: (start: Date, end: Date)?,responseSize: Int64?,attributes: [AttributeKey: AttributeValue] = [:])
public func stopResourceLoading(resourceKey: String,response: URLResponse,size: Int64? = nil,attributes: [AttributeKey: AttributeValue] = [:])
public func stopResourceLoading(resourceKey: String,statusCode: Int?,kind: RUMResourceType,size: Int64? = nil,attributes: [AttributeKey: AttributeValue] = [:])
public func stopResourceLoadingWithError(resourceKey: String,error: Error,response: URLResponse? = nil,attributes: [AttributeKey: AttributeValue] = [:])
public func stopResourceLoadingWithError(resourceKey: String,errorMessage: String,response: URLResponse? = nil,attributes: [AttributeKey: AttributeValue] = [:])
public func startUserAction(type: RUMUserActionType,name: String,attributes: [AttributeKey: AttributeValue] = [:])
public func stopUserAction(type: RUMUserActionType,name: String? = nil,attributes: [AttributeKey: AttributeValue] = [:])
public func addUserAction(type: RUMUserActionType,name: String,attributes: [AttributeKey: AttributeValue] = [:])
public func addAttribute(forKey key: AttributeKey, value: AttributeValue)
public func removeAttribute(forKey key: AttributeKey)
public class Datadog
public struct AppContext
public init(mainBundle: Bundle = Bundle.main)
public static func initialize(appContext: AppContext, configuration: Configuration)
public static func initialize(appContext: AppContext,trackingConsent: TrackingConsent,configuration: Configuration)
public static var verbosityLevel: LogLevel? = nil
public static var debugRUM: Bool = false
public static func setUserInfo(id: String? = nil,name: String? = nil,email: String? = nil,extraInfo: [AttributeKey: AttributeValue] = [:])
public static func set(trackingConsent: TrackingConsent)
public struct Configuration
public enum BatchSize
case small
case medium
case large
public enum UploadFrequency
case frequent
case average
case rare
public enum DatadogEndpoint
case us
case eu
case gov
public enum LogsEndpoint
case us
case eu
case gov
case custom(url: String)
public enum TracesEndpoint
case us
case eu
case gov
case custom(url: String)
public enum RUMEndpoint
case us
case eu
case gov
case custom(url: String)
public static func builderUsing(rumApplicationID: String, clientToken: String, environment: String) -> Builder
public static func builderUsing(clientToken: String, environment: String) -> Builder
public class Builder
public func set(endpoint: DatadogEndpoint) -> Builder
public func set(customLogsEndpoint: URL) -> Builder
public func set(customTracesEndpoint: URL) -> Builder
public func set(customRUMEndpoint: URL) -> Builder
public func enableLogging(_ enabled: Bool) -> Builder
public func set(logsEndpoint: LogsEndpoint) -> Builder
public func enableTracing(_ enabled: Bool) -> Builder
public func set(tracesEndpoint: TracesEndpoint) -> Builder
public func set(tracedHosts: Set<String>) -> Builder
public func track(firstPartyHosts: Set<String>) -> Builder
public func trackURLSession(firstPartyHosts: Set<String> = []) -> Builder
public func enableRUM(_ enabled: Bool) -> Builder
public func set(rumEndpoint: RUMEndpoint) -> Builder
public func set(rumSessionsSamplingRate: Float) -> Builder
public func trackUIKitRUMViews(using predicate: UIKitRUMViewsPredicate = DefaultUIKitRUMViewsPredicate()) -> Builder
public func trackUIKitActions(_ enabled: Bool = true) -> Builder
public func setRUMViewEventMapper(_ mapper: @escaping (RUMViewEvent) -> RUMViewEvent) -> Builder
public func setRUMResourceEventMapper(_ mapper: @escaping (RUMResourceEvent) -> RUMResourceEvent?) -> Builder
public func setRUMActionEventMapper(_ mapper: @escaping (RUMActionEvent) -> RUMActionEvent?) -> Builder
public func setRUMErrorEventMapper(_ mapper: @escaping (RUMErrorEvent) -> RUMErrorEvent?) -> Builder
public func enableCrashReporting(using crashReportingPlugin: DDCrashReportingPluginType) -> Builder
public func enableInternalMonitoring(clientToken: String) -> Builder
public func set(serviceName: String) -> Builder
public func set(batchSize: BatchSize) -> Builder
public func set(uploadFrequency: UploadFrequency) -> Builder
public func build() -> Configuration
public typealias DDGlobal = Global
public struct Global
public static var sharedTracer: OTTracer = DDNoopGlobals.tracer
public static var rum: DDRUMMonitor = DDNoopRUMMonitor()
public enum LogLevel: Int, Codable
case debug
case info
case notice
case warn
case error
case critical
public typealias DDLogger = Logger
public class Logger
public func debug(_ message: String, error: Error? = nil, attributes: [AttributeKey: AttributeValue]? = nil)
public func info(_ message: String, error: Error? = nil, attributes: [AttributeKey: AttributeValue]? = nil)
public func notice(_ message: String, error: Error? = nil, attributes: [AttributeKey: AttributeValue]? = nil)
public func warn(_ message: String, error: Error? = nil, attributes: [AttributeKey: AttributeValue]? = nil)
public func error(_ message: String, error: Error? = nil, attributes: [AttributeKey: AttributeValue]? = nil)
public func critical(_ message: String, error: Error? = nil, attributes: [AttributeKey: AttributeValue]? = nil)
public func addAttribute(forKey key: AttributeKey, value: AttributeValue)
public func removeAttribute(forKey key: AttributeKey)
public func addTag(withKey key: String, value: String)
public func removeTag(withKey key: String)
public func add(tag: String)
public func remove(tag: String)
public static var builder: Builder
public class Builder
public func set(serviceName: String) -> Builder
public func set(loggerName: String) -> Builder
public func sendNetworkInfo(_ enabled: Bool) -> Builder
public func bundleWithRUM(_ enabled: Bool) -> Builder
public func bundleWithTrace(_ enabled: Bool) -> Builder
public func sendLogsToDatadog(_ enabled: Bool) -> Builder
public enum ConsoleLogFormat
case short
case shortWith(prefix: String)
case json
case jsonWith(prefix: String)
public func printLogsToConsole(_ enabled: Bool, usingFormat format: ConsoleLogFormat = .short) -> Builder
public func build() -> Logger
public struct OTTags
public static let component = "component"
public static let dbInstance = "db.instance"
public static let dbStatement = "db.statement"
public static let dbType = "db.type"
public static let dbUser = "db.user"
public static let error = "error"
public static let httpMethod = "http.method"
public static let httpStatusCode = "http.status_code"
public static let httpUrl = "http.url"
public static let messageBusDestination = "message_bus.destination"
public static let peerAddress = "peer.address"
public static let peerHostname = "peer.hostname"
public static let peerIPv4 = "peer.ipv4"
public static let peerIPv6 = "peer.ipv6"
public static let peerPort = "peer.port"
public static let peerService = "peer.service"
public static let samplingPriority = "sampling.priority"
public static let spanKind = "span.kind"
public struct OTLogFields
public static let errorKind = "error.kind"
public static let event = "event"
public static let message = "message"
public static let stack = "stack"
public protocol OTFormatReader: OTCustomFormatReader
public protocol OTFormatWriter: OTCustomFormatWriter
public protocol OTTextMapReader: OTFormatReader
public protocol OTTextMapWriter: OTFormatWriter
public protocol OTHTTPHeadersReader: OTTextMapReader
public protocol OTHTTPHeadersWriter: OTTextMapWriter
public protocol OTCustomFormatReader
func extract() -> OTSpanContext?
public protocol OTCustomFormatWriter
func inject(spanContext: OTSpanContext)
public struct OTReference
public let type: OTReferenceType
public let context: OTSpanContext
public static func child(of parent: OTSpanContext) -> OTReference
public static func follows(from precedingContext: OTSpanContext) -> OTReference
public enum OTReferenceType: String
case childOf = "CHILD_OF"
case followsFrom = "FOLLOWS_FROM"
public protocol OTSpan
var context: OTSpanContext
func tracer() -> OTTracer
func setOperationName(_ operationName: String)
func setTag(key: String, value: Encodable)
func log(fields: [String: Encodable], timestamp: Date)
func setBaggageItem(key: String, value: String)
func baggageItem(withKey key: String) -> String?
func finish(at time: Date)
func setActive() -> OTSpan
public extension OTSpan
func log(fields: [String: Encodable])
func finish()
public extension OTSpan
func setError(_ error: Error,file: StaticString = #fileID,line: UInt = #line)
func setError(kind: String,message: String,stack: String = "",file: StaticString = #fileID,line: UInt = #line)
public protocol OTSpanContext
func forEachBaggageItem(callback: (_ key: String, _ value: String) -> Bool)
public protocol OTTracer
func startSpan(operationName: String,references: [OTReference]?,tags: [String: Encodable]?,startTime: Date?) -> OTSpan
func startRootSpan(operationName: String,tags: [String: Encodable]?,startTime: Date?) -> OTSpan
func inject(spanContext: OTSpanContext, writer: OTFormatWriter)
func extract(reader: OTFormatReader) -> OTSpanContext?
var activeSpan: OTSpan?
public extension OTTracer
func startSpan(operationName: String,childOf parent: OTSpanContext? = nil,tags: [String: Encodable]? = nil,startTime: Date? = nil) -> OTSpan
func startRootSpan(operationName: String,tags: [String: Encodable]? = nil,startTime: Date? = nil) -> OTSpan
public struct RUMView
public var name: String
public var path: String?
public var attributes: [AttributeKey: AttributeValue]
public init(path: String, attributes: [AttributeKey: AttributeValue] = [:])
public init(name: String, attributes: [AttributeKey: AttributeValue] = [:])
public protocol UIKitRUMViewsPredicate
func rumView(for viewController: UIViewController) -> RUMView?
public struct DefaultUIKitRUMViewsPredicate: UIKitRUMViewsPredicate
public init ()
public func rumView(for viewController: UIViewController) -> RUMView?
public struct RUMViewEvent: RUMDataModel
public let dd: DD
public let application: Application
public let connectivity: RUMConnectivity?
public let date: Int64
public let service: String?
public let session: Session
public let type: String = "view"
public let usr: RUMUser?
public var view: View
public struct DD: Codable
public let documentVersion: Int64
public let formatVersion: Int64 = 2
public struct Application: Codable
public let id: String
public struct Session: Codable
public let hasReplay: Bool?
public let id: String
public let type: SessionType
public enum SessionType: String, Codable
case user = "user"
case synthetics = "synthetics"
public struct View: Codable
public let action: Action
public let crash: Crash?
public let cumulativeLayoutShift: Double?
public let customTimings: [String: Int64]?
public let domComplete: Int64?
public let domContentLoaded: Int64?
public let domInteractive: Int64?
public let error: Error
public let firstContentfulPaint: Int64?
public let firstInputDelay: Int64?
public let firstInputTime: Int64?
public let id: String
public let isActive: Bool?
public let largestContentfulPaint: Int64?
public let loadEvent: Int64?
public let loadingTime: Int64?
public let loadingType: LoadingType?
public let longTask: LongTask?
public var name: String?
public var referrer: String?
public let resource: Resource
public let timeSpent: Int64
public var url: String
public struct Action: Codable
public let count: Int64
public struct Crash: Codable
public let count: Int64
public struct Error: Codable
public let count: Int64
public enum LoadingType: String, Codable
case initialLoad = "initial_load"
case routeChange = "route_change"
case activityDisplay = "activity_display"
case activityRedisplay = "activity_redisplay"
case fragmentDisplay = "fragment_display"
case fragmentRedisplay = "fragment_redisplay"
case viewControllerDisplay = "view_controller_display"
case viewControllerRedisplay = "view_controller_redisplay"
public struct LongTask: Codable
public let count: Int64
public struct Resource: Codable
public let count: Int64
public struct RUMResourceEvent: RUMDataModel
public let dd: DD
public let action: Action?
public let application: Application
public let connectivity: RUMConnectivity?
public let date: Int64
public var resource: Resource
public let service: String?
public let session: Session
public let type: String = "resource"
public let usr: RUMUser?
public var view: View
public struct DD: Codable
public let formatVersion: Int64 = 2
public let spanId: String?
public let traceId: String?
public struct Action: Codable
public let id: String
public struct Application: Codable
public let id: String
public struct Resource: Codable
public let connect: Connect?
public let dns: DNS?
public let download: Download?
public let duration: Int64
public let firstByte: FirstByte?
public let id: String?
public let method: RUMMethod?
public let provider: Provider?
public let redirect: Redirect?
public let size: Int64?
public let ssl: SSL?
public let statusCode: Int64?
public let type: ResourceType
public var url: String
public struct Connect: Codable
public let duration: Int64
public let start: Int64
public struct DNS: Codable
public let duration: Int64
public let start: Int64
public struct Download: Codable
public let duration: Int64
public let start: Int64
public struct FirstByte: Codable
public let duration: Int64
public let start: Int64
public struct Provider: Codable
public let domain: String?
public let name: String?
public let type: ProviderType?
public enum ProviderType: String, Codable
case ad = "ad"
case advertising = "advertising"
case analytics = "analytics"
case cdn = "cdn"
case content = "content"
case customerSuccess = "customer-success"
case firstParty = "first party"
case hosting = "hosting"
case marketing = "marketing"
case other = "other"
case social = "social"
case tagManager = "tag-manager"
case utility = "utility"
case video = "video"
public struct Redirect: Codable
public let duration: Int64
public let start: Int64
public struct SSL: Codable
public let duration: Int64
public let start: Int64
public enum ResourceType: String, Codable
case document = "document"
case xhr = "xhr"
case beacon = "beacon"
case fetch = "fetch"
case css = "css"
case js = "js"
case image = "image"
case font = "font"
case media = "media"
case other = "other"
public struct Session: Codable
public let hasReplay: Bool?
public let id: String
public let type: SessionType
public enum SessionType: String, Codable
case user = "user"
case synthetics = "synthetics"
public struct View: Codable
public let id: String
public var name: String?
public var referrer: String?
public var url: String
public struct RUMActionEvent: RUMDataModel
public let dd: DD
public var action: Action
public let application: Application
public let connectivity: RUMConnectivity?
public let date: Int64
public let service: String?
public let session: Session
public let type: String = "action"
public let usr: RUMUser?
public var view: View
public struct DD: Codable
public let formatVersion: Int64 = 2
public struct Action: Codable
public let crash: Crash?
public let error: Error?
public let id: String?
public let loadingTime: Int64?
public let longTask: LongTask?
public let resource: Resource?
public var target: Target?
public let type: ActionType
public struct Crash: Codable
public let count: Int64
public struct Error: Codable
public let count: Int64
public struct LongTask: Codable
public let count: Int64
public struct Resource: Codable
public let count: Int64
public struct Target: Codable
public var name: String
public enum ActionType: String, Codable
case custom = "custom"
case click = "click"
case tap = "tap"
case scroll = "scroll"
case swipe = "swipe"
case applicationStart = "application_start"
case back = "back"
public struct Application: Codable
public let id: String
public struct Session: Codable
public let hasReplay: Bool?
public let id: String
public let type: SessionType
public enum SessionType: String, Codable
case user = "user"
case synthetics = "synthetics"
public struct View: Codable
public let id: String
public var name: String?
public var referrer: String?
public var url: String
public struct RUMErrorEvent: RUMDataModel
public let dd: DD
public let action: Action?
public let application: Application
public let connectivity: RUMConnectivity?
public let date: Int64
public var error: Error
public let service: String?
public let session: Session
public let type: String = "error"
public let usr: RUMUser?
public var view: View
public struct DD: Codable
public let formatVersion: Int64 = 2
public struct Action: Codable
public let id: String
public struct Application: Codable
public let id: String
public struct Error: Codable
public let isCrash: Bool?
public var message: String
public var resource: Resource?
public let source: Source
public var stack: String?
public let type: String?
public struct Resource: Codable
public let method: RUMMethod
public let provider: Provider?
public let statusCode: Int64
public var url: String
public struct Provider: Codable
public let domain: String?
public let name: String?
public let type: ProviderType?
public enum ProviderType: String, Codable
case ad = "ad"
case advertising = "advertising"
case analytics = "analytics"
case cdn = "cdn"
case content = "content"
case customerSuccess = "customer-success"
case firstParty = "first party"
case hosting = "hosting"
case marketing = "marketing"
case other = "other"
case social = "social"
case tagManager = "tag-manager"
case utility = "utility"
case video = "video"
public enum Source: String, Codable
case network = "network"
case source = "source"
case console = "console"
case logger = "logger"
case agent = "agent"
case webview = "webview"
case custom = "custom"
public struct Session: Codable
public let hasReplay: Bool?
public let id: String
public let type: SessionType
public enum SessionType: String, Codable
case user = "user"
case synthetics = "synthetics"
public struct View: Codable
public let id: String
public var name: String?
public var referrer: String?
public var url: String
public struct RUMConnectivity: Codable
public let cellular: Cellular?
public let interfaces: [Interfaces]
public let status: Status
public struct Cellular: Codable
public let carrierName: String?
public let technology: String?
public enum Interfaces: String, Codable
case bluetooth = "bluetooth"
case cellular = "cellular"
case ethernet = "ethernet"
case wifi = "wifi"
case wimax = "wimax"
case mixed = "mixed"
case other = "other"
case unknown = "unknown"
case none = "none"
public enum Status: String, Codable
case connected = "connected"
case notConnected = "not_connected"
case maybe = "maybe"
public struct RUMUser: Codable
public let email: String?
public let id: String?
public let name: String?
public enum RUMMethod: String, Codable
case post = "POST"
case get = "GET"
case head = "HEAD"
case put = "PUT"
case delete = "DELETE"
case patch = "PATCH"
public typealias RUMResourceType = RUMResourceEvent.Resource.ResourceType
public enum RUMUserActionType
case tap
case scroll
case swipe
case custom
public enum RUMErrorSource
case source
case network
case webview
case custom
public class RUMMonitor: DDRUMMonitor, RUMCommandSubscriber
public static func initialize() -> DDRUMMonitor
override public func startView(viewController: UIViewController,path: String?,attributes: [AttributeKey: AttributeValue])
override public func startView(viewController: UIViewController,name: String? = nil,attributes: [AttributeKey: AttributeValue] = [:])
override public func stopView(viewController: UIViewController,attributes: [AttributeKey: AttributeValue])
override public func startView(key: String,name: String?,attributes: [AttributeKey: AttributeValue])
override public func stopView(key: String,attributes: [AttributeKey: AttributeValue])
override public func addTiming(name: String)
override public func addError(message: String,source: RUMErrorSource,stack: String?,attributes: [AttributeKey: AttributeValue],file: StaticString?,line: UInt?)
override public func addError(error: Error,source: RUMErrorSource,attributes: [AttributeKey: AttributeValue])
override public func startResourceLoading(resourceKey: String,request: URLRequest,attributes: [AttributeKey: AttributeValue])
override public func startResourceLoading(resourceKey: String,url: URL,attributes: [AttributeKey: AttributeValue])
override public func startResourceLoading(resourceKey: String,httpMethod: RUMMethod,urlString: String,attributes: [AttributeKey: AttributeValue] = [:])
override public func addResourceMetrics(resourceKey: String,metrics: URLSessionTaskMetrics,attributes: [AttributeKey: AttributeValue])
override public func addResourceMetrics(resourceKey: String,fetch: (start: Date, end: Date),redirection: (start: Date, end: Date)?,dns: (start: Date, end: Date)?,connect: (start: Date, end: Date)?,ssl: (start: Date, end: Date)?,firstByte: (start: Date, end: Date)?,download: (start: Date, end: Date)?,responseSize: Int64?,attributes: [AttributeKey: AttributeValue])
override public func stopResourceLoading(resourceKey: String,response: URLResponse,size: Int64?,attributes: [AttributeKey: AttributeValue])
override public func stopResourceLoading(resourceKey: String,statusCode: Int?,kind: RUMResourceType,size: Int64? = nil,attributes: [AttributeKey: AttributeValue] = [:])
override public func stopResourceLoadingWithError(resourceKey: String,error: Error,response: URLResponse?,attributes: [AttributeKey: AttributeValue])
override public func stopResourceLoadingWithError(resourceKey: String,errorMessage: String,response: URLResponse?,attributes: [AttributeKey: AttributeValue])
override public func startUserAction(type: RUMUserActionType, name: String, attributes: [AttributeKey: AttributeValue])
override public func stopUserAction(type: RUMUserActionType, name: String?, attributes: [AttributeKey: AttributeValue])
override public func addUserAction(type: RUMUserActionType, name: String, attributes: [AttributeKey: AttributeValue])
override public func addAttribute(forKey key: AttributeKey, value: AttributeValue)
override public func removeAttribute(forKey key: AttributeKey)
public struct DDTags
public static let resource = "resource.name"
public typealias DDTracer = Tracer
public class Tracer: OTTracer
public static func initialize(configuration: Configuration) -> OTTracer
public func startSpan(operationName: String, references: [OTReference]? = nil, tags: [String: Encodable]? = nil, startTime: Date? = nil) -> OTSpan
public func startRootSpan(operationName: String, tags: [String: Encodable]? = nil, startTime: Date? = nil) -> OTSpan
public func inject(spanContext: OTSpanContext, writer: OTFormatWriter)
public func extract(reader: OTFormatReader) -> OTSpanContext?
public var activeSpan: OTSpan?
public struct Configuration
public var serviceName: String?
public var sendNetworkInfo: Bool
public var globalTags: [String: Encodable]?
public var bundleWithRUM: Bool
public init(serviceName: String? = nil,sendNetworkInfo: Bool = false,bundleWithRUM: Bool = true,globalTags: [String: Encodable]? = nil)
public class HTTPHeadersWriter: OTHTTPHeadersWriter
public init()
public private(set) var tracePropagationHTTPHeaders: [String: String] = [:]
public func inject(spanContext: OTSpanContext)
override public init()
public init(additionalFirstPartyHosts: Set<String>)
public class URLSessionInterceptor: URLSessionInterceptorType
public static var shared: URLSessionInterceptor?
public func modify(request: URLRequest, session: URLSession? = nil) -> URLRequest
public func taskCreated(task: URLSessionTask, session: URLSession? = nil)
public func taskMetricsCollected(task: URLSessionTask, metrics: URLSessionTaskMetrics)
public func taskCompleted(task: URLSessionTask, error: Error?)