From e9fe668c699c96083a4c93b6805d060a226ca8a7 Mon Sep 17 00:00:00 2001 From: Jeff Ward Date: Tue, 9 Aug 2022 11:24:15 -0400 Subject: [PATCH] Add public visibility to Internal Proxy methods. --- Sources/Datadog/DatadogInternal/_InternalProxy.swift | 6 +++--- Sources/Datadog/RUM/_RUMInternalProxy.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Datadog/DatadogInternal/_InternalProxy.swift b/Sources/Datadog/DatadogInternal/_InternalProxy.swift index 80169f72f3..21bff4e209 100644 --- a/Sources/Datadog/DatadogInternal/_InternalProxy.swift +++ b/Sources/Datadog/DatadogInternal/_InternalProxy.swift @@ -15,17 +15,17 @@ import Foundation /// Methods, members, and functionality of this class are subject to change without notice, as they /// are not considered part of the public interface of the Datadog SDK. public class _InternalProxy { - let _telemtry = _TelemetryProxy() + public let _telemtry = _TelemetryProxy() } public class _TelemetryProxy { /// See Telementry.debug - func debug(id: String, message: String) { + public func debug(id: String, message: String) { DD.telemetry.debug(id: id, message: message) } /// See Telementry.error - func error(id: String, message: String, kind: String?, stack: String?) { + public func error(id: String, message: String, kind: String?, stack: String?) { DD.telemetry.error(id: id, message: message, kind: kind, stack: stack) } } diff --git a/Sources/Datadog/RUM/_RUMInternalProxy.swift b/Sources/Datadog/RUM/_RUMInternalProxy.swift index f9e46a6060..528f3a8f8d 100644 --- a/Sources/Datadog/RUM/_RUMInternalProxy.swift +++ b/Sources/Datadog/RUM/_RUMInternalProxy.swift @@ -21,7 +21,7 @@ public class _RUMInternalProxy { self.subscriber = subscriber } - func addLongTask(at: Date, duration: TimeInterval, attributes: [AttributeKey: AttributeValue] = [:]) { + public func addLongTask(at: Date, duration: TimeInterval, attributes: [AttributeKey: AttributeValue] = [:]) { let longTaskCommand = RUMAddLongTaskCommand(time: at, attributes: attributes, duration: duration) subscriber?.process(command: longTaskCommand)